@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WriteSegmentRequest extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the configuration, dimension, and other settings for a segment. A WriteSegmentRequest object can include a Dimensions object or a SegmentGroups object, but not both.
Constructor and Description |
---|
WriteSegmentRequest() |
Modifier and Type | Method and Description |
---|---|
WriteSegmentRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
WriteSegmentRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
WriteSegmentRequest |
clone() |
boolean |
equals(Object obj) |
SegmentDimensions |
getDimensions()
The criteria that define the dimensions for the segment.
|
String |
getName()
The name of the segment.
|
SegmentGroupList |
getSegmentGroups()
The segment group to use and the dimensions to apply to the group's base segments in order to build the segment.
|
Map<String,String> |
getTags()
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDimensions(SegmentDimensions dimensions)
The criteria that define the dimensions for the segment.
|
void |
setName(String name)
The name of the segment.
|
void |
setSegmentGroups(SegmentGroupList segmentGroups)
The segment group to use and the dimensions to apply to the group's base segments in order to build the segment.
|
void |
setTags(Map<String,String> tags)
|
String |
toString()
Returns a string representation of this object.
|
WriteSegmentRequest |
withDimensions(SegmentDimensions dimensions)
The criteria that define the dimensions for the segment.
|
WriteSegmentRequest |
withName(String name)
The name of the segment.
|
WriteSegmentRequest |
withSegmentGroups(SegmentGroupList segmentGroups)
The segment group to use and the dimensions to apply to the group's base segments in order to build the segment.
|
WriteSegmentRequest |
withTags(Map<String,String> tags)
|
public void setDimensions(SegmentDimensions dimensions)
The criteria that define the dimensions for the segment.
dimensions
- The criteria that define the dimensions for the segment.public SegmentDimensions getDimensions()
The criteria that define the dimensions for the segment.
public WriteSegmentRequest withDimensions(SegmentDimensions dimensions)
The criteria that define the dimensions for the segment.
dimensions
- The criteria that define the dimensions for the segment.public void setName(String name)
The name of the segment.
name
- The name of the segment.public String getName()
The name of the segment.
public WriteSegmentRequest withName(String name)
The name of the segment.
name
- The name of the segment.public void setSegmentGroups(SegmentGroupList segmentGroups)
The segment group to use and the dimensions to apply to the group's base segments in order to build the segment. A segment group can consist of zero or more base segments. Your request can include only one segment group.
segmentGroups
- The segment group to use and the dimensions to apply to the group's base segments in order to build the
segment. A segment group can consist of zero or more base segments. Your request can include only one
segment group.public SegmentGroupList getSegmentGroups()
The segment group to use and the dimensions to apply to the group's base segments in order to build the segment. A segment group can consist of zero or more base segments. Your request can include only one segment group.
public WriteSegmentRequest withSegmentGroups(SegmentGroupList segmentGroups)
The segment group to use and the dimensions to apply to the group's base segments in order to build the segment. A segment group can consist of zero or more base segments. Your request can include only one segment group.
segmentGroups
- The segment group to use and the dimensions to apply to the group's base segments in order to build the
segment. A segment group can consist of zero or more base segments. Your request can include only one
segment group.public Map<String,String> getTags()
As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.
(Deprecated) A string-to-string map of key-value pairs that defines the tags to associate with the segment. Each tag consists of a required tag key and an associated tag value.
public void setTags(Map<String,String> tags)
As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.
(Deprecated) A string-to-string map of key-value pairs that defines the tags to associate with the segment. Each tag consists of a required tag key and an associated tag value.
tags
- As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags
is not processed and an error code is not returned. To manage tags we recommend using either Tags in the
API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.public WriteSegmentRequest withTags(Map<String,String> tags)
As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.
(Deprecated) A string-to-string map of key-value pairs that defines the tags to associate with the segment. Each tag consists of a required tag key and an associated tag value.
tags
- As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags
is not processed and an error code is not returned. To manage tags we recommend using either Tags in the
API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.public WriteSegmentRequest addTagsEntry(String key, String value)
public WriteSegmentRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public WriteSegmentRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.