com.google.api.services.backupdr.v1.model.NodeAffinity Maven / Gradle / Ivy
/*
* 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.backupdr.v1.model;
/**
* Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.
*
* 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 Backup and DR Service 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 NodeAffinity extends com.google.api.client.json.GenericJson {
/**
* Optional. Corresponds to the label key of Node resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String key;
/**
* Optional. Defines the operation of node selection.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String operator;
/**
* Optional. Corresponds to the label values of Node resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List values;
/**
* Optional. Corresponds to the label key of Node resource.
* @return value or {@code null} for none
*/
public java.lang.String getKey() {
return key;
}
/**
* Optional. Corresponds to the label key of Node resource.
* @param key key or {@code null} for none
*/
public NodeAffinity setKey(java.lang.String key) {
this.key = key;
return this;
}
/**
* Optional. Defines the operation of node selection.
* @return value or {@code null} for none
*/
public java.lang.String getOperator() {
return operator;
}
/**
* Optional. Defines the operation of node selection.
* @param operator operator or {@code null} for none
*/
public NodeAffinity setOperator(java.lang.String operator) {
this.operator = operator;
return this;
}
/**
* Optional. Corresponds to the label values of Node resource.
* @return value or {@code null} for none
*/
public java.util.List getValues() {
return values;
}
/**
* Optional. Corresponds to the label values of Node resource.
* @param values values or {@code null} for none
*/
public NodeAffinity setValues(java.util.List values) {
this.values = values;
return this;
}
@Override
public NodeAffinity set(String fieldName, Object value) {
return (NodeAffinity) super.set(fieldName, value);
}
@Override
public NodeAffinity clone() {
return (NodeAffinity) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy