/*
* 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
{
///
/// Container for the parameters to the RegisterApplication operation.
/// Register an SAP application with AWS Systems Manager for SAP. You must meet the following
/// requirements before registering.
///
///
///
/// The SAP application you want to register with AWS Systems Manager for SAP is running
/// on Amazon EC2.
///
///
///
/// AWS Systems Manager Agent must be setup on an Amazon EC2 instance along with the required
/// IAM permissions.
///
///
///
/// Amazon EC2 instance(s) must have access to the secrets created in AWS Secrets Manager
/// to manage SAP applications and components.
///
///
public partial class RegisterApplicationRequest : AmazonSsmSapRequest
{
private string _applicationId;
private ApplicationType _applicationType;
private List _credentials = new List();
private List _instances = new List();
private string _sapInstanceNumber;
private string _sid;
private Dictionary _tags = new Dictionary();
///
/// Gets and sets the property ApplicationId.
///
/// The ID of the application.
///
///
[AWSProperty(Required=true)]
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 ApplicationType.
///
/// The type of the application.
///
///
[AWSProperty(Required=true)]
public ApplicationType ApplicationType
{
get { return this._applicationType; }
set { this._applicationType = value; }
}
// Check to see if ApplicationType property is set
internal bool IsSetApplicationType()
{
return this._applicationType != null;
}
///
/// Gets and sets the property Credentials.
///
/// The credentials of the SAP application.
///
///
[AWSProperty(Required=true, 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 Instances.
///
/// The Amazon EC2 instances on which your SAP application is running.
///
///
[AWSProperty(Required=true, Min=1, Max=1)]
public List Instances
{
get { return this._instances; }
set { this._instances = value; }
}
// Check to see if Instances property is set
internal bool IsSetInstances()
{
return this._instances != null && this._instances.Count > 0;
}
///
/// Gets and sets the property SapInstanceNumber.
///
/// The SAP instance number of the application.
///
///
public string SapInstanceNumber
{
get { return this._sapInstanceNumber; }
set { this._sapInstanceNumber = value; }
}
// Check to see if SapInstanceNumber property is set
internal bool IsSetSapInstanceNumber()
{
return this._sapInstanceNumber != null;
}
///
/// Gets and sets the property Sid.
///
/// The System ID of the application.
///
///
public string Sid
{
get { return this._sid; }
set { this._sid = value; }
}
// Check to see if Sid property is set
internal bool IsSetSid()
{
return this._sid != null;
}
///
/// Gets and sets the property Tags.
///
/// The tags to be attached to the SAP application.
///
///
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;
}
}
}