/* * 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 proton-2020-07-20.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.Proton.Model { /// /// Detailed data of an Proton component resource. /// /// /// /// For more information about components, see Proton /// components in the Proton User Guide. /// /// public partial class Component { private string _arn; private DateTime? _createdAt; private DeploymentStatus _deploymentStatus; private string _deploymentStatusMessage; private string _description; private string _environmentName; private string _lastAttemptedDeploymentId; private string _lastClientRequestToken; private DateTime? _lastDeploymentAttemptedAt; private DateTime? _lastDeploymentSucceededAt; private DateTime? _lastModifiedAt; private string _lastSucceededDeploymentId; private string _name; private string _serviceInstanceName; private string _serviceName; private string _serviceSpec; /// /// Gets and sets the property Arn. /// /// The Amazon Resource Name (ARN) of the component. /// /// [AWSProperty(Required=true)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// /// Gets and sets the property CreatedAt. /// /// The time when the component was created. /// /// [AWSProperty(Required=true)] public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// /// Gets and sets the property DeploymentStatus. /// /// The component deployment status. /// /// [AWSProperty(Required=true)] public DeploymentStatus DeploymentStatus { get { return this._deploymentStatus; } set { this._deploymentStatus = value; } } // Check to see if DeploymentStatus property is set internal bool IsSetDeploymentStatus() { return this._deploymentStatus != null; } /// /// Gets and sets the property DeploymentStatusMessage. /// /// The message associated with the component deployment status. /// /// [AWSProperty(Sensitive=true)] public string DeploymentStatusMessage { get { return this._deploymentStatusMessage; } set { this._deploymentStatusMessage = value; } } // Check to see if DeploymentStatusMessage property is set internal bool IsSetDeploymentStatusMessage() { return this._deploymentStatusMessage != null; } /// /// Gets and sets the property Description. /// /// A description of the component. /// /// [AWSProperty(Sensitive=true, Min=0, Max=500)] 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 EnvironmentName. /// /// The name of the Proton environment that this component is associated with. /// /// [AWSProperty(Required=true, Min=1, Max=100)] public string EnvironmentName { get { return this._environmentName; } set { this._environmentName = value; } } // Check to see if EnvironmentName property is set internal bool IsSetEnvironmentName() { return this._environmentName != null; } /// /// Gets and sets the property LastAttemptedDeploymentId. /// /// The ID of the last attempted deployment of this component. /// /// public string LastAttemptedDeploymentId { get { return this._lastAttemptedDeploymentId; } set { this._lastAttemptedDeploymentId = value; } } // Check to see if LastAttemptedDeploymentId property is set internal bool IsSetLastAttemptedDeploymentId() { return this._lastAttemptedDeploymentId != null; } /// /// Gets and sets the property LastClientRequestToken. /// /// The last token the client requested. /// /// public string LastClientRequestToken { get { return this._lastClientRequestToken; } set { this._lastClientRequestToken = value; } } // Check to see if LastClientRequestToken property is set internal bool IsSetLastClientRequestToken() { return this._lastClientRequestToken != null; } /// /// Gets and sets the property LastDeploymentAttemptedAt. /// /// The time when a deployment of the component was last attempted. /// /// public DateTime LastDeploymentAttemptedAt { get { return this._lastDeploymentAttemptedAt.GetValueOrDefault(); } set { this._lastDeploymentAttemptedAt = value; } } // Check to see if LastDeploymentAttemptedAt property is set internal bool IsSetLastDeploymentAttemptedAt() { return this._lastDeploymentAttemptedAt.HasValue; } /// /// Gets and sets the property LastDeploymentSucceededAt. /// /// The time when the component was last deployed successfully. /// /// public DateTime LastDeploymentSucceededAt { get { return this._lastDeploymentSucceededAt.GetValueOrDefault(); } set { this._lastDeploymentSucceededAt = value; } } // Check to see if LastDeploymentSucceededAt property is set internal bool IsSetLastDeploymentSucceededAt() { return this._lastDeploymentSucceededAt.HasValue; } /// /// Gets and sets the property LastModifiedAt. /// /// The time when the component was last modified. /// /// [AWSProperty(Required=true)] public DateTime LastModifiedAt { get { return this._lastModifiedAt.GetValueOrDefault(); } set { this._lastModifiedAt = value; } } // Check to see if LastModifiedAt property is set internal bool IsSetLastModifiedAt() { return this._lastModifiedAt.HasValue; } /// /// Gets and sets the property LastSucceededDeploymentId. /// /// The ID of the last successful deployment of this component. /// /// public string LastSucceededDeploymentId { get { return this._lastSucceededDeploymentId; } set { this._lastSucceededDeploymentId = value; } } // Check to see if LastSucceededDeploymentId property is set internal bool IsSetLastSucceededDeploymentId() { return this._lastSucceededDeploymentId != null; } /// /// Gets and sets the property Name. /// /// The name of the component. /// /// [AWSProperty(Required=true, Min=1, Max=100)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property ServiceInstanceName. /// /// The name of the service instance that this component is attached to. Provided when /// a component is attached to a service instance. /// /// [AWSProperty(Min=1, Max=100)] public string ServiceInstanceName { get { return this._serviceInstanceName; } set { this._serviceInstanceName = value; } } // Check to see if ServiceInstanceName property is set internal bool IsSetServiceInstanceName() { return this._serviceInstanceName != null; } /// /// Gets and sets the property ServiceName. /// /// The name of the service that serviceInstanceName is associated with. /// Provided when a component is attached to a service instance. /// /// [AWSProperty(Min=1, Max=100)] public string ServiceName { get { return this._serviceName; } set { this._serviceName = value; } } // Check to see if ServiceName property is set internal bool IsSetServiceName() { return this._serviceName != null; } /// /// Gets and sets the property ServiceSpec. /// /// The service spec that the component uses to access service inputs. Provided when a /// component is attached to a service instance. /// /// [AWSProperty(Sensitive=true, Min=1, Max=51200)] public string ServiceSpec { get { return this._serviceSpec; } set { this._serviceSpec = value; } } // Check to see if ServiceSpec property is set internal bool IsSetServiceSpec() { return this._serviceSpec != null; } } }