public class ImportJobRequest
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ImportJobRequest() |
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.
|
ImportJobRequest |
withDefineSegment(java.lang.Boolean defineSegment)
Sets whether the endpoints create a segment when they are imported.
|
ImportJobRequest |
withExternalId(java.lang.String externalId)
(Deprecated) Your AWS account ID, which you assigned to the ExternalID
key in an IAM trust policy.
|
ImportJobRequest |
withFormat(Format format)
The format of the files that contain the endpoint definitions.
|
ImportJobRequest |
withFormat(java.lang.String format)
The format of the files that contain the endpoint definitions.
|
ImportJobRequest |
withRegisterEndpoints(java.lang.Boolean registerEndpoints)
Sets whether the endpoints are registered with Amazon Pinpoint when they
are imported.
|
ImportJobRequest |
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.
|
ImportJobRequest |
withS3Url(java.lang.String s3Url)
The URL of the S3 bucket that contains the segment information to import.
|
ImportJobRequest |
withSegmentId(java.lang.String segmentId)
The ID of the segment to update if the import job is meant to update an
existing segment.
|
ImportJobRequest |
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 ImportJobRequest 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 ImportJobRequest 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 ImportJobRequest 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 ImportJobRequest 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 ImportJobRequest 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 ImportJobRequest 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 ImportJobRequest 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 ImportJobRequest 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 ImportJobRequest 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.