/*
* 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 events-2015-10-07.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.CloudWatchEvents.Model
{
///
/// Container for the parameters to the CreateConnection operation.
/// Creates a connection. A connection defines the authorization type and credentials
/// to use for authorization with an API destination HTTP endpoint.
///
public partial class CreateConnectionRequest : AmazonCloudWatchEventsRequest
{
private ConnectionAuthorizationType _authorizationType;
private CreateConnectionAuthRequestParameters _authParameters;
private string _description;
private string _name;
///
/// Gets and sets the property AuthorizationType.
///
/// The type of authorization to use for the connection.
///
///
[AWSProperty(Required=true)]
public ConnectionAuthorizationType AuthorizationType
{
get { return this._authorizationType; }
set { this._authorizationType = value; }
}
// Check to see if AuthorizationType property is set
internal bool IsSetAuthorizationType()
{
return this._authorizationType != null;
}
///
/// Gets and sets the property AuthParameters.
///
/// A CreateConnectionAuthRequestParameters
object that contains the authorization
/// parameters to use to authorize with the endpoint.
///
///
[AWSProperty(Required=true)]
public CreateConnectionAuthRequestParameters AuthParameters
{
get { return this._authParameters; }
set { this._authParameters = value; }
}
// Check to see if AuthParameters property is set
internal bool IsSetAuthParameters()
{
return this._authParameters != null;
}
///
/// Gets and sets the property Description.
///
/// A description for the connection to create.
///
///
[AWSProperty(Max=512)]
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 Name.
///
/// The name for the connection to create.
///
///
[AWSProperty(Required=true, Min=1, Max=64)]
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;
}
}
}