/* * 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 HANA database of the application registered with AWS Systems Manager for SAP. /// public partial class Database { private string _applicationId; private string _arn; private string _componentId; private List _credentials = new List(); private string _databaseId; private string _databaseName; private DatabaseType _databaseType; private DateTime? _lastUpdated; private string _primaryHost; private int? _sqlPort; private DatabaseStatus _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 database. /// /// 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 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 Credentials. /// /// The credentials of the database. /// /// [AWSProperty(Min=1, Max=20)] public List Credentials { get { return this._credentials; } set { this._credentials = value; } } // Check to see if Credentials property is set internal bool IsSetCredentials() { return this._credentials != null && this._credentials.Count > 0; } /// /// Gets and sets the property DatabaseId. /// /// The ID of the SAP HANA database. /// /// public string DatabaseId { get { return this._databaseId; } set { this._databaseId = value; } } // Check to see if DatabaseId property is set internal bool IsSetDatabaseId() { return this._databaseId != null; } /// /// Gets and sets the property DatabaseName. /// /// The name of the database. /// /// public string DatabaseName { get { return this._databaseName; } set { this._databaseName = value; } } // Check to see if DatabaseName property is set internal bool IsSetDatabaseName() { return this._databaseName != null; } /// /// Gets and sets the property DatabaseType. /// /// The type of the database. /// /// public DatabaseType DatabaseType { get { return this._databaseType; } set { this._databaseType = value; } } // Check to see if DatabaseType property is set internal bool IsSetDatabaseType() { return this._databaseType != null; } /// /// Gets and sets the property LastUpdated. /// /// The time at which the database 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 PrimaryHost. /// /// The primary host of the database. /// /// 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 SQLPort. /// /// The SQL port of the database. /// /// public int SQLPort { get { return this._sqlPort.GetValueOrDefault(); } set { this._sqlPort = value; } } // Check to see if SQLPort property is set internal bool IsSetSQLPort() { return this._sqlPort.HasValue; } /// /// Gets and sets the property Status. /// /// The status of the database. /// /// public DatabaseStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }