@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InAppMessageBodyConfig extends Object implements Serializable, Cloneable, StructuredPojo
Text config for Message Body.
Constructor and Description |
---|
InAppMessageBodyConfig() |
Modifier and Type | Method and Description |
---|---|
InAppMessageBodyConfig |
clone() |
boolean |
equals(Object obj) |
String |
getAlignment()
The alignment of the text.
|
String |
getBody()
Message Body.
|
String |
getTextColor()
The text color.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAlignment(String alignment)
The alignment of the text.
|
void |
setBody(String body)
Message Body.
|
void |
setTextColor(String textColor)
The text color.
|
String |
toString()
Returns a string representation of this object.
|
InAppMessageBodyConfig |
withAlignment(Alignment alignment)
The alignment of the text.
|
InAppMessageBodyConfig |
withAlignment(String alignment)
The alignment of the text.
|
InAppMessageBodyConfig |
withBody(String body)
Message Body.
|
InAppMessageBodyConfig |
withTextColor(String textColor)
The text color.
|
public void setAlignment(String alignment)
The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
alignment
- The alignment of the text. Valid values: LEFT, CENTER, RIGHT.Alignment
public String getAlignment()
The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
Alignment
public InAppMessageBodyConfig withAlignment(String alignment)
The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
alignment
- The alignment of the text. Valid values: LEFT, CENTER, RIGHT.Alignment
public InAppMessageBodyConfig withAlignment(Alignment alignment)
The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
alignment
- The alignment of the text. Valid values: LEFT, CENTER, RIGHT.Alignment
public void setBody(String body)
Message Body.
body
- Message Body.public String getBody()
Message Body.
public InAppMessageBodyConfig withBody(String body)
Message Body.
body
- Message Body.public void setTextColor(String textColor)
The text color.
textColor
- The text color.public String getTextColor()
The text color.
public InAppMessageBodyConfig withTextColor(String textColor)
The text color.
textColor
- The text color.public String toString()
toString
in class Object
Object.toString()
public InAppMessageBodyConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.