All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.cloudchannel.v1.model.GoogleCloudChannelV1ParameterDefinition Maven / Gradle / Ivy

There is a newer version: v1-rev20241202-2.0.0
Show 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.cloudchannel.v1.model;

/**
 * Parameter's definition. Specifies what parameter is required to use the current Offer to
 * purchase.
 *
 * 

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 Channel 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 GoogleCloudChannelV1ParameterDefinition extends com.google.api.client.json.GenericJson { /** * If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, * ...] Applicable to STRING parameter type. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List allowedValues; /** * Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when * purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudChannelV1Value maxValue; /** * Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when * purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudChannelV1Value minValue; /** * Name of the parameter. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * If set to true, parameter is optional to purchase this Offer. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean optional; /** * Data type of the parameter. Minimal value, Maximum value and allowed values will use specified * data type here. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String parameterType; /** * If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, * ...] Applicable to STRING parameter type. * @return value or {@code null} for none */ public java.util.List getAllowedValues() { return allowedValues; } /** * If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, * ...] Applicable to STRING parameter type. * @param allowedValues allowedValues or {@code null} for none */ public GoogleCloudChannelV1ParameterDefinition setAllowedValues(java.util.List allowedValues) { this.allowedValues = allowedValues; return this; } /** * Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when * purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types. * @return value or {@code null} for none */ public GoogleCloudChannelV1Value getMaxValue() { return maxValue; } /** * Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when * purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types. * @param maxValue maxValue or {@code null} for none */ public GoogleCloudChannelV1ParameterDefinition setMaxValue(GoogleCloudChannelV1Value maxValue) { this.maxValue = maxValue; return this; } /** * Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when * purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types. * @return value or {@code null} for none */ public GoogleCloudChannelV1Value getMinValue() { return minValue; } /** * Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when * purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types. * @param minValue minValue or {@code null} for none */ public GoogleCloudChannelV1ParameterDefinition setMinValue(GoogleCloudChannelV1Value minValue) { this.minValue = minValue; return this; } /** * Name of the parameter. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Name of the parameter. * @param name name or {@code null} for none */ public GoogleCloudChannelV1ParameterDefinition setName(java.lang.String name) { this.name = name; return this; } /** * If set to true, parameter is optional to purchase this Offer. * @return value or {@code null} for none */ public java.lang.Boolean getOptional() { return optional; } /** * If set to true, parameter is optional to purchase this Offer. * @param optional optional or {@code null} for none */ public GoogleCloudChannelV1ParameterDefinition setOptional(java.lang.Boolean optional) { this.optional = optional; return this; } /** * Data type of the parameter. Minimal value, Maximum value and allowed values will use specified * data type here. * @return value or {@code null} for none */ public java.lang.String getParameterType() { return parameterType; } /** * Data type of the parameter. Minimal value, Maximum value and allowed values will use specified * data type here. * @param parameterType parameterType or {@code null} for none */ public GoogleCloudChannelV1ParameterDefinition setParameterType(java.lang.String parameterType) { this.parameterType = parameterType; return this; } @Override public GoogleCloudChannelV1ParameterDefinition set(String fieldName, Object value) { return (GoogleCloudChannelV1ParameterDefinition) super.set(fieldName, value); } @Override public GoogleCloudChannelV1ParameterDefinition clone() { return (GoogleCloudChannelV1ParameterDefinition) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy