/*
* 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 imagebuilder-2019-12-02.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.Imagebuilder.Model
{
///
/// A detailed view of a component.
///
public partial class Component
{
private string _arn;
private string _changeDescription;
private string _data;
private string _dateCreated;
private string _description;
private bool? _encrypted;
private string _kmsKeyId;
private string _name;
private bool? _obfuscate;
private string _owner;
private List _parameters = new List();
private Platform _platform;
private string _publisher;
private ComponentState _state;
private List _supportedOsVersions = new List();
private Dictionary _tags = new Dictionary();
private ComponentType _type;
private string _version;
///
/// Gets and sets the property Arn.
///
/// The Amazon Resource Name (ARN) of the component.
///
///
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 ChangeDescription.
///
/// The change description of the component.
///
///
[AWSProperty(Min=1, Max=1024)]
public string ChangeDescription
{
get { return this._changeDescription; }
set { this._changeDescription = value; }
}
// Check to see if ChangeDescription property is set
internal bool IsSetChangeDescription()
{
return this._changeDescription != null;
}
///
/// Gets and sets the property Data.
///
/// Component data contains the YAML document content for the component.
///
///
public string Data
{
get { return this._data; }
set { this._data = value; }
}
// Check to see if Data property is set
internal bool IsSetData()
{
return this._data != null;
}
///
/// Gets and sets the property DateCreated.
///
/// The date that Image Builder created the component.
///
///
public string DateCreated
{
get { return this._dateCreated; }
set { this._dateCreated = value; }
}
// Check to see if DateCreated property is set
internal bool IsSetDateCreated()
{
return this._dateCreated != null;
}
///
/// Gets and sets the property Description.
///
/// The description of the component.
///
///
[AWSProperty(Min=1, Max=1024)]
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 Encrypted.
///
/// The encryption status of the component.
///
///
public bool Encrypted
{
get { return this._encrypted.GetValueOrDefault(); }
set { this._encrypted = value; }
}
// Check to see if Encrypted property is set
internal bool IsSetEncrypted()
{
return this._encrypted.HasValue;
}
///
/// Gets and sets the property KmsKeyId.
///
/// The KMS key identifier used to encrypt the component.
///
///
[AWSProperty(Min=1, Max=1024)]
public string KmsKeyId
{
get { return this._kmsKeyId; }
set { this._kmsKeyId = value; }
}
// Check to see if KmsKeyId property is set
internal bool IsSetKmsKeyId()
{
return this._kmsKeyId != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the component.
///
///
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 Obfuscate.
///
/// Indicates whether component source is hidden from view in the console, and from component
/// detail results for API, CLI, or SDK operations.
///
///
public bool Obfuscate
{
get { return this._obfuscate.GetValueOrDefault(); }
set { this._obfuscate = value; }
}
// Check to see if Obfuscate property is set
internal bool IsSetObfuscate()
{
return this._obfuscate.HasValue;
}
///
/// Gets and sets the property Owner.
///
/// The owner of the component.
///
///
[AWSProperty(Min=1, Max=1024)]
public string Owner
{
get { return this._owner; }
set { this._owner = value; }
}
// Check to see if Owner property is set
internal bool IsSetOwner()
{
return this._owner != null;
}
///
/// Gets and sets the property Parameters.
///
/// Contains parameter details for each of the parameters that the component document
/// defined for the component.
///
///
public List Parameters
{
get { return this._parameters; }
set { this._parameters = value; }
}
// Check to see if Parameters property is set
internal bool IsSetParameters()
{
return this._parameters != null && this._parameters.Count > 0;
}
///
/// Gets and sets the property Platform.
///
/// The operating system platform of the component.
///
///
public Platform Platform
{
get { return this._platform; }
set { this._platform = value; }
}
// Check to see if Platform property is set
internal bool IsSetPlatform()
{
return this._platform != null;
}
///
/// Gets and sets the property Publisher.
///
/// Contains the name of the publisher if this is a third-party component. Otherwise,
/// this property is empty.
///
///
[AWSProperty(Min=1, Max=1024)]
public string Publisher
{
get { return this._publisher; }
set { this._publisher = value; }
}
// Check to see if Publisher property is set
internal bool IsSetPublisher()
{
return this._publisher != null;
}
///
/// Gets and sets the property State.
///
/// Describes the current status of the component. This is used for components that are
/// no longer active.
///
///
public ComponentState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
///
/// Gets and sets the property SupportedOsVersions.
///
/// The operating system (OS) version supported by the component. If the OS information
/// is available, Image Builder performs a prefix match against the base image OS version
/// during image recipe creation.
///
///
[AWSProperty(Min=1, Max=25)]
public List SupportedOsVersions
{
get { return this._supportedOsVersions; }
set { this._supportedOsVersions = value; }
}
// Check to see if SupportedOsVersions property is set
internal bool IsSetSupportedOsVersions()
{
return this._supportedOsVersions != null && this._supportedOsVersions.Count > 0;
}
///
/// Gets and sets the property Tags.
///
/// The tags that apply to the component.
///
///
[AWSProperty(Min=1, Max=50)]
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 Type.
///
/// The component type specifies whether Image Builder uses the component to build the
/// image or only to test it.
///
///
public ComponentType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
///
/// Gets and sets the property Version.
///
/// The version of the component.
///
///
public string Version
{
get { return this._version; }
set { this._version = value; }
}
// Check to see if Version property is set
internal bool IsSetVersion()
{
return this._version != null;
}
}
}