public class SegmentImportResource
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SegmentImportResource() |
Modifier and Type | Method and Description |
---|---|
SegmentImportResource |
addChannelCountsEntry(java.lang.String key,
java.lang.Integer value)
The number of channel types in the imported segment.
|
SegmentImportResource |
clearChannelCountsEntries()
Removes all the entries added into ChannelCounts.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.Integer> |
getChannelCounts()
The number of channel types in the imported segment.
|
java.lang.String |
getExternalId()
(Deprecated) Your AWS account ID, which you assigned to the ExternalID
key in an IAM trust policy.
|
java.lang.String |
getFormat()
The format of the endpoint files that were imported to create this
segment.
|
java.lang.String |
getRoleArn()
The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint
access to the endpoints in Amazon S3.
|
java.lang.String |
getS3Url()
The URL of the S3 bucket that the segment was imported from.
|
java.lang.Integer |
getSize()
The number of endpoints that were successfully imported to create this
segment.
|
int |
hashCode() |
void |
setChannelCounts(java.util.Map<java.lang.String,java.lang.Integer> channelCounts)
The number of channel types in the imported segment.
|
void |
setExternalId(java.lang.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(java.lang.String format)
The format of the endpoint files that were imported to create this
segment.
|
void |
setRoleArn(java.lang.String roleArn)
The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint
access to the endpoints in Amazon S3.
|
void |
setS3Url(java.lang.String s3Url)
The URL of the S3 bucket that the segment was imported from.
|
void |
setSize(java.lang.Integer size)
The number of endpoints that were successfully imported to create this
segment.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SegmentImportResource |
withChannelCounts(java.util.Map<java.lang.String,java.lang.Integer> channelCounts)
The number of channel types in the imported segment.
|
SegmentImportResource |
withExternalId(java.lang.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(java.lang.String format)
The format of the endpoint files that were imported to create this
segment.
|
SegmentImportResource |
withRoleArn(java.lang.String roleArn)
The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint
access to the endpoints in Amazon S3.
|
SegmentImportResource |
withS3Url(java.lang.String s3Url)
The URL of the S3 bucket that the segment was imported from.
|
SegmentImportResource |
withSize(java.lang.Integer size)
The number of endpoints that were successfully imported to create this
segment.
|
public java.util.Map<java.lang.String,java.lang.Integer> getChannelCounts()
public void setChannelCounts(java.util.Map<java.lang.String,java.lang.Integer> channelCounts)
channelCounts
- The number of channel types in the imported segment.public SegmentImportResource withChannelCounts(java.util.Map<java.lang.String,java.lang.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(java.lang.String key, java.lang.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 java.lang.String getExternalId()
public void setExternalId(java.lang.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(java.lang.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 java.lang.String getFormat()
Constraints:
Allowed Values: CSV, JSON
Format
public void setFormat(java.lang.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(java.lang.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 java.lang.String getRoleArn()
public void setRoleArn(java.lang.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(java.lang.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 java.lang.String getS3Url()
public void setS3Url(java.lang.String s3Url)
s3Url
- The URL of the S3 bucket that the segment was imported from.public SegmentImportResource withS3Url(java.lang.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 java.lang.Integer getSize()
public void setSize(java.lang.Integer size)
size
- The number of endpoints that were successfully imported to
create this segment.public SegmentImportResource withSize(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.