/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the wellarchitected-2020-03-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.WellArchitected.Model { /// /// Container for the parameters to the UpdateWorkload operation. /// Update an existing workload. /// public partial class UpdateWorkloadRequest : AmazonWellArchitectedRequest { private List _accountIds = new List(); private List _applications = new List(); private string _architecturalDesign; private List _awsRegions = new List(); private string _description; private WorkloadDiscoveryConfig _discoveryConfig; private WorkloadEnvironment _environment; private WorkloadImprovementStatus _improvementStatus; private string _industry; private string _industryType; private bool? _isReviewOwnerUpdateAcknowledged; private List _nonAwsRegions = new List(); private string _notes; private List _pillarPriorities = new List(); private string _reviewOwner; private string _workloadId; private string _workloadName; /// /// Gets and sets the property AccountIds. /// [AWSProperty(Max=100)] public List AccountIds { get { return this._accountIds; } set { this._accountIds = value; } } // Check to see if AccountIds property is set internal bool IsSetAccountIds() { return this._accountIds != null && this._accountIds.Count > 0; } /// /// Gets and sets the property Applications. /// /// List of AppRegistry application ARNs to associate to the workload. /// /// [AWSProperty(Max=1)] public List Applications { get { return this._applications; } set { this._applications = value; } } // Check to see if Applications property is set internal bool IsSetApplications() { return this._applications != null && this._applications.Count > 0; } /// /// Gets and sets the property ArchitecturalDesign. /// [AWSProperty(Max=2048)] public string ArchitecturalDesign { get { return this._architecturalDesign; } set { this._architecturalDesign = value; } } // Check to see if ArchitecturalDesign property is set internal bool IsSetArchitecturalDesign() { return this._architecturalDesign != null; } /// /// Gets and sets the property AwsRegions. /// [AWSProperty(Max=50)] public List AwsRegions { get { return this._awsRegions; } set { this._awsRegions = value; } } // Check to see if AwsRegions property is set internal bool IsSetAwsRegions() { return this._awsRegions != null && this._awsRegions.Count > 0; } /// /// Gets and sets the property Description. /// [AWSProperty(Min=3, Max=250)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property DiscoveryConfig. /// /// Well-Architected discovery configuration settings to associate to the workload. /// /// public WorkloadDiscoveryConfig DiscoveryConfig { get { return this._discoveryConfig; } set { this._discoveryConfig = value; } } // Check to see if DiscoveryConfig property is set internal bool IsSetDiscoveryConfig() { return this._discoveryConfig != null; } /// /// Gets and sets the property Environment. /// public WorkloadEnvironment Environment { get { return this._environment; } set { this._environment = value; } } // Check to see if Environment property is set internal bool IsSetEnvironment() { return this._environment != null; } /// /// Gets and sets the property ImprovementStatus. /// public WorkloadImprovementStatus ImprovementStatus { get { return this._improvementStatus; } set { this._improvementStatus = value; } } // Check to see if ImprovementStatus property is set internal bool IsSetImprovementStatus() { return this._improvementStatus != null; } /// /// Gets and sets the property Industry. /// [AWSProperty(Max=100)] public string Industry { get { return this._industry; } set { this._industry = value; } } // Check to see if Industry property is set internal bool IsSetIndustry() { return this._industry != null; } /// /// Gets and sets the property IndustryType. /// [AWSProperty(Max=100)] public string IndustryType { get { return this._industryType; } set { this._industryType = value; } } // Check to see if IndustryType property is set internal bool IsSetIndustryType() { return this._industryType != null; } /// /// Gets and sets the property IsReviewOwnerUpdateAcknowledged. /// /// Flag indicating whether the workload owner has acknowledged that the Review owner /// field is required. /// /// /// /// If a Review owner is not added to the workload within 60 days of acknowledgement, /// access to the workload is restricted until an owner is added. /// /// public bool IsReviewOwnerUpdateAcknowledged { get { return this._isReviewOwnerUpdateAcknowledged.GetValueOrDefault(); } set { this._isReviewOwnerUpdateAcknowledged = value; } } // Check to see if IsReviewOwnerUpdateAcknowledged property is set internal bool IsSetIsReviewOwnerUpdateAcknowledged() { return this._isReviewOwnerUpdateAcknowledged.HasValue; } /// /// Gets and sets the property NonAwsRegions. /// [AWSProperty(Max=5)] public List NonAwsRegions { get { return this._nonAwsRegions; } set { this._nonAwsRegions = value; } } // Check to see if NonAwsRegions property is set internal bool IsSetNonAwsRegions() { return this._nonAwsRegions != null && this._nonAwsRegions.Count > 0; } /// /// Gets and sets the property Notes. /// [AWSProperty(Max=2084)] public string Notes { get { return this._notes; } set { this._notes = value; } } // Check to see if Notes property is set internal bool IsSetNotes() { return this._notes != null; } /// /// Gets and sets the property PillarPriorities. /// public List PillarPriorities { get { return this._pillarPriorities; } set { this._pillarPriorities = value; } } // Check to see if PillarPriorities property is set internal bool IsSetPillarPriorities() { return this._pillarPriorities != null && this._pillarPriorities.Count > 0; } /// /// Gets and sets the property ReviewOwner. /// [AWSProperty(Min=3, Max=255)] public string ReviewOwner { get { return this._reviewOwner; } set { this._reviewOwner = value; } } // Check to see if ReviewOwner property is set internal bool IsSetReviewOwner() { return this._reviewOwner != null; } /// /// Gets and sets the property WorkloadId. /// [AWSProperty(Required=true, Min=32, Max=32)] public string WorkloadId { get { return this._workloadId; } set { this._workloadId = value; } } // Check to see if WorkloadId property is set internal bool IsSetWorkloadId() { return this._workloadId != null; } /// /// Gets and sets the property WorkloadName. /// [AWSProperty(Min=3, Max=100)] public string WorkloadName { get { return this._workloadName; } set { this._workloadName = value; } } // Check to see if WorkloadName property is set internal bool IsSetWorkloadName() { return this._workloadName != null; } } }