com.google.api.services.composer.v1.model.ExecuteAirflowCommandRequest Maven / Gradle / Ivy
The newest version!
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* 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.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.composer.v1.model;
/**
* Execute Airflow Command request.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Composer API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ExecuteAirflowCommandRequest extends com.google.api.client.json.GenericJson {
/**
* Airflow command.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String command;
/**
* Parameters for the Airflow command/subcommand as an array of arguments. It may contain
* positional arguments like `["my-dag-id"]`, key-value parameters like `["--foo=bar"]` or `["--
* foo","bar"]`, or other flags like `["-f"]`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List parameters;
/**
* Airflow subcommand.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String subcommand;
/**
* Airflow command.
* @return value or {@code null} for none
*/
public java.lang.String getCommand() {
return command;
}
/**
* Airflow command.
* @param command command or {@code null} for none
*/
public ExecuteAirflowCommandRequest setCommand(java.lang.String command) {
this.command = command;
return this;
}
/**
* Parameters for the Airflow command/subcommand as an array of arguments. It may contain
* positional arguments like `["my-dag-id"]`, key-value parameters like `["--foo=bar"]` or `["--
* foo","bar"]`, or other flags like `["-f"]`.
* @return value or {@code null} for none
*/
public java.util.List getParameters() {
return parameters;
}
/**
* Parameters for the Airflow command/subcommand as an array of arguments. It may contain
* positional arguments like `["my-dag-id"]`, key-value parameters like `["--foo=bar"]` or `["--
* foo","bar"]`, or other flags like `["-f"]`.
* @param parameters parameters or {@code null} for none
*/
public ExecuteAirflowCommandRequest setParameters(java.util.List parameters) {
this.parameters = parameters;
return this;
}
/**
* Airflow subcommand.
* @return value or {@code null} for none
*/
public java.lang.String getSubcommand() {
return subcommand;
}
/**
* Airflow subcommand.
* @param subcommand subcommand or {@code null} for none
*/
public ExecuteAirflowCommandRequest setSubcommand(java.lang.String subcommand) {
this.subcommand = subcommand;
return this;
}
@Override
public ExecuteAirflowCommandRequest set(String fieldName, Object value) {
return (ExecuteAirflowCommandRequest) super.set(fieldName, value);
}
@Override
public ExecuteAirflowCommandRequest clone() {
return (ExecuteAirflowCommandRequest) super.clone();
}
}