com.google.api.services.cloudchannel.v1.model.GoogleCloudChannelV1PricePhase 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.cloudchannel.v1.model;
/**
* Specifies the price by the duration of months. For example, a 20% discount for the first six
* months, then a 10% discount starting on the seventh month.
*
* 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 GoogleCloudChannelV1PricePhase extends com.google.api.client.json.GenericJson {
/**
* Defines first period for the phase.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer firstPeriod;
/**
* Defines first period for the phase.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer lastPeriod;
/**
* Defines the phase period type.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String periodType;
/**
* Price of the phase. Present if there are no price tiers.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudChannelV1Price price;
/**
* Price by the resource tiers.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List priceTiers;
/**
* Defines first period for the phase.
* @return value or {@code null} for none
*/
public java.lang.Integer getFirstPeriod() {
return firstPeriod;
}
/**
* Defines first period for the phase.
* @param firstPeriod firstPeriod or {@code null} for none
*/
public GoogleCloudChannelV1PricePhase setFirstPeriod(java.lang.Integer firstPeriod) {
this.firstPeriod = firstPeriod;
return this;
}
/**
* Defines first period for the phase.
* @return value or {@code null} for none
*/
public java.lang.Integer getLastPeriod() {
return lastPeriod;
}
/**
* Defines first period for the phase.
* @param lastPeriod lastPeriod or {@code null} for none
*/
public GoogleCloudChannelV1PricePhase setLastPeriod(java.lang.Integer lastPeriod) {
this.lastPeriod = lastPeriod;
return this;
}
/**
* Defines the phase period type.
* @return value or {@code null} for none
*/
public java.lang.String getPeriodType() {
return periodType;
}
/**
* Defines the phase period type.
* @param periodType periodType or {@code null} for none
*/
public GoogleCloudChannelV1PricePhase setPeriodType(java.lang.String periodType) {
this.periodType = periodType;
return this;
}
/**
* Price of the phase. Present if there are no price tiers.
* @return value or {@code null} for none
*/
public GoogleCloudChannelV1Price getPrice() {
return price;
}
/**
* Price of the phase. Present if there are no price tiers.
* @param price price or {@code null} for none
*/
public GoogleCloudChannelV1PricePhase setPrice(GoogleCloudChannelV1Price price) {
this.price = price;
return this;
}
/**
* Price by the resource tiers.
* @return value or {@code null} for none
*/
public java.util.List getPriceTiers() {
return priceTiers;
}
/**
* Price by the resource tiers.
* @param priceTiers priceTiers or {@code null} for none
*/
public GoogleCloudChannelV1PricePhase setPriceTiers(java.util.List priceTiers) {
this.priceTiers = priceTiers;
return this;
}
@Override
public GoogleCloudChannelV1PricePhase set(String fieldName, Object value) {
return (GoogleCloudChannelV1PricePhase) super.set(fieldName, value);
}
@Override
public GoogleCloudChannelV1PricePhase clone() {
return (GoogleCloudChannelV1PricePhase) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy