@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Template extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the name and version of the message template to use for the message.
Constructor and Description |
---|
Template() |
Modifier and Type | Method and Description |
---|---|
Template |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the message template to use for the message.
|
String |
getVersion()
The unique identifier for the version of the message template to use for the message.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the message template to use for the message.
|
void |
setVersion(String version)
The unique identifier for the version of the message template to use for the message.
|
String |
toString()
Returns a string representation of this object.
|
Template |
withName(String name)
The name of the message template to use for the message.
|
Template |
withVersion(String version)
The unique identifier for the version of the message template to use for the message.
|
public void setName(String name)
The name of the message template to use for the message. If specified, this value must match the name of an existing message template.
name
- The name of the message template to use for the message. If specified, this value must match the name of
an existing message template.public String getName()
The name of the message template to use for the message. If specified, this value must match the name of an existing message template.
public Template withName(String name)
The name of the message template to use for the message. If specified, this value must match the name of an existing message template.
name
- The name of the message template to use for the message. If specified, this value must match the name of
an existing message template.public void setVersion(String version)
The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versions resource.
If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.
version
- The unique identifier for the version of the message template to use for the message. If specified, this
value must match the identifier for an existing template version. To retrieve a list of versions and
version identifiers for a template, use the Template Versions resource.
If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.
public String getVersion()
The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versions resource.
If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.
If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.
public Template withVersion(String version)
The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versions resource.
If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.
version
- The unique identifier for the version of the message template to use for the message. If specified, this
value must match the identifier for an existing template version. To retrieve a list of versions and
version identifiers for a template, use the Template Versions resource.
If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.