@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SegmentReference extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the segment identifier and version of a segment.
| Constructor and Description |
|---|
SegmentReference() |
| Modifier and Type | Method and Description |
|---|---|
SegmentReference |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The unique identifier for the segment.
|
Integer |
getVersion()
The version number of the segment.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setId(String id)
The unique identifier for the segment.
|
void |
setVersion(Integer version)
The version number of the segment.
|
String |
toString()
Returns a string representation of this object.
|
SegmentReference |
withId(String id)
The unique identifier for the segment.
|
SegmentReference |
withVersion(Integer version)
The version number of the segment.
|
public void setId(String id)
The unique identifier for the segment.
id - The unique identifier for the segment.public String getId()
The unique identifier for the segment.
public SegmentReference withId(String id)
The unique identifier for the segment.
id - The unique identifier for the segment.public void setVersion(Integer version)
The version number of the segment.
version - The version number of the segment.public Integer getVersion()
The version number of the segment.
public SegmentReference withVersion(Integer version)
The version number of the segment.
version - The version number of the segment.public String toString()
toString in class ObjectObject.toString()public SegmentReference clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.