com.google.api.services.cloudchannel.v1.model.GoogleCloudChannelV1Entitlement 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;
/**
* An entitlement is a representation of a customer's ability to use a service.
*
* 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 GoogleCloudChannelV1Entitlement extends com.google.api.client.json.GenericJson {
/**
* Association information to other entitlements.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudChannelV1AssociationInfo associationInfo;
/**
* Optional. The billing account resource name that is used to pay for this entitlement.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String billingAccount;
/**
* Commitment settings for a commitment-based Offer. Required for commitment based offers.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudChannelV1CommitmentSettings commitmentSettings;
/**
* Output only. The time at which the entitlement is created.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String createTime;
/**
* Output only. Resource name of an entitlement in the form:
* accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Required. The offer resource name for which the entitlement is to be created. Takes the form:
* accounts/{account_id}/offers/{offer_id}.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String offer;
/**
* Extended entitlement parameters. When creating an entitlement, valid parameter names and values
* are defined in the Offer.parameter_definitions. For Google Workspace, the following Parameters
* may be accepted as input: - max_units: The maximum assignable units for a flexible offer OR -
* num_units: The total commitment for commitment-based offers The response may additionally
* include the following output-only Parameters: - assigned_units: The number of licenses assigned
* to users. For Google Cloud billing subaccounts, the following Parameter may be accepted as
* input: - display_name: The display name of the billing subaccount.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List parameters;
/**
* Optional. Price reference ID for the offer. Optional field only for offers that require
* additional price information. Used to guarantee that the pricing is consistent between quoting
* the offer and placing the order. Yet to be implemented: this field is currently not evaluated
* in the API if populated in a request.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String priceReferenceId;
/**
* Output only. Service provisioning details for the entitlement.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudChannelV1ProvisionedService provisionedService;
/**
* Output only. Current provisioning state of the entitlement.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String provisioningState;
/**
* Optional. This purchase order (PO) information is for resellers to use for their company
* tracking usage. If a purchaseOrderId value is given, it appears in the API responses and shows
* up in the invoice. The property accepts up to 80 plain text characters. This is only supported
* for Google Workspace entitlements.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String purchaseOrderId;
/**
* Output only. Enumerable of all current suspension reasons for an entitlement.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List suspensionReasons;
/**
* Output only. Settings for trial offers.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudChannelV1TrialSettings trialSettings;
/**
* Output only. The time at which the entitlement is updated.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String updateTime;
/**
* Association information to other entitlements.
* @return value or {@code null} for none
*/
public GoogleCloudChannelV1AssociationInfo getAssociationInfo() {
return associationInfo;
}
/**
* Association information to other entitlements.
* @param associationInfo associationInfo or {@code null} for none
*/
public GoogleCloudChannelV1Entitlement setAssociationInfo(GoogleCloudChannelV1AssociationInfo associationInfo) {
this.associationInfo = associationInfo;
return this;
}
/**
* Optional. The billing account resource name that is used to pay for this entitlement.
* @return value or {@code null} for none
*/
public java.lang.String getBillingAccount() {
return billingAccount;
}
/**
* Optional. The billing account resource name that is used to pay for this entitlement.
* @param billingAccount billingAccount or {@code null} for none
*/
public GoogleCloudChannelV1Entitlement setBillingAccount(java.lang.String billingAccount) {
this.billingAccount = billingAccount;
return this;
}
/**
* Commitment settings for a commitment-based Offer. Required for commitment based offers.
* @return value or {@code null} for none
*/
public GoogleCloudChannelV1CommitmentSettings getCommitmentSettings() {
return commitmentSettings;
}
/**
* Commitment settings for a commitment-based Offer. Required for commitment based offers.
* @param commitmentSettings commitmentSettings or {@code null} for none
*/
public GoogleCloudChannelV1Entitlement setCommitmentSettings(GoogleCloudChannelV1CommitmentSettings commitmentSettings) {
this.commitmentSettings = commitmentSettings;
return this;
}
/**
* Output only. The time at which the entitlement is created.
* @return value or {@code null} for none
*/
public String getCreateTime() {
return createTime;
}
/**
* Output only. The time at which the entitlement is created.
* @param createTime createTime or {@code null} for none
*/
public GoogleCloudChannelV1Entitlement setCreateTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* Output only. Resource name of an entitlement in the form:
* accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* Output only. Resource name of an entitlement in the form:
* accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}.
* @param name name or {@code null} for none
*/
public GoogleCloudChannelV1Entitlement setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Required. The offer resource name for which the entitlement is to be created. Takes the form:
* accounts/{account_id}/offers/{offer_id}.
* @return value or {@code null} for none
*/
public java.lang.String getOffer() {
return offer;
}
/**
* Required. The offer resource name for which the entitlement is to be created. Takes the form:
* accounts/{account_id}/offers/{offer_id}.
* @param offer offer or {@code null} for none
*/
public GoogleCloudChannelV1Entitlement setOffer(java.lang.String offer) {
this.offer = offer;
return this;
}
/**
* Extended entitlement parameters. When creating an entitlement, valid parameter names and values
* are defined in the Offer.parameter_definitions. For Google Workspace, the following Parameters
* may be accepted as input: - max_units: The maximum assignable units for a flexible offer OR -
* num_units: The total commitment for commitment-based offers The response may additionally
* include the following output-only Parameters: - assigned_units: The number of licenses assigned
* to users. For Google Cloud billing subaccounts, the following Parameter may be accepted as
* input: - display_name: The display name of the billing subaccount.
* @return value or {@code null} for none
*/
public java.util.List getParameters() {
return parameters;
}
/**
* Extended entitlement parameters. When creating an entitlement, valid parameter names and values
* are defined in the Offer.parameter_definitions. For Google Workspace, the following Parameters
* may be accepted as input: - max_units: The maximum assignable units for a flexible offer OR -
* num_units: The total commitment for commitment-based offers The response may additionally
* include the following output-only Parameters: - assigned_units: The number of licenses assigned
* to users. For Google Cloud billing subaccounts, the following Parameter may be accepted as
* input: - display_name: The display name of the billing subaccount.
* @param parameters parameters or {@code null} for none
*/
public GoogleCloudChannelV1Entitlement setParameters(java.util.List parameters) {
this.parameters = parameters;
return this;
}
/**
* Optional. Price reference ID for the offer. Optional field only for offers that require
* additional price information. Used to guarantee that the pricing is consistent between quoting
* the offer and placing the order. Yet to be implemented: this field is currently not evaluated
* in the API if populated in a request.
* @return value or {@code null} for none
*/
public java.lang.String getPriceReferenceId() {
return priceReferenceId;
}
/**
* Optional. Price reference ID for the offer. Optional field only for offers that require
* additional price information. Used to guarantee that the pricing is consistent between quoting
* the offer and placing the order. Yet to be implemented: this field is currently not evaluated
* in the API if populated in a request.
* @param priceReferenceId priceReferenceId or {@code null} for none
*/
public GoogleCloudChannelV1Entitlement setPriceReferenceId(java.lang.String priceReferenceId) {
this.priceReferenceId = priceReferenceId;
return this;
}
/**
* Output only. Service provisioning details for the entitlement.
* @return value or {@code null} for none
*/
public GoogleCloudChannelV1ProvisionedService getProvisionedService() {
return provisionedService;
}
/**
* Output only. Service provisioning details for the entitlement.
* @param provisionedService provisionedService or {@code null} for none
*/
public GoogleCloudChannelV1Entitlement setProvisionedService(GoogleCloudChannelV1ProvisionedService provisionedService) {
this.provisionedService = provisionedService;
return this;
}
/**
* Output only. Current provisioning state of the entitlement.
* @return value or {@code null} for none
*/
public java.lang.String getProvisioningState() {
return provisioningState;
}
/**
* Output only. Current provisioning state of the entitlement.
* @param provisioningState provisioningState or {@code null} for none
*/
public GoogleCloudChannelV1Entitlement setProvisioningState(java.lang.String provisioningState) {
this.provisioningState = provisioningState;
return this;
}
/**
* Optional. This purchase order (PO) information is for resellers to use for their company
* tracking usage. If a purchaseOrderId value is given, it appears in the API responses and shows
* up in the invoice. The property accepts up to 80 plain text characters. This is only supported
* for Google Workspace entitlements.
* @return value or {@code null} for none
*/
public java.lang.String getPurchaseOrderId() {
return purchaseOrderId;
}
/**
* Optional. This purchase order (PO) information is for resellers to use for their company
* tracking usage. If a purchaseOrderId value is given, it appears in the API responses and shows
* up in the invoice. The property accepts up to 80 plain text characters. This is only supported
* for Google Workspace entitlements.
* @param purchaseOrderId purchaseOrderId or {@code null} for none
*/
public GoogleCloudChannelV1Entitlement setPurchaseOrderId(java.lang.String purchaseOrderId) {
this.purchaseOrderId = purchaseOrderId;
return this;
}
/**
* Output only. Enumerable of all current suspension reasons for an entitlement.
* @return value or {@code null} for none
*/
public java.util.List getSuspensionReasons() {
return suspensionReasons;
}
/**
* Output only. Enumerable of all current suspension reasons for an entitlement.
* @param suspensionReasons suspensionReasons or {@code null} for none
*/
public GoogleCloudChannelV1Entitlement setSuspensionReasons(java.util.List suspensionReasons) {
this.suspensionReasons = suspensionReasons;
return this;
}
/**
* Output only. Settings for trial offers.
* @return value or {@code null} for none
*/
public GoogleCloudChannelV1TrialSettings getTrialSettings() {
return trialSettings;
}
/**
* Output only. Settings for trial offers.
* @param trialSettings trialSettings or {@code null} for none
*/
public GoogleCloudChannelV1Entitlement setTrialSettings(GoogleCloudChannelV1TrialSettings trialSettings) {
this.trialSettings = trialSettings;
return this;
}
/**
* Output only. The time at which the entitlement is updated.
* @return value or {@code null} for none
*/
public String getUpdateTime() {
return updateTime;
}
/**
* Output only. The time at which the entitlement is updated.
* @param updateTime updateTime or {@code null} for none
*/
public GoogleCloudChannelV1Entitlement setUpdateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
@Override
public GoogleCloudChannelV1Entitlement set(String fieldName, Object value) {
return (GoogleCloudChannelV1Entitlement) super.set(fieldName, value);
}
@Override
public GoogleCloudChannelV1Entitlement clone() {
return (GoogleCloudChannelV1Entitlement) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy