@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImportJobRequest extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the settings for a job that imports endpoint definitions from an Amazon Simple Storage Service (Amazon S3) bucket.
Constructor and Description |
---|
ImportJobRequest() |
Modifier and Type | Method and Description |
---|---|
ImportJobRequest |
clone() |
boolean |
equals(Object obj) |
Boolean |
getDefineSegment()
Specifies whether to create a segment that contains the endpoints, when the endpoint definitions are imported.
|
String |
getExternalId()
(Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy.
|
String |
getFormat()
The format of the files that contain the endpoint definitions to import.
|
Boolean |
getRegisterEndpoints()
Specifies whether to register the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon
Pinpoint to access the Amazon S3 location to import endpoint definitions from.
|
String |
getS3Url()
The URL of the Amazon Simple Storage Service (Amazon S3) bucket that contains the endpoint definitions to import.
|
String |
getSegmentId()
The identifier for the segment to update or add the imported endpoint definitions to, if the import job is meant
to update an existing segment.
|
String |
getSegmentName()
A custom name for the segment that's created by the import job, if the value of the DefineSegment property is
true.
|
int |
hashCode() |
Boolean |
isDefineSegment()
Specifies whether to create a segment that contains the endpoints, when the endpoint definitions are imported.
|
Boolean |
isRegisterEndpoints()
Specifies whether to register the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDefineSegment(Boolean defineSegment)
Specifies whether to create a segment that contains the endpoints, when the endpoint definitions are imported.
|
void |
setExternalId(String externalId)
(Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy.
|
void |
setFormat(Format format)
The format of the files that contain the endpoint definitions to import.
|
void |
setFormat(String format)
The format of the files that contain the endpoint definitions to import.
|
void |
setRegisterEndpoints(Boolean registerEndpoints)
Specifies whether to register the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon
Pinpoint to access the Amazon S3 location to import endpoint definitions from.
|
void |
setS3Url(String s3Url)
The URL of the Amazon Simple Storage Service (Amazon S3) bucket that contains the endpoint definitions to import.
|
void |
setSegmentId(String segmentId)
The identifier for the segment to update or add the imported endpoint definitions to, if the import job is meant
to update an existing segment.
|
void |
setSegmentName(String segmentName)
A custom name for the segment that's created by the import job, if the value of the DefineSegment property is
true.
|
String |
toString()
Returns a string representation of this object.
|
ImportJobRequest |
withDefineSegment(Boolean defineSegment)
Specifies whether to create a segment that contains the endpoints, when the endpoint definitions are imported.
|
ImportJobRequest |
withExternalId(String externalId)
(Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy.
|
ImportJobRequest |
withFormat(Format format)
The format of the files that contain the endpoint definitions to import.
|
ImportJobRequest |
withFormat(String format)
The format of the files that contain the endpoint definitions to import.
|
ImportJobRequest |
withRegisterEndpoints(Boolean registerEndpoints)
Specifies whether to register the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.
|
ImportJobRequest |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon
Pinpoint to access the Amazon S3 location to import endpoint definitions from.
|
ImportJobRequest |
withS3Url(String s3Url)
The URL of the Amazon Simple Storage Service (Amazon S3) bucket that contains the endpoint definitions to import.
|
ImportJobRequest |
withSegmentId(String segmentId)
The identifier for the segment to update or add the imported endpoint definitions to, if the import job is meant
to update an existing segment.
|
ImportJobRequest |
withSegmentName(String segmentName)
A custom name for the segment that's created by the import job, if the value of the DefineSegment property is
true.
|
public void setDefineSegment(Boolean defineSegment)
Specifies whether to create a segment that contains the endpoints, when the endpoint definitions are imported.
defineSegment
- Specifies whether to create a segment that contains the endpoints, when the endpoint definitions are
imported.public Boolean getDefineSegment()
Specifies whether to create a segment that contains the endpoints, when the endpoint definitions are imported.
public ImportJobRequest withDefineSegment(Boolean defineSegment)
Specifies whether to create a segment that contains the endpoints, when the endpoint definitions are imported.
defineSegment
- Specifies whether to create a segment that contains the endpoints, when the endpoint definitions are
imported.public Boolean isDefineSegment()
Specifies whether to create a segment that contains the endpoints, when the endpoint definitions are imported.
public void setExternalId(String externalId)
(Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM role when importing endpoint definitions, but we removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon Pinpoint.
externalId
- (Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon
Pinpoint previously used this value to assume an IAM role when importing endpoint definitions, but we
removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon
Pinpoint.public String getExternalId()
(Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM role when importing endpoint definitions, but we removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon Pinpoint.
public ImportJobRequest withExternalId(String externalId)
(Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM role when importing endpoint definitions, but we removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon Pinpoint.
externalId
- (Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon
Pinpoint previously used this value to assume an IAM role when importing endpoint definitions, but we
removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon
Pinpoint.public void setFormat(String format)
The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for comma-separated values format; and, JSON, for newline-delimited JSON format. If the Amazon S3 location stores multiple files that use different formats, Amazon Pinpoint imports data only from the files that use the specified format.
format
- The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for
comma-separated values format; and, JSON, for newline-delimited JSON format. If the Amazon S3 location
stores multiple files that use different formats, Amazon Pinpoint imports data only from the files that
use the specified format.Format
public String getFormat()
The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for comma-separated values format; and, JSON, for newline-delimited JSON format. If the Amazon S3 location stores multiple files that use different formats, Amazon Pinpoint imports data only from the files that use the specified format.
Format
public ImportJobRequest withFormat(String format)
The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for comma-separated values format; and, JSON, for newline-delimited JSON format. If the Amazon S3 location stores multiple files that use different formats, Amazon Pinpoint imports data only from the files that use the specified format.
format
- The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for
comma-separated values format; and, JSON, for newline-delimited JSON format. If the Amazon S3 location
stores multiple files that use different formats, Amazon Pinpoint imports data only from the files that
use the specified format.Format
public void setFormat(Format format)
The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for comma-separated values format; and, JSON, for newline-delimited JSON format. If the Amazon S3 location stores multiple files that use different formats, Amazon Pinpoint imports data only from the files that use the specified format.
format
- The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for
comma-separated values format; and, JSON, for newline-delimited JSON format. If the Amazon S3 location
stores multiple files that use different formats, Amazon Pinpoint imports data only from the files that
use the specified format.Format
public ImportJobRequest withFormat(Format format)
The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for comma-separated values format; and, JSON, for newline-delimited JSON format. If the Amazon S3 location stores multiple files that use different formats, Amazon Pinpoint imports data only from the files that use the specified format.
format
- The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for
comma-separated values format; and, JSON, for newline-delimited JSON format. If the Amazon S3 location
stores multiple files that use different formats, Amazon Pinpoint imports data only from the files that
use the specified format.Format
public void setRegisterEndpoints(Boolean registerEndpoints)
Specifies whether to register the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.
registerEndpoints
- Specifies whether to register the endpoints with Amazon Pinpoint, when the endpoint definitions are
imported.public Boolean getRegisterEndpoints()
Specifies whether to register the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.
public ImportJobRequest withRegisterEndpoints(Boolean registerEndpoints)
Specifies whether to register the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.
registerEndpoints
- Specifies whether to register the endpoints with Amazon Pinpoint, when the endpoint definitions are
imported.public Boolean isRegisterEndpoints()
Specifies whether to register the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.
public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to access the Amazon S3 location to import endpoint definitions from.
roleArn
- The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon
Pinpoint to access the Amazon S3 location to import endpoint definitions from.public String getRoleArn()
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to access the Amazon S3 location to import endpoint definitions from.
public ImportJobRequest withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to access the Amazon S3 location to import endpoint definitions from.
roleArn
- The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon
Pinpoint to access the Amazon S3 location to import endpoint definitions from.public void setS3Url(String s3Url)
The URL of the Amazon Simple Storage Service (Amazon S3) bucket that contains the endpoint definitions to import. This location can be a folder or a single file. If the location is a folder, Amazon Pinpoint imports endpoint definitions from the files in this location, including any subfolders that the folder contains.
The URL should be in the following format:
s3://
s3Url
- The URL of the Amazon Simple Storage Service (Amazon S3) bucket that contains the endpoint definitions to
import. This location can be a folder or a single file. If the location is a folder, Amazon Pinpoint
imports endpoint definitions from the files in this location, including any subfolders that the folder
contains.
The URL should be in the following format:
s3://
public String getS3Url()
The URL of the Amazon Simple Storage Service (Amazon S3) bucket that contains the endpoint definitions to import. This location can be a folder or a single file. If the location is a folder, Amazon Pinpoint imports endpoint definitions from the files in this location, including any subfolders that the folder contains.
The URL should be in the following format:
s3://
The URL should be in the following format:
s3://
public ImportJobRequest withS3Url(String s3Url)
The URL of the Amazon Simple Storage Service (Amazon S3) bucket that contains the endpoint definitions to import. This location can be a folder or a single file. If the location is a folder, Amazon Pinpoint imports endpoint definitions from the files in this location, including any subfolders that the folder contains.
The URL should be in the following format:
s3://
s3Url
- The URL of the Amazon Simple Storage Service (Amazon S3) bucket that contains the endpoint definitions to
import. This location can be a folder or a single file. If the location is a folder, Amazon Pinpoint
imports endpoint definitions from the files in this location, including any subfolders that the folder
contains.
The URL should be in the following format:
s3://
public void setSegmentId(String segmentId)
The identifier for the segment to update or add the imported endpoint definitions to, if the import job is meant to update an existing segment.
segmentId
- The identifier for the segment to update or add the imported endpoint definitions to, if the import job is
meant to update an existing segment.public String getSegmentId()
The identifier for the segment to update or add the imported endpoint definitions to, if the import job is meant to update an existing segment.
public ImportJobRequest withSegmentId(String segmentId)
The identifier for the segment to update or add the imported endpoint definitions to, if the import job is meant to update an existing segment.
segmentId
- The identifier for the segment to update or add the imported endpoint definitions to, if the import job is
meant to update an existing segment.public void setSegmentName(String segmentName)
A custom name for the segment that's created by the import job, if the value of the DefineSegment property is true.
segmentName
- A custom name for the segment that's created by the import job, if the value of the DefineSegment property
is true.public String getSegmentName()
A custom name for the segment that's created by the import job, if the value of the DefineSegment property is true.
public ImportJobRequest withSegmentName(String segmentName)
A custom name for the segment that's created by the import job, if the value of the DefineSegment property is true.
segmentName
- A custom name for the segment that's created by the import job, if the value of the DefineSegment property
is true.public String toString()
toString
in class Object
Object.toString()
public ImportJobRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.