@Generated(value="software.amazon.awssdk:codegen") public final 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 of the 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. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateTriggerRequest.Builder> |
serializableBuilderClass() |
Boolean |
startOnCreation()
Set to true to start SCHEDULED and CONDITIONAL triggers when created.
|
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 |
typeAsString()
The type of the new trigger.
|
overrideConfiguration
copy
public String name()
The name of the 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
typeAsString()
.
TriggerType
public String typeAsString()
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
typeAsString()
.
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 * * ? *)
.
This field is required when the trigger type is SCHEDULED.
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 * * ? *)
.
This field is required when the trigger type is SCHEDULED.
public Predicate predicate()
A predicate to specify when the new trigger should fire.
This field is required when the trigger type is CONDITIONAL.
This field is required when the trigger type is CONDITIONAL.
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 Boolean startOnCreation()
Set to true to start SCHEDULED and CONDITIONAL triggers when created. True not supported for ON_DEMAND triggers.
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.