/* * Amazon Shipping API * * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. * * OpenAPI spec version: v2 * * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; using System.Text; using Newtonsoft.Json; namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 { /// /// The response schema for the GetAccessPoints operation. /// [DataContract] public partial class GetAccessPointsResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// /// payload. public GetAccessPointsResponse(GetAccessPointsResult payload = default(GetAccessPointsResult)) { this.Payload = payload; } /// /// Gets or Sets Payload /// [DataMember(Name="payload", EmitDefaultValue=false)] public GetAccessPointsResult Payload { get; set; } /// /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { var sb = new StringBuilder(); sb.Append("class GetAccessPointsResponse {\n"); sb.Append(" Payload: ").Append(Payload).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } /// /// Returns true if objects are equal /// /// Object to be compared /// Boolean public override bool Equals(object input) { return this.Equals(input as GetAccessPointsResponse); } /// /// Returns true if GetAccessPointsResponse instances are equal /// /// Instance of GetAccessPointsResponse to be compared /// Boolean public bool Equals(GetAccessPointsResponse input) { if (input == null) return false; return ( this.Payload == input.Payload || (this.Payload != null && this.Payload.Equals(input.Payload)) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (this.Payload != null) hashCode = hashCode * 59 + this.Payload.GetHashCode(); return hashCode; } } /// /// To validate all properties of the instance /// /// Validation context /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }