/* * Copyright 2018-2023 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. */ package com.amazonaws.services.iot.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class KafkaAction implements Serializable, Cloneable, StructuredPojo { /** *
* The ARN of Kafka action's VPC TopicRuleDestination
.
*
* The Kafka topic for messages to be sent to the Kafka broker. *
*/ private String topic; /** ** The Kafka message key. *
*/ private String key; /** ** The Kafka message partition. *
*/ private String partition; /** ** Properties of the Apache Kafka producer client. *
*/ private java.util.Map
* The ARN of Kafka action's VPC TopicRuleDestination
.
*
TopicRuleDestination
.
*/
public void setDestinationArn(String destinationArn) {
this.destinationArn = destinationArn;
}
/**
*
* The ARN of Kafka action's VPC TopicRuleDestination
.
*
TopicRuleDestination
.
*/
public String getDestinationArn() {
return this.destinationArn;
}
/**
*
* The ARN of Kafka action's VPC TopicRuleDestination
.
*
TopicRuleDestination
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public KafkaAction withDestinationArn(String destinationArn) {
setDestinationArn(destinationArn);
return this;
}
/**
* * The Kafka topic for messages to be sent to the Kafka broker. *
* * @param topic * The Kafka topic for messages to be sent to the Kafka broker. */ public void setTopic(String topic) { this.topic = topic; } /** ** The Kafka topic for messages to be sent to the Kafka broker. *
* * @return The Kafka topic for messages to be sent to the Kafka broker. */ public String getTopic() { return this.topic; } /** ** The Kafka topic for messages to be sent to the Kafka broker. *
* * @param topic * The Kafka topic for messages to be sent to the Kafka broker. * @return Returns a reference to this object so that method calls can be chained together. */ public KafkaAction withTopic(String topic) { setTopic(topic); return this; } /** ** The Kafka message key. *
* * @param key * The Kafka message key. */ public void setKey(String key) { this.key = key; } /** ** The Kafka message key. *
* * @return The Kafka message key. */ public String getKey() { return this.key; } /** ** The Kafka message key. *
* * @param key * The Kafka message key. * @return Returns a reference to this object so that method calls can be chained together. */ public KafkaAction withKey(String key) { setKey(key); return this; } /** ** The Kafka message partition. *
* * @param partition * The Kafka message partition. */ public void setPartition(String partition) { this.partition = partition; } /** ** The Kafka message partition. *
* * @return The Kafka message partition. */ public String getPartition() { return this.partition; } /** ** The Kafka message partition. *
* * @param partition * The Kafka message partition. * @return Returns a reference to this object so that method calls can be chained together. */ public KafkaAction withPartition(String partition) { setPartition(partition); return this; } /** ** Properties of the Apache Kafka producer client. *
* * @return Properties of the Apache Kafka producer client. */ public java.util.Map* Properties of the Apache Kafka producer client. *
* * @param clientProperties * Properties of the Apache Kafka producer client. */ public void setClientProperties(java.util.Map* Properties of the Apache Kafka producer client. *
* * @param clientProperties * Properties of the Apache Kafka producer client. * @return Returns a reference to this object so that method calls can be chained together. */ public KafkaAction withClientProperties(java.util.Map