/* * 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 iot-2015-05-28.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.IoT.Model { /// /// Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed /// Apache Kafka cluster. /// public partial class KafkaAction { private Dictionary _clientProperties = new Dictionary(); private string _destinationArn; private string _key; private string _partition; private string _topic; /// /// Gets and sets the property ClientProperties. /// /// Properties of the Apache Kafka producer client. /// /// [AWSProperty(Required=true)] public Dictionary ClientProperties { get { return this._clientProperties; } set { this._clientProperties = value; } } // Check to see if ClientProperties property is set internal bool IsSetClientProperties() { return this._clientProperties != null && this._clientProperties.Count > 0; } /// /// Gets and sets the property DestinationArn. /// /// The ARN of Kafka action's VPC TopicRuleDestination. /// /// [AWSProperty(Required=true)] public string DestinationArn { get { return this._destinationArn; } set { this._destinationArn = value; } } // Check to see if DestinationArn property is set internal bool IsSetDestinationArn() { return this._destinationArn != null; } /// /// Gets and sets the property Key. /// /// The Kafka message key. /// /// public string Key { get { return this._key; } set { this._key = value; } } // Check to see if Key property is set internal bool IsSetKey() { return this._key != null; } /// /// Gets and sets the property Partition. /// /// The Kafka message partition. /// /// public string Partition { get { return this._partition; } set { this._partition = value; } } // Check to see if Partition property is set internal bool IsSetPartition() { return this._partition != null; } /// /// Gets and sets the property Topic. /// /// The Kafka topic for messages to be sent to the Kafka broker. /// /// [AWSProperty(Required=true)] public string Topic { get { return this._topic; } set { this._topic = value; } } // Check to see if Topic property is set internal bool IsSetTopic() { return this._topic != null; } } }