/*
* 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 m2-2021-04-28.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.MainframeModernization.Model
{
///
/// This is the response object from the GetEnvironment operation.
///
public partial class GetEnvironmentResponse : AmazonWebServiceResponse
{
private int? _actualCapacity;
private DateTime? _creationTime;
private string _description;
private EngineType _engineType;
private string _engineVersion;
private string _environmentArn;
private string _environmentId;
private HighAvailabilityConfig _highAvailabilityConfig;
private string _instanceType;
private string _kmsKeyId;
private string _loadBalancerArn;
private string _name;
private PendingMaintenance _pendingMaintenance;
private string _preferredMaintenanceWindow;
private bool? _publiclyAccessible;
private List _securityGroupIds = new List();
private EnvironmentLifecycle _status;
private string _statusReason;
private List _storageConfigurations = new List();
private List _subnetIds = new List();
private Dictionary _tags = new Dictionary();
private string _vpcId;
///
/// Gets and sets the property ActualCapacity.
///
/// The number of instances included in the runtime environment. A standalone runtime
/// environment has a maxiumum of one instance. Currently, a high availability runtime
/// environment has a maximum of two instances.
///
///
public int ActualCapacity
{
get { return this._actualCapacity.GetValueOrDefault(); }
set { this._actualCapacity = value; }
}
// Check to see if ActualCapacity property is set
internal bool IsSetActualCapacity()
{
return this._actualCapacity.HasValue;
}
///
/// Gets and sets the property CreationTime.
///
/// The timestamp when the runtime environment was created.
///
///
[AWSProperty(Required=true)]
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
///
/// Gets and sets the property Description.
///
/// The description of the runtime environment.
///
///
[AWSProperty(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 EngineType.
///
/// The target platform for the runtime environment.
///
///
[AWSProperty(Required=true)]
public EngineType EngineType
{
get { return this._engineType; }
set { this._engineType = value; }
}
// Check to see if EngineType property is set
internal bool IsSetEngineType()
{
return this._engineType != null;
}
///
/// Gets and sets the property EngineVersion.
///
/// The version of the runtime engine.
///
///
[AWSProperty(Required=true)]
public string EngineVersion
{
get { return this._engineVersion; }
set { this._engineVersion = value; }
}
// Check to see if EngineVersion property is set
internal bool IsSetEngineVersion()
{
return this._engineVersion != null;
}
///
/// Gets and sets the property EnvironmentArn.
///
/// The Amazon Resource Name (ARN) of the runtime environment.
///
///
[AWSProperty(Required=true)]
public string EnvironmentArn
{
get { return this._environmentArn; }
set { this._environmentArn = value; }
}
// Check to see if EnvironmentArn property is set
internal bool IsSetEnvironmentArn()
{
return this._environmentArn != null;
}
///
/// Gets and sets the property EnvironmentId.
///
/// The unique identifier of the runtime environment.
///
///
[AWSProperty(Required=true)]
public string EnvironmentId
{
get { return this._environmentId; }
set { this._environmentId = value; }
}
// Check to see if EnvironmentId property is set
internal bool IsSetEnvironmentId()
{
return this._environmentId != null;
}
///
/// Gets and sets the property HighAvailabilityConfig.
///
/// The desired capacity of the high availability configuration for the runtime environment.
///
///
public HighAvailabilityConfig HighAvailabilityConfig
{
get { return this._highAvailabilityConfig; }
set { this._highAvailabilityConfig = value; }
}
// Check to see if HighAvailabilityConfig property is set
internal bool IsSetHighAvailabilityConfig()
{
return this._highAvailabilityConfig != null;
}
///
/// Gets and sets the property InstanceType.
///
/// The type of instance underlying the runtime environment.
///
///
[AWSProperty(Required=true)]
public string InstanceType
{
get { return this._instanceType; }
set { this._instanceType = value; }
}
// Check to see if InstanceType property is set
internal bool IsSetInstanceType()
{
return this._instanceType != null;
}
///
/// Gets and sets the property KmsKeyId.
///
/// The identifier of a customer managed key.
///
///
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 LoadBalancerArn.
///
/// The Amazon Resource Name (ARN) for the load balancer used with the runtime environment.
///
///
public string LoadBalancerArn
{
get { return this._loadBalancerArn; }
set { this._loadBalancerArn = value; }
}
// Check to see if LoadBalancerArn property is set
internal bool IsSetLoadBalancerArn()
{
return this._loadBalancerArn != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the runtime environment. Must be unique within the account.
///
///
[AWSProperty(Required=true)]
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 PendingMaintenance.
///
/// Indicates the pending maintenance scheduled on this environment.
///
///
public PendingMaintenance PendingMaintenance
{
get { return this._pendingMaintenance; }
set { this._pendingMaintenance = value; }
}
// Check to see if PendingMaintenance property is set
internal bool IsSetPendingMaintenance()
{
return this._pendingMaintenance != null;
}
///
/// Gets and sets the property PreferredMaintenanceWindow.
///
/// Configures the maintenance window you want for the runtime environment. If you do
/// not provide a value, a random system-generated value will be assigned.
///
///
public string PreferredMaintenanceWindow
{
get { return this._preferredMaintenanceWindow; }
set { this._preferredMaintenanceWindow = value; }
}
// Check to see if PreferredMaintenanceWindow property is set
internal bool IsSetPreferredMaintenanceWindow()
{
return this._preferredMaintenanceWindow != null;
}
///
/// Gets and sets the property PubliclyAccessible.
///
/// Whether applications running in this runtime environment are publicly accessible.
///
///
///
public bool PubliclyAccessible
{
get { return this._publiclyAccessible.GetValueOrDefault(); }
set { this._publiclyAccessible = value; }
}
// Check to see if PubliclyAccessible property is set
internal bool IsSetPubliclyAccessible()
{
return this._publiclyAccessible.HasValue;
}
///
/// Gets and sets the property SecurityGroupIds.
///
/// The unique identifiers of the security groups assigned to this runtime environment.
///
///
[AWSProperty(Required=true)]
public List SecurityGroupIds
{
get { return this._securityGroupIds; }
set { this._securityGroupIds = value; }
}
// Check to see if SecurityGroupIds property is set
internal bool IsSetSecurityGroupIds()
{
return this._securityGroupIds != null && this._securityGroupIds.Count > 0;
}
///
/// Gets and sets the property Status.
///
/// The status of the runtime environment.
///
///
[AWSProperty(Required=true)]
public EnvironmentLifecycle 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 StatusReason.
///
/// The reason for the reported status.
///
///
public string StatusReason
{
get { return this._statusReason; }
set { this._statusReason = value; }
}
// Check to see if StatusReason property is set
internal bool IsSetStatusReason()
{
return this._statusReason != null;
}
///
/// Gets and sets the property StorageConfigurations.
///
/// The storage configurations defined for the runtime environment.
///
///
public List StorageConfigurations
{
get { return this._storageConfigurations; }
set { this._storageConfigurations = value; }
}
// Check to see if StorageConfigurations property is set
internal bool IsSetStorageConfigurations()
{
return this._storageConfigurations != null && this._storageConfigurations.Count > 0;
}
///
/// Gets and sets the property SubnetIds.
///
/// The unique identifiers of the subnets assigned to this runtime environment.
///
///
[AWSProperty(Required=true)]
public List SubnetIds
{
get { return this._subnetIds; }
set { this._subnetIds = value; }
}
// Check to see if SubnetIds property is set
internal bool IsSetSubnetIds()
{
return this._subnetIds != null && this._subnetIds.Count > 0;
}
///
/// Gets and sets the property Tags.
///
/// The tags defined for this runtime environment.
///
///
[AWSProperty(Min=0, 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 VpcId.
///
/// The unique identifier for the VPC used with this runtime environment.
///
///
[AWSProperty(Required=true)]
public string VpcId
{
get { return this._vpcId; }
set { this._vpcId = value; }
}
// Check to see if VpcId property is set
internal bool IsSetVpcId()
{
return this._vpcId != null;
}
}
}