@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ShareTarget extends Object implements Serializable, Cloneable, StructuredPojo
Identifier that contains details about the directory consumer account.
Constructor and Description |
---|
ShareTarget() |
Modifier and Type | Method and Description |
---|---|
ShareTarget |
clone() |
boolean |
equals(Object obj) |
String |
getId()
Identifier of the directory consumer account.
|
String |
getType()
Type of identifier to be used in the
Id field. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setId(String id)
Identifier of the directory consumer account.
|
void |
setType(String type)
Type of identifier to be used in the
Id field. |
String |
toString()
Returns a string representation of this object.
|
ShareTarget |
withId(String id)
Identifier of the directory consumer account.
|
ShareTarget |
withType(String type)
Type of identifier to be used in the
Id field. |
ShareTarget |
withType(TargetType type)
Type of identifier to be used in the
Id field. |
public void setId(String id)
Identifier of the directory consumer account.
id
- Identifier of the directory consumer account.public String getId()
Identifier of the directory consumer account.
public ShareTarget withId(String id)
Identifier of the directory consumer account.
id
- Identifier of the directory consumer account.public void setType(String type)
Type of identifier to be used in the Id
field.
type
- Type of identifier to be used in the Id
field.TargetType
public String getType()
Type of identifier to be used in the Id
field.
Id
field.TargetType
public ShareTarget withType(String type)
Type of identifier to be used in the Id
field.
type
- Type of identifier to be used in the Id
field.TargetType
public ShareTarget withType(TargetType type)
Type of identifier to be used in the Id
field.
type
- Type of identifier to be used in the Id
field.TargetType
public String toString()
toString
in class Object
Object.toString()
public ShareTarget clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.