@Generated(value="software.amazon.awssdk:codegen") public class CreateTriggerRequest extends GlueRequest implements ToCopyableBuilder<CreateTriggerRequest.Builder,CreateTriggerRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateTriggerRequest.Builder |
Modifier and Type | Method and Description |
---|---|
List<Action> |
actions()
The actions initiated by this trigger when it fires.
|
static CreateTriggerRequest.Builder |
builder() |
String |
description()
A description of the new trigger.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
name()
The name to assign to the new trigger.
|
Predicate |
predicate()
A predicate to specify when the new trigger should fire.
|
String |
schedule()
A
cron expression used to specify the schedule (see Time-Based Schedules for
Jobs and Crawlers. |
static Class<? extends CreateTriggerRequest.Builder> |
serializableBuilderClass() |
CreateTriggerRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
TriggerType |
type()
The type of the new trigger.
|
String |
typeString()
The type of the new trigger.
|
requestOverrideConfig
copy
public String name()
The name to assign to the new trigger.
public TriggerType type()
The type of the new trigger.
If the service returns an enum value that is not available in the current SDK version, type
will return
TriggerType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeString()
.
TriggerType
public String typeString()
The type of the new trigger.
If the service returns an enum value that is not available in the current SDK version, type
will return
TriggerType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeString()
.
TriggerType
public String schedule()
A cron
expression used to specify the schedule (see Time-Based Schedules for
Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify:
cron(15 12 * * ? *)
.
cron
expression used to specify the schedule (see Time-Based
Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would
specify: cron(15 12 * * ? *)
.public Predicate predicate()
A predicate to specify when the new trigger should fire.
public List<Action> actions()
The actions initiated by this trigger when it fires.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String description()
A description of the new trigger.
public CreateTriggerRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateTriggerRequest.Builder,CreateTriggerRequest>
toBuilder
in class GlueRequest
public static CreateTriggerRequest.Builder builder()
public static Class<? extends CreateTriggerRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.