/// <summary> /// Initializes a new instance of the <see cref="UploadAppBundleParameters" /> class. /// </summary> /// <param name="EndpointURL">EndpointURL (required).</param> /// <param name="FormData">FormData (required).</param> public UploadAppBundleParameters(string EndpointURL = null, UploadAppBundleParameteresFormData FormData = null) { // to ensure "EndpointURL" is required (not null) if (EndpointURL == null) { throw new InvalidDataException("EndpointURL is a required property for UploadAppBundleParameters and cannot be null"); } else { this.EndpointURL = EndpointURL; } // to ensure "FormData" is required (not null) if (FormData == null) { throw new InvalidDataException("FormData is a required property for UploadAppBundleParameters and cannot be null"); } else { this.FormData = FormData; } }
/// <summary> /// Returns true if UploadAppBundleParameteresFormData instances are equal /// </summary> /// <param name="other">Instance of UploadAppBundleParameteresFormData to be compared</param> /// <returns>Boolean</returns> public bool Equals(UploadAppBundleParameteresFormData other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) { return(false); } return (( this.Key == other.Key || this.Key != null && this.Key.Equals(other.Key) ) && ( this.ContentType == other.ContentType || this.ContentType != null && this.ContentType.Equals(other.ContentType) ) && ( this.Policy == other.Policy || this.Policy != null && this.Policy.Equals(other.Policy) ) && ( this.SuccessActionStatus == other.SuccessActionStatus || this.SuccessActionStatus != null && this.SuccessActionStatus.Equals(other.SuccessActionStatus) ) && ( this.SuccessActionRedirect == other.SuccessActionRedirect || this.SuccessActionRedirect != null && this.SuccessActionRedirect.Equals(other.SuccessActionRedirect) ) && ( this.XAmzSignature == other.XAmzSignature || this.XAmzSignature != null && this.XAmzSignature.Equals(other.XAmzSignature) ) && ( this.XAmzCredential == other.XAmzCredential || this.XAmzCredential != null && this.XAmzCredential.Equals(other.XAmzCredential) ) && ( this.XAmzAlgorithm == other.XAmzAlgorithm || this.XAmzAlgorithm != null && this.XAmzAlgorithm.Equals(other.XAmzAlgorithm) ) && ( this.XAmzDate == other.XAmzDate || this.XAmzDate != null && this.XAmzDate.Equals(other.XAmzDate) ) && ( this.XAmzServerSideEncryption == other.XAmzServerSideEncryption || this.XAmzServerSideEncryption != null && this.XAmzServerSideEncryption.Equals(other.XAmzServerSideEncryption) ) && ( this.XAmzSecurityToken == other.XAmzSecurityToken || this.XAmzSecurityToken != null && this.XAmzSecurityToken.Equals(other.XAmzSecurityToken) )); }