/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.glue.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Defines an action to be initiated by a trigger. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Action implements Serializable, Cloneable, StructuredPojo { /** ** The name of a job to be run. *
*/ private String jobName; /** ** The job arguments used when this trigger fires. For this job run, they replace the default arguments set in the * job definition itself. *
** You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself * consumes. *
** For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in * Python topic in the developer guide. *
** For information about the key-value pairs that Glue consumes to set up your job, see the Special Parameters * Used by Glue topic in the developer guide. *
*/ private java.util.Map
* The JobRun
timeout in minutes. This is the maximum time that a job run can consume resources before
* it is terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours). This overrides
* the timeout value set in the parent job.
*
* The name of the SecurityConfiguration
structure to be used with this action.
*
* Specifies configuration properties of a job run notification. *
*/ private NotificationProperty notificationProperty; /** ** The name of the crawler to be used with this action. *
*/ private String crawlerName; /** ** The name of a job to be run. *
* * @param jobName * The name of a job to be run. */ public void setJobName(String jobName) { this.jobName = jobName; } /** ** The name of a job to be run. *
* * @return The name of a job to be run. */ public String getJobName() { return this.jobName; } /** ** The name of a job to be run. *
* * @param jobName * The name of a job to be run. * @return Returns a reference to this object so that method calls can be chained together. */ public Action withJobName(String jobName) { setJobName(jobName); return this; } /** ** The job arguments used when this trigger fires. For this job run, they replace the default arguments set in the * job definition itself. *
** You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself * consumes. *
** For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in * Python topic in the developer guide. *
** For information about the key-value pairs that Glue consumes to set up your job, see the Special Parameters * Used by Glue topic in the developer guide. *
* * @return The job arguments used when this trigger fires. For this job run, they replace the default arguments set * in the job definition itself. ** You can specify arguments here that your own job-execution script consumes, as well as arguments that * Glue itself consumes. *
** For information about how to specify and consume your own Job arguments, see the Calling Glue * APIs in Python topic in the developer guide. *
*
* For information about the key-value pairs that Glue consumes to set up your job, see the Special
* Parameters Used by Glue topic in the developer guide.
*/
public java.util.Map
* The job arguments used when this trigger fires. For this job run, they replace the default arguments set in the
* job definition itself.
*
* You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself
* consumes.
*
* For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in
* Python topic in the developer guide.
*
* For information about the key-value pairs that Glue consumes to set up your job, see the Special Parameters
* Used by Glue topic in the developer guide.
*
* You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue * itself consumes. *
** For information about how to specify and consume your own Job arguments, see the Calling Glue * APIs in Python topic in the developer guide. *
*
* For information about the key-value pairs that Glue consumes to set up your job, see the Special
* Parameters Used by Glue topic in the developer guide.
*/
public void setArguments(java.util.Map
* The job arguments used when this trigger fires. For this job run, they replace the default arguments set in the
* job definition itself.
*
* You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself
* consumes.
*
* For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in
* Python topic in the developer guide.
*
* For information about the key-value pairs that Glue consumes to set up your job, see the Special Parameters
* Used by Glue topic in the developer guide.
*
* You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue * itself consumes. *
** For information about how to specify and consume your own Job arguments, see the Calling Glue * APIs in Python topic in the developer guide. *
*
* For information about the key-value pairs that Glue consumes to set up your job, see the Special
* Parameters Used by Glue topic in the developer guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Action withArguments(java.util.Map
* The
* The
* The
* The name of the
* The name of the
* The name of the
* Specifies configuration properties of a job run notification.
*
* Specifies configuration properties of a job run notification.
*
* Specifies configuration properties of a job run notification.
*
* The name of the crawler to be used with this action.
*
* The name of the crawler to be used with this action.
*
* The name of the crawler to be used with this action.
* JobRun
timeout in minutes. This is the maximum time that a job run can consume resources before
* it is terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours). This overrides
* the timeout value set in the parent job.
* JobRun
timeout in minutes. This is the maximum time that a job run can consume resources
* before it is terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours).
* This overrides the timeout value set in the parent job.
*/
public void setTimeout(Integer timeout) {
this.timeout = timeout;
}
/**
* JobRun
timeout in minutes. This is the maximum time that a job run can consume resources before
* it is terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours). This overrides
* the timeout value set in the parent job.
* JobRun
timeout in minutes. This is the maximum time that a job run can consume resources
* before it is terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours).
* This overrides the timeout value set in the parent job.
*/
public Integer getTimeout() {
return this.timeout;
}
/**
* JobRun
timeout in minutes. This is the maximum time that a job run can consume resources before
* it is terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours). This overrides
* the timeout value set in the parent job.
* JobRun
timeout in minutes. This is the maximum time that a job run can consume resources
* before it is terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours).
* This overrides the timeout value set in the parent job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Action withTimeout(Integer timeout) {
setTimeout(timeout);
return this;
}
/**
* SecurityConfiguration
structure to be used with this action.
* SecurityConfiguration
structure to be used with this action.
*/
public void setSecurityConfiguration(String securityConfiguration) {
this.securityConfiguration = securityConfiguration;
}
/**
* SecurityConfiguration
structure to be used with this action.
* SecurityConfiguration
structure to be used with this action.
*/
public String getSecurityConfiguration() {
return this.securityConfiguration;
}
/**
* SecurityConfiguration
structure to be used with this action.
* SecurityConfiguration
structure to be used with this action.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Action withSecurityConfiguration(String securityConfiguration) {
setSecurityConfiguration(securityConfiguration);
return this;
}
/**
*