public class ImportJobResource
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ImportJobResource() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getDefineSegment()
Sets whether the endpoints create a segment when they are imported.
|
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 files that contain the endpoint definitions.
|
java.lang.Boolean |
getRegisterEndpoints()
Sets whether the endpoints are registered with Amazon Pinpoint when they
are imported.
|
java.lang.String |
getRoleArn()
The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint
access to the Amazon S3 location that contains the endpoints to import.
|
java.lang.String |
getS3Url()
The URL of the S3 bucket that contains the segment information to import.
|
java.lang.String |
getSegmentId()
The ID of the segment to update if the import job is meant to update an
existing segment.
|
java.lang.String |
getSegmentName()
A custom name for the segment created by the import job.
|
int |
hashCode() |
java.lang.Boolean |
isDefineSegment()
Sets whether the endpoints create a segment when they are imported.
|
java.lang.Boolean |
isRegisterEndpoints()
Sets whether the endpoints are registered with Amazon Pinpoint when they
are imported.
|
void |
setDefineSegment(java.lang.Boolean defineSegment)
Sets whether the endpoints create a segment when they are imported.
|
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 files that contain the endpoint definitions.
|
void |
setFormat(java.lang.String format)
The format of the files that contain the endpoint definitions.
|
void |
setRegisterEndpoints(java.lang.Boolean registerEndpoints)
Sets whether the endpoints are registered with Amazon Pinpoint when they
are imported.
|
void |
setRoleArn(java.lang.String roleArn)
The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint
access to the Amazon S3 location that contains the endpoints to import.
|
void |
setS3Url(java.lang.String s3Url)
The URL of the S3 bucket that contains the segment information to import.
|
void |
setSegmentId(java.lang.String segmentId)
The ID of the segment to update if the import job is meant to update an
existing segment.
|
void |
setSegmentName(java.lang.String segmentName)
A custom name for the segment created by the import job.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ImportJobResource |
withDefineSegment(java.lang.Boolean defineSegment)
Sets whether the endpoints create a segment when they are imported.
|
ImportJobResource |
withExternalId(java.lang.String externalId)
(Deprecated) Your AWS account ID, which you assigned to the ExternalID
key in an IAM trust policy.
|
ImportJobResource |
withFormat(Format format)
The format of the files that contain the endpoint definitions.
|
ImportJobResource |
withFormat(java.lang.String format)
The format of the files that contain the endpoint definitions.
|
ImportJobResource |
withRegisterEndpoints(java.lang.Boolean registerEndpoints)
Sets whether the endpoints are registered with Amazon Pinpoint when they
are imported.
|
ImportJobResource |
withRoleArn(java.lang.String roleArn)
The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint
access to the Amazon S3 location that contains the endpoints to import.
|
ImportJobResource |
withS3Url(java.lang.String s3Url)
The URL of the S3 bucket that contains the segment information to import.
|
ImportJobResource |
withSegmentId(java.lang.String segmentId)
The ID of the segment to update if the import job is meant to update an
existing segment.
|
ImportJobResource |
withSegmentName(java.lang.String segmentName)
A custom name for the segment created by the import job.
|
public java.lang.Boolean isDefineSegment()
public java.lang.Boolean getDefineSegment()
public void setDefineSegment(java.lang.Boolean defineSegment)
defineSegment
- Sets whether the endpoints create a segment when
they are imported.public ImportJobResource withDefineSegment(java.lang.Boolean defineSegment)
Returns a reference to this object so that method calls can be chained together.
defineSegment
- Sets whether the endpoints create a segment when
they are imported.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 ImportJobResource 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 files that contain the endpoint
definitions. Valid values: CSV, JSONFormat
public ImportJobResource 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 files that contain the endpoint
definitions. Valid values: CSV, JSONFormat
public void setFormat(Format format)
Constraints:
Allowed Values: CSV, JSON
format
- The format of the files that contain the endpoint
definitions. Valid values: CSV, JSONFormat
public ImportJobResource 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 files that contain the endpoint
definitions. Valid values: CSV, JSONFormat
public java.lang.Boolean isRegisterEndpoints()
public java.lang.Boolean getRegisterEndpoints()
public void setRegisterEndpoints(java.lang.Boolean registerEndpoints)
registerEndpoints
- Sets whether the endpoints are registered with
Amazon Pinpoint when they are imported.public ImportJobResource withRegisterEndpoints(java.lang.Boolean registerEndpoints)
Returns a reference to this object so that method calls can be chained together.
registerEndpoints
- Sets whether the endpoints are registered with
Amazon Pinpoint when they are imported.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 Amazon S3 location that contains
the endpoints to import.public ImportJobResource 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 Amazon S3 location that contains
the endpoints to import.public java.lang.String getS3Url()
public void setS3Url(java.lang.String s3Url)
s3Url
- The URL of the S3 bucket that contains the segment
information to import. The location can be a folder or a
single file. The URL should use the following format:
s3://bucket-name/folder-name/file-name Amazon Pinpoint imports
endpoints from this location and any subfolders it contains.public ImportJobResource 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 contains the segment
information to import. The location can be a folder or a
single file. The URL should use the following format:
s3://bucket-name/folder-name/file-name Amazon Pinpoint imports
endpoints from this location and any subfolders it contains.public java.lang.String getSegmentId()
public void setSegmentId(java.lang.String segmentId)
segmentId
- The ID of the segment to update if the import job is
meant to update an existing segment.public ImportJobResource withSegmentId(java.lang.String segmentId)
Returns a reference to this object so that method calls can be chained together.
segmentId
- The ID of the segment to update if the import job is
meant to update an existing segment.public java.lang.String getSegmentName()
public void setSegmentName(java.lang.String segmentName)
segmentName
- A custom name for the segment created by the import
job. Use if DefineSegment is true.public ImportJobResource withSegmentName(java.lang.String segmentName)
Returns a reference to this object so that method calls can be chained together.
segmentName
- A custom name for the segment created by the import
job. Use if DefineSegment is true.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.