public class SegmentImportResource extends Object implements Serializable
Constructor and Description |
---|
SegmentImportResource() |
Modifier and Type | Method and Description |
---|---|
SegmentImportResource |
addChannelCountsEntry(String key,
Integer value)
The number of channel types in the imported segment.
|
SegmentImportResource |
clearChannelCountsEntries()
Removes all the entries added into ChannelCounts.
|
boolean |
equals(Object obj) |
Map<String,Integer> |
getChannelCounts()
The number of channel types in the imported segment.
|
String |
getExternalId()
(Deprecated) Your AWS account ID, which you assigned to the ExternalID
key in an IAM trust policy.
|
String |
getFormat()
The format of the endpoint files that were imported to create this
segment.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint
access to the endpoints in Amazon S3.
|
String |
getS3Url()
The URL of the S3 bucket that the segment was imported from.
|
Integer |
getSize()
The number of endpoints that were successfully imported to create this
segment.
|
int |
hashCode() |
void |
setChannelCounts(Map<String,Integer> channelCounts)
The number of channel types in the imported segment.
|
void |
setExternalId(String externalId)
(Deprecated) Your AWS account ID, which you assigned to the ExternalID
key in an IAM trust policy.
|
void |
setFormat(Format format)
The format of the endpoint files that were imported to create this
segment.
|
void |
setFormat(String format)
The format of the endpoint files that were imported to create this
segment.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint
access to the endpoints in Amazon S3.
|
void |
setS3Url(String s3Url)
The URL of the S3 bucket that the segment was imported from.
|
void |
setSize(Integer size)
The number of endpoints that were successfully imported to create this
segment.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SegmentImportResource |
withChannelCounts(Map<String,Integer> channelCounts)
The number of channel types in the imported segment.
|
SegmentImportResource |
withExternalId(String externalId)
(Deprecated) Your AWS account ID, which you assigned to the ExternalID
key in an IAM trust policy.
|
SegmentImportResource |
withFormat(Format format)
The format of the endpoint files that were imported to create this
segment.
|
SegmentImportResource |
withFormat(String format)
The format of the endpoint files that were imported to create this
segment.
|
SegmentImportResource |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint
access to the endpoints in Amazon S3.
|
SegmentImportResource |
withS3Url(String s3Url)
The URL of the S3 bucket that the segment was imported from.
|
SegmentImportResource |
withSize(Integer size)
The number of endpoints that were successfully imported to create this
segment.
|
public Map<String,Integer> getChannelCounts()
public void setChannelCounts(Map<String,Integer> channelCounts)
channelCounts
- The number of channel types in the imported segment.public SegmentImportResource withChannelCounts(Map<String,Integer> channelCounts)
Returns a reference to this object so that method calls can be chained together.
channelCounts
- The number of channel types in the imported segment.public SegmentImportResource addChannelCountsEntry(String key, Integer value)
The method adds a new key-value pair into ChannelCounts parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into ChannelCounts.value
- The corresponding value of the entry to be added into
ChannelCounts.public SegmentImportResource clearChannelCountsEntries()
Returns a reference to this object so that method calls can be chained together.
public String getExternalId()
public void setExternalId(String externalId)
externalId
- (Deprecated) Your AWS account ID, which you assigned to
the ExternalID key in an IAM trust policy. Used by Amazon
Pinpoint to assume an IAM role. This requirement is removed,
and external IDs are not recommended for IAM roles assumed by
Amazon Pinpoint.public SegmentImportResource withExternalId(String externalId)
Returns a reference to this object so that method calls can be chained together.
externalId
- (Deprecated) Your AWS account ID, which you assigned to
the ExternalID key in an IAM trust policy. Used by Amazon
Pinpoint to assume an IAM role. This requirement is removed,
and external IDs are not recommended for IAM roles assumed by
Amazon Pinpoint.public String getFormat()
Constraints:
Allowed Values: CSV, JSON
Format
public void setFormat(String format)
Constraints:
Allowed Values: CSV, JSON
format
- The format of the endpoint files that were imported to
create this segment. Valid values: CSV, JSONFormat
public SegmentImportResource withFormat(String format)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CSV, JSON
format
- The format of the endpoint files that were imported to
create this segment. Valid values: CSV, JSONFormat
public void setFormat(Format format)
Constraints:
Allowed Values: CSV, JSON
format
- The format of the endpoint files that were imported to
create this segment. Valid values: CSV, JSONFormat
public SegmentImportResource withFormat(Format format)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CSV, JSON
format
- The format of the endpoint files that were imported to
create this segment. Valid values: CSV, JSONFormat
public String getRoleArn()
public void setRoleArn(String roleArn)
roleArn
- The Amazon Resource Name (ARN) of an IAM role that grants
Amazon Pinpoint access to the endpoints in Amazon S3.public SegmentImportResource withRoleArn(String roleArn)
Returns a reference to this object so that method calls can be chained together.
roleArn
- The Amazon Resource Name (ARN) of an IAM role that grants
Amazon Pinpoint access to the endpoints in Amazon S3.public String getS3Url()
public void setS3Url(String s3Url)
s3Url
- The URL of the S3 bucket that the segment was imported from.public SegmentImportResource withS3Url(String s3Url)
Returns a reference to this object so that method calls can be chained together.
s3Url
- The URL of the S3 bucket that the segment was imported from.public Integer getSize()
public void setSize(Integer size)
size
- The number of endpoints that were successfully imported to
create this segment.public SegmentImportResource withSize(Integer size)
Returns a reference to this object so that method calls can be chained together.
size
- The number of endpoints that were successfully imported to
create this segment.public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.