@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CompatibleKafkaVersion extends Object implements Serializable, Cloneable, StructuredPojo
Contains source Apache Kafka versions and compatible target Apache Kafka versions.
| Constructor and Description |
|---|
CompatibleKafkaVersion () |
| Modifier and Type | Method and Description |
|---|---|
CompatibleKafkaVersion |
clone () |
boolean |
equals (Object obj) |
String |
getSourceVersion ()
An Apache Kafka version.
|
List<String> |
getTargetVersions ()
A list of Apache Kafka versions.
|
int |
hashCode () |
void |
marshall (ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setSourceVersion (String sourceVersion)
An Apache Kafka version.
|
void |
setTargetVersions (Collection<String> targetVersions)
A list of Apache Kafka versions.
|
String |
toString ()
Returns a string representation of this object.
|
CompatibleKafkaVersion |
withSourceVersion (String sourceVersion)
An Apache Kafka version.
|
CompatibleKafkaVersion |
withTargetVersions (Collection<String> targetVersions)
A list of Apache Kafka versions.
|
CompatibleKafkaVersion |
withTargetVersions (String... targetVersions)
A list of Apache Kafka versions.
|
public CompatibleKafkaVersion()
public void setSourceVersion(String sourceVersion)
An Apache Kafka version.
sourceVersion - An Apache Kafka version.
public String getSourceVersion()
An Apache Kafka version.
An Apache Kafka version.
public CompatibleKafkaVersion withSourceVersion(String sourceVersion)
An Apache Kafka version.
sourceVersion - An Apache Kafka version.
public List<String> getTargetVersions()
A list of Apache Kafka versions.
A list of Apache Kafka versions.
public void setTargetVersions(Collection<String> targetVersions)
A list of Apache Kafka versions.
targetVersions - A list of Apache Kafka versions.
public CompatibleKafkaVersion withTargetVersions(String... targetVersions)
A list of Apache Kafka versions.
NOTE: This method appends the values to the existing list (if any). Use
setTargetVersions(java.util.Collection) or withTargetVersions(java.util.Collection) if you want
to override the existing values.
targetVersions - A list of Apache Kafka versions.
public CompatibleKafkaVersion withTargetVersions(Collection<String> targetVersions)
A list of Apache Kafka versions.
targetVersions - A list of Apache Kafka versions.
public String toString()
toString in class Object Object.toString() public CompatibleKafkaVersion clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo ProtocolMarshaller.marshall in interface StructuredPojo protocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.