@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImportJobResource extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
ImportJobResource() |
Modifier and Type | Method and Description |
---|---|
ImportJobResource |
clone() |
boolean |
equals(Object obj) |
Boolean |
getDefineSegment()
Sets whether the endpoints create a segment when they are imported.
|
String |
getExternalId()
A unique, custom ID assigned to the IAM role that restricts who can assume the role.
|
String |
getFormat()
The format of the files that contain the endpoint definitions.
|
Boolean |
getRegisterEndpoints()
Sets whether the endpoints are registered with Amazon Pinpoint when they are imported.
|
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.
|
String |
getS3Url()
A URL that points to the location within an Amazon S3 bucket that contains the endpoints to import.
|
String |
getSegmentId()
The ID of the segment to update if the import job is meant to update an existing segment.
|
String |
getSegmentName()
A custom name for the segment created by the import job.
|
int |
hashCode() |
Boolean |
isDefineSegment()
Sets whether the endpoints create a segment when they are imported.
|
Boolean |
isRegisterEndpoints()
Sets whether the endpoints are registered with Amazon Pinpoint when they are imported.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDefineSegment(Boolean defineSegment)
Sets whether the endpoints create a segment when they are imported.
|
void |
setExternalId(String externalId)
A unique, custom ID assigned to the IAM role that restricts who can assume the role.
|
void |
setFormat(Format format)
The format of the files that contain the endpoint definitions.
|
void |
setFormat(String format)
The format of the files that contain the endpoint definitions.
|
void |
setRegisterEndpoints(Boolean registerEndpoints)
Sets whether the endpoints are registered with Amazon Pinpoint when they are imported.
|
void |
setRoleArn(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(String s3Url)
A URL that points to the location within an Amazon S3 bucket that contains the endpoints to import.
|
void |
setSegmentId(String segmentId)
The ID of the segment to update if the import job is meant to update an existing segment.
|
void |
setSegmentName(String segmentName)
A custom name for the segment created by the import job.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ImportJobResource |
withDefineSegment(Boolean defineSegment)
Sets whether the endpoints create a segment when they are imported.
|
ImportJobResource |
withExternalId(String externalId)
A unique, custom ID assigned to the IAM role that restricts who can assume the role.
|
ImportJobResource |
withFormat(Format format)
The format of the files that contain the endpoint definitions.
|
ImportJobResource |
withFormat(String format)
The format of the files that contain the endpoint definitions.
|
ImportJobResource |
withRegisterEndpoints(Boolean registerEndpoints)
Sets whether the endpoints are registered with Amazon Pinpoint when they are imported.
|
ImportJobResource |
withRoleArn(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(String s3Url)
A URL that points to the location within an Amazon S3 bucket that contains the endpoints to import.
|
ImportJobResource |
withSegmentId(String segmentId)
The ID of the segment to update if the import job is meant to update an existing segment.
|
ImportJobResource |
withSegmentName(String segmentName)
A custom name for the segment created by the import job.
|
public void setDefineSegment(Boolean defineSegment)
defineSegment
- Sets whether the endpoints create a segment when they are imported.public Boolean getDefineSegment()
public ImportJobResource withDefineSegment(Boolean defineSegment)
defineSegment
- Sets whether the endpoints create a segment when they are imported.public Boolean isDefineSegment()
public void setExternalId(String externalId)
externalId
- A unique, custom ID assigned to the IAM role that restricts who can assume the role.public String getExternalId()
public ImportJobResource withExternalId(String externalId)
externalId
- A unique, custom ID assigned to the IAM role that restricts who can assume the role.public void setFormat(String format)
format
- The format of the files that contain the endpoint definitions. Valid values: CSV, JSONFormat
public String getFormat()
Format
public ImportJobResource withFormat(String format)
format
- The format of the files that contain the endpoint definitions. Valid values: CSV, JSONFormat
public void setFormat(Format format)
format
- The format of the files that contain the endpoint definitions. Valid values: CSV, JSONFormat
public ImportJobResource withFormat(Format format)
format
- The format of the files that contain the endpoint definitions. Valid values: CSV, JSONFormat
public void setRegisterEndpoints(Boolean registerEndpoints)
registerEndpoints
- Sets whether the endpoints are registered with Amazon Pinpoint when they are imported.public Boolean getRegisterEndpoints()
public ImportJobResource withRegisterEndpoints(Boolean registerEndpoints)
registerEndpoints
- Sets whether the endpoints are registered with Amazon Pinpoint when they are imported.public Boolean isRegisterEndpoints()
public void setRoleArn(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 String getRoleArn()
public ImportJobResource withRoleArn(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 void setS3Url(String s3Url)
s3Url
- A URL that points to the location within an Amazon S3 bucket that contains the endpoints to import. The
location can be a folder or a single file. The URL should follow this format:
s3://bucket-name/folder-name/file-name
Amazon Pinpoint will import endpoints from this location and any subfolders it contains.public String getS3Url()
public ImportJobResource withS3Url(String s3Url)
s3Url
- A URL that points to the location within an Amazon S3 bucket that contains the endpoints to import. The
location can be a folder or a single file. The URL should follow this format:
s3://bucket-name/folder-name/file-name
Amazon Pinpoint will import endpoints from this location and any subfolders it contains.public void setSegmentId(String segmentId)
segmentId
- The ID of the segment to update if the import job is meant to update an existing segment.public String getSegmentId()
public ImportJobResource withSegmentId(String segmentId)
segmentId
- The ID of the segment to update if the import job is meant to update an existing segment.public void setSegmentName(String segmentName)
segmentName
- A custom name for the segment created by the import job. Use if DefineSegment is true.public String getSegmentName()
public ImportJobResource withSegmentName(String segmentName)
segmentName
- A custom name for the segment created by the import job. Use if DefineSegment is true.public String toString()
toString
in class Object
Object.toString()
public ImportJobResource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.