/*
* 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 sagemaker-2017-07-24.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.SageMaker.Model
{
///
/// A single private workforce, which is automatically created when you create your first
/// private work team. You can create one private work force in each Amazon Web Services
/// Region. By default, any workforce-related API operation used in a specific region
/// will apply to the workforce created in that region. To learn how to create a private
/// workforce, see Create
/// a Private Workforce.
///
public partial class Workforce
{
private CognitoConfig _cognitoConfig;
private DateTime? _createDate;
private string _failureReason;
private DateTime? _lastUpdatedDate;
private OidcConfigForResponse _oidcConfig;
private SourceIpConfig _sourceIpConfig;
private WorkforceStatus _status;
private string _subDomain;
private string _workforceArn;
private string _workforceName;
private WorkforceVpcConfigResponse _workforceVpcConfig;
///
/// Gets and sets the property CognitoConfig.
///
/// The configuration of an Amazon Cognito workforce. A single Cognito workforce is created
/// using and corresponds to a single
/// Amazon Cognito user pool.
///
///
public CognitoConfig CognitoConfig
{
get { return this._cognitoConfig; }
set { this._cognitoConfig = value; }
}
// Check to see if CognitoConfig property is set
internal bool IsSetCognitoConfig()
{
return this._cognitoConfig != null;
}
///
/// Gets and sets the property CreateDate.
///
/// The date that the workforce is created.
///
///
public DateTime CreateDate
{
get { return this._createDate.GetValueOrDefault(); }
set { this._createDate = value; }
}
// Check to see if CreateDate property is set
internal bool IsSetCreateDate()
{
return this._createDate.HasValue;
}
///
/// Gets and sets the property FailureReason.
///
/// The reason your workforce failed.
///
///
[AWSProperty(Min=1, Max=1024)]
public string FailureReason
{
get { return this._failureReason; }
set { this._failureReason = value; }
}
// Check to see if FailureReason property is set
internal bool IsSetFailureReason()
{
return this._failureReason != null;
}
///
/// Gets and sets the property LastUpdatedDate.
///
/// The most recent date that UpdateWorkforce
/// was used to successfully add one or more IP address ranges (CIDRs)
/// to a private workforce's allow list.
///
///
public DateTime LastUpdatedDate
{
get { return this._lastUpdatedDate.GetValueOrDefault(); }
set { this._lastUpdatedDate = value; }
}
// Check to see if LastUpdatedDate property is set
internal bool IsSetLastUpdatedDate()
{
return this._lastUpdatedDate.HasValue;
}
///
/// Gets and sets the property OidcConfig.
///
/// The configuration of an OIDC Identity Provider (IdP) private workforce.
///
///
public OidcConfigForResponse OidcConfig
{
get { return this._oidcConfig; }
set { this._oidcConfig = value; }
}
// Check to see if OidcConfig property is set
internal bool IsSetOidcConfig()
{
return this._oidcConfig != null;
}
///
/// Gets and sets the property SourceIpConfig.
///
/// A list of one to ten IP address ranges (CIDRs)
/// to be added to the workforce allow list. By default, a workforce isn't restricted
/// to specific IP addresses.
///
///
public SourceIpConfig SourceIpConfig
{
get { return this._sourceIpConfig; }
set { this._sourceIpConfig = value; }
}
// Check to see if SourceIpConfig property is set
internal bool IsSetSourceIpConfig()
{
return this._sourceIpConfig != null;
}
///
/// Gets and sets the property Status.
///
/// The status of your workforce.
///
///
public WorkforceStatus 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 SubDomain.
///
/// The subdomain for your OIDC Identity Provider.
///
///
public string SubDomain
{
get { return this._subDomain; }
set { this._subDomain = value; }
}
// Check to see if SubDomain property is set
internal bool IsSetSubDomain()
{
return this._subDomain != null;
}
///
/// Gets and sets the property WorkforceArn.
///
/// The Amazon Resource Name (ARN) of the private workforce.
///
///
[AWSProperty(Required=true, Max=256)]
public string WorkforceArn
{
get { return this._workforceArn; }
set { this._workforceArn = value; }
}
// Check to see if WorkforceArn property is set
internal bool IsSetWorkforceArn()
{
return this._workforceArn != null;
}
///
/// Gets and sets the property WorkforceName.
///
/// The name of the private workforce.
///
///
[AWSProperty(Required=true, Min=1, Max=63)]
public string WorkforceName
{
get { return this._workforceName; }
set { this._workforceName = value; }
}
// Check to see if WorkforceName property is set
internal bool IsSetWorkforceName()
{
return this._workforceName != null;
}
///
/// Gets and sets the property WorkforceVpcConfig.
///
/// The configuration of a VPC workforce.
///
///
public WorkforceVpcConfigResponse WorkforceVpcConfig
{
get { return this._workforceVpcConfig; }
set { this._workforceVpcConfig = value; }
}
// Check to see if WorkforceVpcConfig property is set
internal bool IsSetWorkforceVpcConfig()
{
return this._workforceVpcConfig != null;
}
}
}