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

com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1Promotion Maven / Gradle / Ivy

There is a newer version: v1-rev20241211-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.paymentsresellersubscription.v1.model;

/**
 * A Promotion resource that defines a promotion for a subscription that can be resold.
 *
 * 

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 Payments Reseller Subscription 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 GoogleCloudPaymentsResellerSubscriptionV1Promotion extends com.google.api.client.json.GenericJson { /** * Output only. The product ids this promotion can be applied to. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List applicableProducts; /** * Optional. Specifies the end time (exclusive) of the period that the promotion is available in. * If unset, the promotion is available indefinitely. * The value may be {@code null}. */ @com.google.api.client.util.Key private String endTime; /** * Optional. Specifies the duration of the free trial of the subscription when promotion_type is * PROMOTION_TYPE_FREE_TRIAL * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudPaymentsResellerSubscriptionV1Duration freeTrialDuration; /** * Optional. Specifies the introductory pricing details when the promotion_type is * PROMOTION_TYPE_INTRODUCTORY_PRICING. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails introductoryPricingDetails; /** * Identifier. Response only. Resource name of the subscription promotion. It will have the format * of "partners/{partner_id}/promotion/{promotion_id}" * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Output only. Output Only. Specifies the type of the promotion. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String promotionType; /** * Output only. 2-letter ISO region code where the promotion is available in. Ex. "US" Please * refers to: https://en.wikipedia.org/wiki/ISO_3166-1 * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List regionCodes; /** * Optional. Specifies the start time (inclusive) of the period that the promotion is available * in. * The value may be {@code null}. */ @com.google.api.client.util.Key private String startTime; /** * Output only. Localized human readable name of the promotion. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List titles; /** * Output only. The product ids this promotion can be applied to. * @return value or {@code null} for none */ public java.util.List getApplicableProducts() { return applicableProducts; } /** * Output only. The product ids this promotion can be applied to. * @param applicableProducts applicableProducts or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1Promotion setApplicableProducts(java.util.List applicableProducts) { this.applicableProducts = applicableProducts; return this; } /** * Optional. Specifies the end time (exclusive) of the period that the promotion is available in. * If unset, the promotion is available indefinitely. * @return value or {@code null} for none */ public String getEndTime() { return endTime; } /** * Optional. Specifies the end time (exclusive) of the period that the promotion is available in. * If unset, the promotion is available indefinitely. * @param endTime endTime or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1Promotion setEndTime(String endTime) { this.endTime = endTime; return this; } /** * Optional. Specifies the duration of the free trial of the subscription when promotion_type is * PROMOTION_TYPE_FREE_TRIAL * @return value or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1Duration getFreeTrialDuration() { return freeTrialDuration; } /** * Optional. Specifies the duration of the free trial of the subscription when promotion_type is * PROMOTION_TYPE_FREE_TRIAL * @param freeTrialDuration freeTrialDuration or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1Promotion setFreeTrialDuration(GoogleCloudPaymentsResellerSubscriptionV1Duration freeTrialDuration) { this.freeTrialDuration = freeTrialDuration; return this; } /** * Optional. Specifies the introductory pricing details when the promotion_type is * PROMOTION_TYPE_INTRODUCTORY_PRICING. * @return value or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails getIntroductoryPricingDetails() { return introductoryPricingDetails; } /** * Optional. Specifies the introductory pricing details when the promotion_type is * PROMOTION_TYPE_INTRODUCTORY_PRICING. * @param introductoryPricingDetails introductoryPricingDetails or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1Promotion setIntroductoryPricingDetails(GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails introductoryPricingDetails) { this.introductoryPricingDetails = introductoryPricingDetails; return this; } /** * Identifier. Response only. Resource name of the subscription promotion. It will have the format * of "partners/{partner_id}/promotion/{promotion_id}" * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Identifier. Response only. Resource name of the subscription promotion. It will have the format * of "partners/{partner_id}/promotion/{promotion_id}" * @param name name or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1Promotion setName(java.lang.String name) { this.name = name; return this; } /** * Output only. Output Only. Specifies the type of the promotion. * @return value or {@code null} for none */ public java.lang.String getPromotionType() { return promotionType; } /** * Output only. Output Only. Specifies the type of the promotion. * @param promotionType promotionType or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1Promotion setPromotionType(java.lang.String promotionType) { this.promotionType = promotionType; return this; } /** * Output only. 2-letter ISO region code where the promotion is available in. Ex. "US" Please * refers to: https://en.wikipedia.org/wiki/ISO_3166-1 * @return value or {@code null} for none */ public java.util.List getRegionCodes() { return regionCodes; } /** * Output only. 2-letter ISO region code where the promotion is available in. Ex. "US" Please * refers to: https://en.wikipedia.org/wiki/ISO_3166-1 * @param regionCodes regionCodes or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1Promotion setRegionCodes(java.util.List regionCodes) { this.regionCodes = regionCodes; return this; } /** * Optional. Specifies the start time (inclusive) of the period that the promotion is available * in. * @return value or {@code null} for none */ public String getStartTime() { return startTime; } /** * Optional. Specifies the start time (inclusive) of the period that the promotion is available * in. * @param startTime startTime or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1Promotion setStartTime(String startTime) { this.startTime = startTime; return this; } /** * Output only. Localized human readable name of the promotion. * @return value or {@code null} for none */ public java.util.List getTitles() { return titles; } /** * Output only. Localized human readable name of the promotion. * @param titles titles or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1Promotion setTitles(java.util.List titles) { this.titles = titles; return this; } @Override public GoogleCloudPaymentsResellerSubscriptionV1Promotion set(String fieldName, Object value) { return (GoogleCloudPaymentsResellerSubscriptionV1Promotion) super.set(fieldName, value); } @Override public GoogleCloudPaymentsResellerSubscriptionV1Promotion clone() { return (GoogleCloudPaymentsResellerSubscriptionV1Promotion) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy