/// <summary> /// Initializes a new instance of the <see cref="PutApplicationRequest" /> class. /// </summary> /// <param name="ApplicationName">The application title (required).</param> /// <param name="ApplicationDescription">Description of the application that will help you manage multiple applications.</param> /// <param name="EmailList">List the email addresses of additional people who should be informed of activity related to this release. Separate multiple email addresses with a semicolon or comma.</param> /// <param name="Attributes">Application attributes. This is an array of key/value objects. Example, [{\"Attribute 1\": \"value 1\"}, {\"Attribute 2\": \"value 2\"}, {\"Attribute 3\": \"value 3\"} ].</param> /// <param name="BusinessCriticalityType">The business criticality type (required).</param> public PutApplicationRequest(string ApplicationName = default(string), string ApplicationDescription = default(string), string EmailList = default(string), List <ApplicationAttribute> Attributes = default(List <ApplicationAttribute>), BusinessCriticalityTypeEnum BusinessCriticalityType = default(BusinessCriticalityTypeEnum)) { // to ensure "ApplicationName" is required (not null) if (ApplicationName == null) { throw new InvalidDataException("ApplicationName is a required property for PutApplicationRequest and cannot be null"); } else { this.ApplicationName = ApplicationName; } // to ensure "BusinessCriticalityType" is required (not null) if (BusinessCriticalityType == null) { throw new InvalidDataException("BusinessCriticalityType is a required property for PutApplicationRequest and cannot be null"); } else { this.BusinessCriticalityType = BusinessCriticalityType; } this.ApplicationDescription = ApplicationDescription; this.EmailList = EmailList; this.Attributes = Attributes; }
/// <summary> /// Initializes a new instance of the <see cref="PostApplicationRequest" /> class. /// </summary> /// <param name="ApplicationName">The application title (required).</param> /// <param name="ApplicationDescription">Description of the application that will help you manage multiple applications.</param> /// <param name="ApplicationType">Indicates if the application is a mobile application (required).</param> /// <param name="ReleaseName">The release name (required).</param> /// <param name="ReleaseDescription">Description to add additional details that help describe the release.</param> /// <param name="EmailList">List the email addresses of additional people who should be informed of activity related to this release. Separate multiple email addresses with a semicolon or comma.</param> /// <param name="OwnerId">Select an Owner from the list of registered users in your tenant. The \"Owner\" receives all email notifications related to this application (required).</param> /// <param name="Attributes">Application attributes. This is an array of key/value objects. Example, [{\"Attribute 1\": \"value 1\"}, {\"Attribute 2\": \"value 2\"}, {\"Attribute 3\": \"value 3\"} ].</param> /// <param name="BusinessCriticalityType">The business criticality id (required).</param> /// <param name="SdlcStatusType">The SDLC status id (required).</param> public PostApplicationRequest(string ApplicationName = default(string), string ApplicationDescription = default(string), ApplicationTypeEnum ApplicationType = default(ApplicationTypeEnum), string ReleaseName = default(string), string ReleaseDescription = default(string), string EmailList = default(string), int?OwnerId = default(int?), List <ApplicationAttribute> Attributes = default(List <ApplicationAttribute>), BusinessCriticalityTypeEnum BusinessCriticalityType = default(BusinessCriticalityTypeEnum), SdlcStatusTypeEnum SdlcStatusType = default(SdlcStatusTypeEnum)) { // to ensure "ApplicationName" is required (not null) if (ApplicationName == null) { throw new InvalidDataException("ApplicationName is a required property for PostApplicationRequest and cannot be null"); } else { this.ApplicationName = ApplicationName; } // to ensure "ApplicationType" is required (not null) if (ApplicationType == null) { throw new InvalidDataException("ApplicationType is a required property for PostApplicationRequest and cannot be null"); } else { this.ApplicationType = ApplicationType; } // to ensure "ReleaseName" is required (not null) if (ReleaseName == null) { throw new InvalidDataException("ReleaseName is a required property for PostApplicationRequest and cannot be null"); } else { this.ReleaseName = ReleaseName; } // to ensure "OwnerId" is required (not null) if (OwnerId == null) { throw new InvalidDataException("OwnerId is a required property for PostApplicationRequest and cannot be null"); } else { this.OwnerId = OwnerId; } // to ensure "BusinessCriticalityType" is required (not null) if (BusinessCriticalityType == null) { throw new InvalidDataException("BusinessCriticalityType is a required property for PostApplicationRequest and cannot be null"); } else { this.BusinessCriticalityType = BusinessCriticalityType; } // to ensure "SdlcStatusType" is required (not null) if (SdlcStatusType == null) { throw new InvalidDataException("SdlcStatusType is a required property for PostApplicationRequest and cannot be null"); } else { this.SdlcStatusType = SdlcStatusType; } this.ApplicationDescription = ApplicationDescription; this.ReleaseDescription = ReleaseDescription; this.EmailList = EmailList; this.Attributes = Attributes; }