/* * 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 greengrassv2-2020-11-30.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.GreengrassV2.Model { /// /// This is the response object from the GetDeployment operation. /// public partial class GetDeploymentResponse : AmazonWebServiceResponse { private Dictionary _components = new Dictionary(); private DateTime? _creationTimestamp; private string _deploymentId; private string _deploymentName; private DeploymentPolicies _deploymentPolicies; private DeploymentStatus _deploymentStatus; private string _iotJobArn; private DeploymentIoTJobConfiguration _iotJobConfiguration; private string _iotJobId; private bool? _isLatestForTarget; private string _parentTargetArn; private string _revisionId; private Dictionary _tags = new Dictionary(); private string _targetArn; /// /// Gets and sets the property Components. /// /// The components to deploy. This is a dictionary, where each key is the name of a component, /// and each key's value is the version and configuration to deploy for that component. /// /// public Dictionary Components { get { return this._components; } set { this._components = value; } } // Check to see if Components property is set internal bool IsSetComponents() { return this._components != null && this._components.Count > 0; } /// /// Gets and sets the property CreationTimestamp. /// /// The time at which the deployment was created, expressed in ISO 8601 format. /// /// public DateTime CreationTimestamp { get { return this._creationTimestamp.GetValueOrDefault(); } set { this._creationTimestamp = value; } } // Check to see if CreationTimestamp property is set internal bool IsSetCreationTimestamp() { return this._creationTimestamp.HasValue; } /// /// Gets and sets the property DeploymentId. /// /// The ID of the deployment. /// /// [AWSProperty(Min=1)] public string DeploymentId { get { return this._deploymentId; } set { this._deploymentId = value; } } // Check to see if DeploymentId property is set internal bool IsSetDeploymentId() { return this._deploymentId != null; } /// /// Gets and sets the property DeploymentName. /// /// The name of the deployment. /// /// public string DeploymentName { get { return this._deploymentName; } set { this._deploymentName = value; } } // Check to see if DeploymentName property is set internal bool IsSetDeploymentName() { return this._deploymentName != null; } /// /// Gets and sets the property DeploymentPolicies. /// /// The deployment policies for the deployment. These policies define how the deployment /// updates components and handles failure. /// /// public DeploymentPolicies DeploymentPolicies { get { return this._deploymentPolicies; } set { this._deploymentPolicies = value; } } // Check to see if DeploymentPolicies property is set internal bool IsSetDeploymentPolicies() { return this._deploymentPolicies != null; } /// /// Gets and sets the property DeploymentStatus. /// /// The status of the deployment. /// /// 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 IotJobArn. /// /// The ARN /// of the IoT job that applies the deployment to target devices. /// /// public string IotJobArn { get { return this._iotJobArn; } set { this._iotJobArn = value; } } // Check to see if IotJobArn property is set internal bool IsSetIotJobArn() { return this._iotJobArn != null; } /// /// Gets and sets the property IotJobConfiguration. /// /// The job configuration for the deployment configuration. The job configuration specifies /// the rollout, timeout, and stop configurations for the deployment configuration. /// /// public DeploymentIoTJobConfiguration IotJobConfiguration { get { return this._iotJobConfiguration; } set { this._iotJobConfiguration = value; } } // Check to see if IotJobConfiguration property is set internal bool IsSetIotJobConfiguration() { return this._iotJobConfiguration != null; } /// /// Gets and sets the property IotJobId. /// /// The ID of the IoT job that applies the deployment to target devices. /// /// public string IotJobId { get { return this._iotJobId; } set { this._iotJobId = value; } } // Check to see if IotJobId property is set internal bool IsSetIotJobId() { return this._iotJobId != null; } /// /// Gets and sets the property IsLatestForTarget. /// /// Whether or not the deployment is the latest revision for its target. /// /// public bool IsLatestForTarget { get { return this._isLatestForTarget.GetValueOrDefault(); } set { this._isLatestForTarget = value; } } // Check to see if IsLatestForTarget property is set internal bool IsSetIsLatestForTarget() { return this._isLatestForTarget.HasValue; } /// /// Gets and sets the property ParentTargetArn. /// /// The parent deployment's target ARN /// within a subdeployment. /// /// public string ParentTargetArn { get { return this._parentTargetArn; } set { this._parentTargetArn = value; } } // Check to see if ParentTargetArn property is set internal bool IsSetParentTargetArn() { return this._parentTargetArn != null; } /// /// Gets and sets the property RevisionId. /// /// The revision number of the deployment. /// /// [AWSProperty(Min=1)] public string RevisionId { get { return this._revisionId; } set { this._revisionId = value; } } // Check to see if RevisionId property is set internal bool IsSetRevisionId() { return this._revisionId != null; } /// /// Gets and sets the property Tags. /// /// A list of key-value pairs that contain metadata for the resource. For more information, /// see Tag /// your resources in the IoT Greengrass V2 Developer Guide. /// /// [AWSProperty(Min=1, Max=200)] public Dictionary Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// Gets and sets the property TargetArn. /// /// The ARN /// of the target IoT thing or thing group. /// /// public string TargetArn { get { return this._targetArn; } set { this._targetArn = value; } } // Check to see if TargetArn property is set internal bool IsSetTargetArn() { return this._targetArn != null; } } }