/*
* 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 eks-2017-11-01.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.EKS.Model
{
///
/// An object representing an Fargate profile.
///
public partial class FargateProfile
{
private string _clusterName;
private DateTime? _createdAt;
private string _fargateProfileArn;
private string _fargateProfileName;
private string _podExecutionRoleArn;
private List _selectors = new List();
private FargateProfileStatus _status;
private List _subnets = new List();
private Dictionary _tags = new Dictionary();
///
/// Gets and sets the property ClusterName.
///
/// The name of the Amazon EKS cluster that the Fargate profile belongs to.
///
///
public string ClusterName
{
get { return this._clusterName; }
set { this._clusterName = value; }
}
// Check to see if ClusterName property is set
internal bool IsSetClusterName()
{
return this._clusterName != null;
}
///
/// Gets and sets the property CreatedAt.
///
/// The Unix epoch timestamp in seconds for when the Fargate profile was created.
///
///
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 FargateProfileArn.
///
/// The full Amazon Resource Name (ARN) of the Fargate profile.
///
///
public string FargateProfileArn
{
get { return this._fargateProfileArn; }
set { this._fargateProfileArn = value; }
}
// Check to see if FargateProfileArn property is set
internal bool IsSetFargateProfileArn()
{
return this._fargateProfileArn != null;
}
///
/// Gets and sets the property FargateProfileName.
///
/// The name of the Fargate profile.
///
///
public string FargateProfileName
{
get { return this._fargateProfileName; }
set { this._fargateProfileName = value; }
}
// Check to see if FargateProfileName property is set
internal bool IsSetFargateProfileName()
{
return this._fargateProfileName != null;
}
///
/// Gets and sets the property PodExecutionRoleArn.
///
/// The Amazon Resource Name (ARN) of the pod execution role to use for pods that match
/// the selectors in the Fargate profile. For more information, see Pod
/// Execution Role in the Amazon EKS User Guide.
///
///
public string PodExecutionRoleArn
{
get { return this._podExecutionRoleArn; }
set { this._podExecutionRoleArn = value; }
}
// Check to see if PodExecutionRoleArn property is set
internal bool IsSetPodExecutionRoleArn()
{
return this._podExecutionRoleArn != null;
}
///
/// Gets and sets the property Selectors.
///
/// The selectors to match for pods to use this Fargate profile.
///
///
public List Selectors
{
get { return this._selectors; }
set { this._selectors = value; }
}
// Check to see if Selectors property is set
internal bool IsSetSelectors()
{
return this._selectors != null && this._selectors.Count > 0;
}
///
/// Gets and sets the property Status.
///
/// The current status of the Fargate profile.
///
///
public FargateProfileStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property Subnets.
///
/// The IDs of subnets to launch pods into.
///
///
public List Subnets
{
get { return this._subnets; }
set { this._subnets = value; }
}
// Check to see if Subnets property is set
internal bool IsSetSubnets()
{
return this._subnets != null && this._subnets.Count > 0;
}
///
/// Gets and sets the property Tags.
///
/// The metadata applied to the Fargate profile to assist with categorization and organization.
/// Each tag consists of a key and an optional value. You define both. Fargate profile
/// tags do not propagate to any other resources associated with the Fargate profile,
/// such as the pods that are scheduled with it.
///
///
[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;
}
}
}