@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Schedule extends Object implements Serializable, Cloneable, StructuredPojo
Represents one or more dates and times when a job is to run.
Constructor and Description |
---|
Schedule() |
Modifier and Type | Method and Description |
---|---|
Schedule |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
Schedule |
clearTagsEntries()
Removes all the entries added into Tags.
|
Schedule |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The ID of the Amazon Web Services account that owns the schedule.
|
Date |
getCreateDate()
The date and time that the schedule was created.
|
String |
getCreatedBy()
The Amazon Resource Name (ARN) of the user who created the schedule.
|
String |
getCronExpression()
The dates and times when the job is to run.
|
List<String> |
getJobNames()
A list of jobs to be run, according to the schedule.
|
String |
getLastModifiedBy()
The Amazon Resource Name (ARN) of the user who last modified the schedule.
|
Date |
getLastModifiedDate()
The date and time when the schedule was last modified.
|
String |
getName()
The name of the schedule.
|
String |
getResourceArn()
The Amazon Resource Name (ARN) of the schedule.
|
Map<String,String> |
getTags()
Metadata tags that have been applied to the schedule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountId(String accountId)
The ID of the Amazon Web Services account that owns the schedule.
|
void |
setCreateDate(Date createDate)
The date and time that the schedule was created.
|
void |
setCreatedBy(String createdBy)
The Amazon Resource Name (ARN) of the user who created the schedule.
|
void |
setCronExpression(String cronExpression)
The dates and times when the job is to run.
|
void |
setJobNames(Collection<String> jobNames)
A list of jobs to be run, according to the schedule.
|
void |
setLastModifiedBy(String lastModifiedBy)
The Amazon Resource Name (ARN) of the user who last modified the schedule.
|
void |
setLastModifiedDate(Date lastModifiedDate)
The date and time when the schedule was last modified.
|
void |
setName(String name)
The name of the schedule.
|
void |
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the schedule.
|
void |
setTags(Map<String,String> tags)
Metadata tags that have been applied to the schedule.
|
String |
toString()
Returns a string representation of this object.
|
Schedule |
withAccountId(String accountId)
The ID of the Amazon Web Services account that owns the schedule.
|
Schedule |
withCreateDate(Date createDate)
The date and time that the schedule was created.
|
Schedule |
withCreatedBy(String createdBy)
The Amazon Resource Name (ARN) of the user who created the schedule.
|
Schedule |
withCronExpression(String cronExpression)
The dates and times when the job is to run.
|
Schedule |
withJobNames(Collection<String> jobNames)
A list of jobs to be run, according to the schedule.
|
Schedule |
withJobNames(String... jobNames)
A list of jobs to be run, according to the schedule.
|
Schedule |
withLastModifiedBy(String lastModifiedBy)
The Amazon Resource Name (ARN) of the user who last modified the schedule.
|
Schedule |
withLastModifiedDate(Date lastModifiedDate)
The date and time when the schedule was last modified.
|
Schedule |
withName(String name)
The name of the schedule.
|
Schedule |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the schedule.
|
Schedule |
withTags(Map<String,String> tags)
Metadata tags that have been applied to the schedule.
|
public void setAccountId(String accountId)
The ID of the Amazon Web Services account that owns the schedule.
accountId
- The ID of the Amazon Web Services account that owns the schedule.public String getAccountId()
The ID of the Amazon Web Services account that owns the schedule.
public Schedule withAccountId(String accountId)
The ID of the Amazon Web Services account that owns the schedule.
accountId
- The ID of the Amazon Web Services account that owns the schedule.public void setCreatedBy(String createdBy)
The Amazon Resource Name (ARN) of the user who created the schedule.
createdBy
- The Amazon Resource Name (ARN) of the user who created the schedule.public String getCreatedBy()
The Amazon Resource Name (ARN) of the user who created the schedule.
public Schedule withCreatedBy(String createdBy)
The Amazon Resource Name (ARN) of the user who created the schedule.
createdBy
- The Amazon Resource Name (ARN) of the user who created the schedule.public void setCreateDate(Date createDate)
The date and time that the schedule was created.
createDate
- The date and time that the schedule was created.public Date getCreateDate()
The date and time that the schedule was created.
public Schedule withCreateDate(Date createDate)
The date and time that the schedule was created.
createDate
- The date and time that the schedule was created.public List<String> getJobNames()
A list of jobs to be run, according to the schedule.
public void setJobNames(Collection<String> jobNames)
A list of jobs to be run, according to the schedule.
jobNames
- A list of jobs to be run, according to the schedule.public Schedule withJobNames(String... jobNames)
A list of jobs to be run, according to the schedule.
NOTE: This method appends the values to the existing list (if any). Use
setJobNames(java.util.Collection)
or withJobNames(java.util.Collection)
if you want to override
the existing values.
jobNames
- A list of jobs to be run, according to the schedule.public Schedule withJobNames(Collection<String> jobNames)
A list of jobs to be run, according to the schedule.
jobNames
- A list of jobs to be run, according to the schedule.public void setLastModifiedBy(String lastModifiedBy)
The Amazon Resource Name (ARN) of the user who last modified the schedule.
lastModifiedBy
- The Amazon Resource Name (ARN) of the user who last modified the schedule.public String getLastModifiedBy()
The Amazon Resource Name (ARN) of the user who last modified the schedule.
public Schedule withLastModifiedBy(String lastModifiedBy)
The Amazon Resource Name (ARN) of the user who last modified the schedule.
lastModifiedBy
- The Amazon Resource Name (ARN) of the user who last modified the schedule.public void setLastModifiedDate(Date lastModifiedDate)
The date and time when the schedule was last modified.
lastModifiedDate
- The date and time when the schedule was last modified.public Date getLastModifiedDate()
The date and time when the schedule was last modified.
public Schedule withLastModifiedDate(Date lastModifiedDate)
The date and time when the schedule was last modified.
lastModifiedDate
- The date and time when the schedule was last modified.public void setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the schedule.
resourceArn
- The Amazon Resource Name (ARN) of the schedule.public String getResourceArn()
The Amazon Resource Name (ARN) of the schedule.
public Schedule withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the schedule.
resourceArn
- The Amazon Resource Name (ARN) of the schedule.public void setCronExpression(String cronExpression)
The dates and times when the job is to run. For more information, see Cron expressions in the Glue DataBrew Developer Guide.
cronExpression
- The dates and times when the job is to run. For more information, see Cron expressions in the Glue
DataBrew Developer Guide.public String getCronExpression()
The dates and times when the job is to run. For more information, see Cron expressions in the Glue DataBrew Developer Guide.
public Schedule withCronExpression(String cronExpression)
The dates and times when the job is to run. For more information, see Cron expressions in the Glue DataBrew Developer Guide.
cronExpression
- The dates and times when the job is to run. For more information, see Cron expressions in the Glue
DataBrew Developer Guide.public Map<String,String> getTags()
Metadata tags that have been applied to the schedule.
public void setTags(Map<String,String> tags)
Metadata tags that have been applied to the schedule.
tags
- Metadata tags that have been applied to the schedule.public Schedule withTags(Map<String,String> tags)
Metadata tags that have been applied to the schedule.
tags
- Metadata tags that have been applied to the schedule.public Schedule clearTagsEntries()
public void setName(String name)
The name of the schedule.
name
- The name of the schedule.public String getName()
The name of the schedule.
public Schedule withName(String name)
The name of the schedule.
name
- The name of the schedule.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.