/*
* 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 ssm-sap-2018-05-10.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.SsmSap.Model
{
///
/// The SAP component of your application.
///
public partial class Component
{
private string _applicationId;
private string _arn;
private AssociatedHost _associatedHost;
private List _childComponents = new List();
private string _componentId;
private ComponentType _componentType;
private List _databases = new List();
private string _hdbVersion;
private List _hosts = new List();
private DateTime? _lastUpdated;
private string _parentComponent;
private string _primaryHost;
private Resilience _resilience;
private string _sapHostname;
private string _sapKernelVersion;
private ComponentStatus _status;
///
/// Gets and sets the property ApplicationId.
///
/// The ID of the application.
///
///
public string ApplicationId
{
get { return this._applicationId; }
set { this._applicationId = value; }
}
// Check to see if ApplicationId property is set
internal bool IsSetApplicationId()
{
return this._applicationId != null;
}
///
/// 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 AssociatedHost.
///
/// The associated host of the component.
///
///
public AssociatedHost AssociatedHost
{
get { return this._associatedHost; }
set { this._associatedHost = value; }
}
// Check to see if AssociatedHost property is set
internal bool IsSetAssociatedHost()
{
return this._associatedHost != null;
}
///
/// Gets and sets the property ChildComponents.
///
/// The child components of a highly available environment. For example, in a highly available
/// SAP on AWS workload, the child component consists of the primary and secondar instances.
///
///
public List ChildComponents
{
get { return this._childComponents; }
set { this._childComponents = value; }
}
// Check to see if ChildComponents property is set
internal bool IsSetChildComponents()
{
return this._childComponents != null && this._childComponents.Count > 0;
}
///
/// Gets and sets the property ComponentId.
///
/// The ID of the component.
///
///
public string ComponentId
{
get { return this._componentId; }
set { this._componentId = value; }
}
// Check to see if ComponentId property is set
internal bool IsSetComponentId()
{
return this._componentId != null;
}
///
/// Gets and sets the property ComponentType.
///
/// The type of the component.
///
///
public ComponentType ComponentType
{
get { return this._componentType; }
set { this._componentType = value; }
}
// Check to see if ComponentType property is set
internal bool IsSetComponentType()
{
return this._componentType != null;
}
///
/// Gets and sets the property Databases.
///
/// The SAP HANA databases of the component.
///
///
public List Databases
{
get { return this._databases; }
set { this._databases = value; }
}
// Check to see if Databases property is set
internal bool IsSetDatabases()
{
return this._databases != null && this._databases.Count > 0;
}
///
/// Gets and sets the property HdbVersion.
///
/// The SAP HANA version of the component.
///
///
public string HdbVersion
{
get { return this._hdbVersion; }
set { this._hdbVersion = value; }
}
// Check to see if HdbVersion property is set
internal bool IsSetHdbVersion()
{
return this._hdbVersion != null;
}
///
/// Gets and sets the property Hosts.
///
/// The hosts of the component.
///
///
[Obsolete("This shape is no longer used. Please use AssociatedHost.")]
public List Hosts
{
get { return this._hosts; }
set { this._hosts = value; }
}
// Check to see if Hosts property is set
internal bool IsSetHosts()
{
return this._hosts != null && this._hosts.Count > 0;
}
///
/// Gets and sets the property LastUpdated.
///
/// The time at which the component was last updated.
///
///
public DateTime LastUpdated
{
get { return this._lastUpdated.GetValueOrDefault(); }
set { this._lastUpdated = value; }
}
// Check to see if LastUpdated property is set
internal bool IsSetLastUpdated()
{
return this._lastUpdated.HasValue;
}
///
/// Gets and sets the property ParentComponent.
///
/// The parent component of a highly available environment. For example, in a highly available
/// SAP on AWS workload, the parent component consists of the entire setup, including
/// the child components.
///
///
public string ParentComponent
{
get { return this._parentComponent; }
set { this._parentComponent = value; }
}
// Check to see if ParentComponent property is set
internal bool IsSetParentComponent()
{
return this._parentComponent != null;
}
///
/// Gets and sets the property PrimaryHost.
///
/// The primary host of the component.
///
///
[Obsolete("This shape is no longer used. Please use AssociatedHost.")]
public string PrimaryHost
{
get { return this._primaryHost; }
set { this._primaryHost = value; }
}
// Check to see if PrimaryHost property is set
internal bool IsSetPrimaryHost()
{
return this._primaryHost != null;
}
///
/// Gets and sets the property Resilience.
///
/// Details of the SAP HANA system replication for the component.
///
///
public Resilience Resilience
{
get { return this._resilience; }
set { this._resilience = value; }
}
// Check to see if Resilience property is set
internal bool IsSetResilience()
{
return this._resilience != null;
}
///
/// Gets and sets the property SapHostname.
///
/// The hostname of the component.
///
///
public string SapHostname
{
get { return this._sapHostname; }
set { this._sapHostname = value; }
}
// Check to see if SapHostname property is set
internal bool IsSetSapHostname()
{
return this._sapHostname != null;
}
///
/// Gets and sets the property SapKernelVersion.
///
/// The kernel version of the component.
///
///
public string SapKernelVersion
{
get { return this._sapKernelVersion; }
set { this._sapKernelVersion = value; }
}
// Check to see if SapKernelVersion property is set
internal bool IsSetSapKernelVersion()
{
return this._sapKernelVersion != null;
}
///
/// Gets and sets the property Status.
///
/// The status of the component.
///
///
public ComponentStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}