public class KinesisAction
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an action to write data to an Amazon Kinesis stream.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
partitionKey
The partition key.
|
private java.lang.String |
roleArn
The ARN of the IAM role that grants access to the Amazon Kinesis stream.
|
private java.lang.String |
streamName
The name of the Amazon Kinesis stream.
|
Constructor and Description |
---|
KinesisAction() |
Modifier and Type | Method and Description |
---|---|
KinesisAction |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPartitionKey()
The partition key.
|
java.lang.String |
getRoleArn()
The ARN of the IAM role that grants access to the Amazon Kinesis stream.
|
java.lang.String |
getStreamName()
The name of the Amazon Kinesis stream.
|
int |
hashCode() |
void |
setPartitionKey(java.lang.String partitionKey)
The partition key.
|
void |
setRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access to the Amazon Kinesis stream.
|
void |
setStreamName(java.lang.String streamName)
The name of the Amazon Kinesis stream.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
KinesisAction |
withPartitionKey(java.lang.String partitionKey)
The partition key.
|
KinesisAction |
withRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access to the Amazon Kinesis stream.
|
KinesisAction |
withStreamName(java.lang.String streamName)
The name of the Amazon Kinesis stream.
|
private java.lang.String roleArn
The ARN of the IAM role that grants access to the Amazon Kinesis stream.
private java.lang.String streamName
The name of the Amazon Kinesis stream.
private java.lang.String partitionKey
The partition key.
public void setRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access to the Amazon Kinesis stream.
roleArn
- The ARN of the IAM role that grants access to the Amazon Kinesis
stream.public java.lang.String getRoleArn()
The ARN of the IAM role that grants access to the Amazon Kinesis stream.
public KinesisAction withRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access to the Amazon Kinesis stream.
roleArn
- The ARN of the IAM role that grants access to the Amazon Kinesis
stream.public void setStreamName(java.lang.String streamName)
The name of the Amazon Kinesis stream.
streamName
- The name of the Amazon Kinesis stream.public java.lang.String getStreamName()
The name of the Amazon Kinesis stream.
public KinesisAction withStreamName(java.lang.String streamName)
The name of the Amazon Kinesis stream.
streamName
- The name of the Amazon Kinesis stream.public void setPartitionKey(java.lang.String partitionKey)
The partition key.
partitionKey
- The partition key.public java.lang.String getPartitionKey()
The partition key.
public KinesisAction withPartitionKey(java.lang.String partitionKey)
The partition key.
partitionKey
- The partition key.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public KinesisAction clone()
clone
in class java.lang.Object