/* * 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 kafka-2018-11-14.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.Kafka.Model { /// /// Container for the parameters to the CreateVpcConnection operation. /// Creates a new MSK VPC connection. /// public partial class CreateVpcConnectionRequest : AmazonKafkaRequest { private string _authentication; private List _clientSubnets = new List(); private List _securityGroups = new List(); private Dictionary _tags = new Dictionary(); private string _targetClusterArn; private string _vpcId; /// /// Gets and sets the property Authentication. /// /// The authentication type of VPC connection. /// /// [AWSProperty(Required=true)] public string Authentication { get { return this._authentication; } set { this._authentication = value; } } // Check to see if Authentication property is set internal bool IsSetAuthentication() { return this._authentication != null; } /// /// Gets and sets the property ClientSubnets. /// /// The list of client subnets. /// /// [AWSProperty(Required=true)] public List ClientSubnets { get { return this._clientSubnets; } set { this._clientSubnets = value; } } // Check to see if ClientSubnets property is set internal bool IsSetClientSubnets() { return this._clientSubnets != null && this._clientSubnets.Count > 0; } /// /// Gets and sets the property SecurityGroups. /// /// The list of security groups. /// /// [AWSProperty(Required=true)] public List SecurityGroups { get { return this._securityGroups; } set { this._securityGroups = value; } } // Check to see if SecurityGroups property is set internal bool IsSetSecurityGroups() { return this._securityGroups != null && this._securityGroups.Count > 0; } /// /// Gets and sets the property Tags. /// /// A map of tags for the VPC connection. /// /// 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 TargetClusterArn. /// /// The cluster Amazon Resource Name (ARN) for the VPC connection. /// /// [AWSProperty(Required=true)] public string TargetClusterArn { get { return this._targetClusterArn; } set { this._targetClusterArn = value; } } // Check to see if TargetClusterArn property is set internal bool IsSetTargetClusterArn() { return this._targetClusterArn != null; } /// /// Gets and sets the property VpcId. /// /// The VPC ID of VPC connection. /// /// [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; } } }