@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Segment extends Object implements Serializable, Cloneable, StructuredPojo
This structure contains information about one audience segment. You can use segments in your experiments and launches to narrow the user sessions used for experiment or launch to only the user sessions that match one or more criteria.
Constructor and Description |
---|
Segment() |
Modifier and Type | Method and Description |
---|---|
Segment |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
Segment |
clearTagsEntries()
Removes all the entries added into Tags.
|
Segment |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The ARN of the segment.
|
Date |
getCreatedTime()
The date and time that this segment was created.
|
String |
getDescription()
The customer-created description for this segment.
|
Long |
getExperimentCount()
The number of experiments that this segment is used in.
|
Date |
getLastUpdatedTime()
The date and time that this segment was most recently updated.
|
Long |
getLaunchCount()
The number of launches that this segment is used in.
|
String |
getName()
The name of the segment.
|
String |
getPattern()
The pattern that defines the attributes to use to evalute whether a user session will be in the segment.
|
Map<String,String> |
getTags()
The list of tag keys and values associated with this launch.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The ARN of the segment.
|
void |
setCreatedTime(Date createdTime)
The date and time that this segment was created.
|
void |
setDescription(String description)
The customer-created description for this segment.
|
void |
setExperimentCount(Long experimentCount)
The number of experiments that this segment is used in.
|
void |
setLastUpdatedTime(Date lastUpdatedTime)
The date and time that this segment was most recently updated.
|
void |
setLaunchCount(Long launchCount)
The number of launches that this segment is used in.
|
void |
setName(String name)
The name of the segment.
|
void |
setPattern(String pattern)
The pattern that defines the attributes to use to evalute whether a user session will be in the segment.
|
void |
setTags(Map<String,String> tags)
The list of tag keys and values associated with this launch.
|
String |
toString()
Returns a string representation of this object.
|
Segment |
withArn(String arn)
The ARN of the segment.
|
Segment |
withCreatedTime(Date createdTime)
The date and time that this segment was created.
|
Segment |
withDescription(String description)
The customer-created description for this segment.
|
Segment |
withExperimentCount(Long experimentCount)
The number of experiments that this segment is used in.
|
Segment |
withLastUpdatedTime(Date lastUpdatedTime)
The date and time that this segment was most recently updated.
|
Segment |
withLaunchCount(Long launchCount)
The number of launches that this segment is used in.
|
Segment |
withName(String name)
The name of the segment.
|
Segment |
withPattern(String pattern)
The pattern that defines the attributes to use to evalute whether a user session will be in the segment.
|
Segment |
withTags(Map<String,String> tags)
The list of tag keys and values associated with this launch.
|
public void setArn(String arn)
The ARN of the segment.
arn
- The ARN of the segment.public String getArn()
The ARN of the segment.
public Segment withArn(String arn)
The ARN of the segment.
arn
- The ARN of the segment.public void setCreatedTime(Date createdTime)
The date and time that this segment was created.
createdTime
- The date and time that this segment was created.public Date getCreatedTime()
The date and time that this segment was created.
public Segment withCreatedTime(Date createdTime)
The date and time that this segment was created.
createdTime
- The date and time that this segment was created.public void setDescription(String description)
The customer-created description for this segment.
description
- The customer-created description for this segment.public String getDescription()
The customer-created description for this segment.
public Segment withDescription(String description)
The customer-created description for this segment.
description
- The customer-created description for this segment.public void setExperimentCount(Long experimentCount)
The number of experiments that this segment is used in. This count includes all current experiments, not just those that are currently running.
experimentCount
- The number of experiments that this segment is used in. This count includes all current experiments, not
just those that are currently running.public Long getExperimentCount()
The number of experiments that this segment is used in. This count includes all current experiments, not just those that are currently running.
public Segment withExperimentCount(Long experimentCount)
The number of experiments that this segment is used in. This count includes all current experiments, not just those that are currently running.
experimentCount
- The number of experiments that this segment is used in. This count includes all current experiments, not
just those that are currently running.public void setLastUpdatedTime(Date lastUpdatedTime)
The date and time that this segment was most recently updated.
lastUpdatedTime
- The date and time that this segment was most recently updated.public Date getLastUpdatedTime()
The date and time that this segment was most recently updated.
public Segment withLastUpdatedTime(Date lastUpdatedTime)
The date and time that this segment was most recently updated.
lastUpdatedTime
- The date and time that this segment was most recently updated.public void setLaunchCount(Long launchCount)
The number of launches that this segment is used in. This count includes all current launches, not just those that are currently running.
launchCount
- The number of launches that this segment is used in. This count includes all current launches, not just
those that are currently running.public Long getLaunchCount()
The number of launches that this segment is used in. This count includes all current launches, not just those that are currently running.
public Segment withLaunchCount(Long launchCount)
The number of launches that this segment is used in. This count includes all current launches, not just those that are currently running.
launchCount
- The number of launches that this segment is used in. This count includes all current launches, not just
those that are currently running.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 Segment withName(String name)
The name of the segment.
name
- The name of the segment.public void setPattern(String pattern)
The pattern that defines the attributes to use to evalute whether a user session will be in the segment. For more information about the pattern syntax, see Segment rule pattern syntax.
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
pattern
- The pattern that defines the attributes to use to evalute whether a user session will be in the segment.
For more information about the pattern syntax, see Segment rule pattern syntax.public String getPattern()
The pattern that defines the attributes to use to evalute whether a user session will be in the segment. For more information about the pattern syntax, see Segment rule pattern syntax.
This field's value will be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
public Segment withPattern(String pattern)
The pattern that defines the attributes to use to evalute whether a user session will be in the segment. For more information about the pattern syntax, see Segment rule pattern syntax.
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
pattern
- The pattern that defines the attributes to use to evalute whether a user session will be in the segment.
For more information about the pattern syntax, see Segment rule pattern syntax.public Map<String,String> getTags()
The list of tag keys and values associated with this launch.
public void setTags(Map<String,String> tags)
The list of tag keys and values associated with this launch.
tags
- The list of tag keys and values associated with this launch.public Segment withTags(Map<String,String> tags)
The list of tag keys and values associated with this launch.
tags
- The list of tag keys and values associated with this launch.public Segment clearTagsEntries()
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.