@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CompatibleKafkaVersion extends Object implements Serializable, Cloneable, StructuredPojo
Contains source Kafka versions and compatible target Kafka versions.
| Constructor and Description | 
|---|
CompatibleKafkaVersion()  | 
| Modifier and Type | Method and Description | 
|---|---|
CompatibleKafkaVersion | 
clone()  | 
boolean | 
equals(Object obj)  | 
String | 
getSourceVersion()
 A Kafka version. 
 | 
List<String> | 
getTargetVersions()
 A list of Kafka versions. 
 | 
int | 
hashCode()  | 
void | 
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given  
ProtocolMarshaller. | 
void | 
setSourceVersion(String sourceVersion)
 A Kafka version. 
 | 
void | 
setTargetVersions(Collection<String> targetVersions)
 A list of Kafka versions. 
 | 
String | 
toString()
Returns a string representation of this object. 
 | 
CompatibleKafkaVersion | 
withSourceVersion(String sourceVersion)
 A Kafka version. 
 | 
CompatibleKafkaVersion | 
withTargetVersions(Collection<String> targetVersions)
 A list of Kafka versions. 
 | 
CompatibleKafkaVersion | 
withTargetVersions(String... targetVersions)
 A list of Kafka versions. 
 | 
public void setSourceVersion(String sourceVersion)
A Kafka version.
sourceVersion - A Kafka version.
public String getSourceVersion()
A Kafka version.
A Kafka version.
public CompatibleKafkaVersion withSourceVersion(String sourceVersion)
A Kafka version.
sourceVersion - A Kafka version.
public List<String> getTargetVersions()
A list of Kafka versions.
A list of Kafka versions.
public void setTargetVersions(Collection<String> targetVersions)
A list of Kafka versions.
targetVersions - A list of Kafka versions.
public CompatibleKafkaVersion withTargetVersions(String... targetVersions)
A list of 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 Kafka versions.
public CompatibleKafkaVersion withTargetVersions(Collection<String> targetVersions)
A list of Kafka versions.
targetVersions - A list of Kafka versions.
public String toString()
toString in class ObjectObject.toString()public CompatibleKafkaVersion clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.