/*
 * 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;

/**
 * Change event entry for Entitlement order history
 *
 * <p> 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:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class GoogleCloudChannelV1EntitlementChange extends com.google.api.client.json.GenericJson {

  /**
   * The Entitlement's activation reason
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String activationReason;

  /**
   * Cancellation reason for the Entitlement.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String cancellationReason;

  /**
   * The change action type.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String changeType;

  /**
   * The submitted time of the change.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String createTime;

  /**
   * Required. 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 entitlement;

  /**
   * Required. Resource name of the Offer at the time of change. 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;

  /**
   * Human-readable identifier that shows what operator made a change. When the operator_type is
   * RESELLER, this is the user's email address. For all other operator types, this is empty.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String operator;

  /**
   * Operator type responsible for the change.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String operatorType;

  /**
   * e.g. purchase_number change reason, entered by CRS.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String otherChangeReason;

  /**
   * Extended parameters, such as: purchase_order_number, gcp_details; internal_correlation_id,
   * long_running_operation_id, order_id; etc.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GoogleCloudChannelV1Parameter> parameters;

  /**
   * Service provisioned for an Entitlement.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudChannelV1ProvisionedService provisionedService;

  /**
   * Suspension reason for the Entitlement.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String suspensionReason;

  /**
   * The Entitlement's activation reason
   * @return value or {@code null} for none
   */
  public java.lang.String getActivationReason() {
    return activationReason;
  }

  /**
   * The Entitlement's activation reason
   * @param activationReason activationReason or {@code null} for none
   */
  public GoogleCloudChannelV1EntitlementChange setActivationReason(java.lang.String activationReason) {
    this.activationReason = activationReason;
    return this;
  }

  /**
   * Cancellation reason for the Entitlement.
   * @return value or {@code null} for none
   */
  public java.lang.String getCancellationReason() {
    return cancellationReason;
  }

  /**
   * Cancellation reason for the Entitlement.
   * @param cancellationReason cancellationReason or {@code null} for none
   */
  public GoogleCloudChannelV1EntitlementChange setCancellationReason(java.lang.String cancellationReason) {
    this.cancellationReason = cancellationReason;
    return this;
  }

  /**
   * The change action type.
   * @return value or {@code null} for none
   */
  public java.lang.String getChangeType() {
    return changeType;
  }

  /**
   * The change action type.
   * @param changeType changeType or {@code null} for none
   */
  public GoogleCloudChannelV1EntitlementChange setChangeType(java.lang.String changeType) {
    this.changeType = changeType;
    return this;
  }

  /**
   * The submitted time of the change.
   * @return value or {@code null} for none
   */
  public String getCreateTime() {
    return createTime;
  }

  /**
   * The submitted time of the change.
   * @param createTime createTime or {@code null} for none
   */
  public GoogleCloudChannelV1EntitlementChange setCreateTime(String createTime) {
    this.createTime = createTime;
    return this;
  }

  /**
   * Required. 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 getEntitlement() {
    return entitlement;
  }

  /**
   * Required. Resource name of an entitlement in the form:
   * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
   * @param entitlement entitlement or {@code null} for none
   */
  public GoogleCloudChannelV1EntitlementChange setEntitlement(java.lang.String entitlement) {
    this.entitlement = entitlement;
    return this;
  }

  /**
   * Required. Resource name of the Offer at the time of change. Takes the form:
   * accounts/{account_id}/offers/{offer_id}.
   * @return value or {@code null} for none
   */
  public java.lang.String getOffer() {
    return offer;
  }

  /**
   * Required. Resource name of the Offer at the time of change. Takes the form:
   * accounts/{account_id}/offers/{offer_id}.
   * @param offer offer or {@code null} for none
   */
  public GoogleCloudChannelV1EntitlementChange setOffer(java.lang.String offer) {
    this.offer = offer;
    return this;
  }

  /**
   * Human-readable identifier that shows what operator made a change. When the operator_type is
   * RESELLER, this is the user's email address. For all other operator types, this is empty.
   * @return value or {@code null} for none
   */
  public java.lang.String getOperator() {
    return operator;
  }

  /**
   * Human-readable identifier that shows what operator made a change. When the operator_type is
   * RESELLER, this is the user's email address. For all other operator types, this is empty.
   * @param operator operator or {@code null} for none
   */
  public GoogleCloudChannelV1EntitlementChange setOperator(java.lang.String operator) {
    this.operator = operator;
    return this;
  }

  /**
   * Operator type responsible for the change.
   * @return value or {@code null} for none
   */
  public java.lang.String getOperatorType() {
    return operatorType;
  }

  /**
   * Operator type responsible for the change.
   * @param operatorType operatorType or {@code null} for none
   */
  public GoogleCloudChannelV1EntitlementChange setOperatorType(java.lang.String operatorType) {
    this.operatorType = operatorType;
    return this;
  }

  /**
   * e.g. purchase_number change reason, entered by CRS.
   * @return value or {@code null} for none
   */
  public java.lang.String getOtherChangeReason() {
    return otherChangeReason;
  }

  /**
   * e.g. purchase_number change reason, entered by CRS.
   * @param otherChangeReason otherChangeReason or {@code null} for none
   */
  public GoogleCloudChannelV1EntitlementChange setOtherChangeReason(java.lang.String otherChangeReason) {
    this.otherChangeReason = otherChangeReason;
    return this;
  }

  /**
   * Extended parameters, such as: purchase_order_number, gcp_details; internal_correlation_id,
   * long_running_operation_id, order_id; etc.
   * @return value or {@code null} for none
   */
  public java.util.List<GoogleCloudChannelV1Parameter> getParameters() {
    return parameters;
  }

  /**
   * Extended parameters, such as: purchase_order_number, gcp_details; internal_correlation_id,
   * long_running_operation_id, order_id; etc.
   * @param parameters parameters or {@code null} for none
   */
  public GoogleCloudChannelV1EntitlementChange setParameters(java.util.List<GoogleCloudChannelV1Parameter> parameters) {
    this.parameters = parameters;
    return this;
  }

  /**
   * Service provisioned for an Entitlement.
   * @return value or {@code null} for none
   */
  public GoogleCloudChannelV1ProvisionedService getProvisionedService() {
    return provisionedService;
  }

  /**
   * Service provisioned for an Entitlement.
   * @param provisionedService provisionedService or {@code null} for none
   */
  public GoogleCloudChannelV1EntitlementChange setProvisionedService(GoogleCloudChannelV1ProvisionedService provisionedService) {
    this.provisionedService = provisionedService;
    return this;
  }

  /**
   * Suspension reason for the Entitlement.
   * @return value or {@code null} for none
   */
  public java.lang.String getSuspensionReason() {
    return suspensionReason;
  }

  /**
   * Suspension reason for the Entitlement.
   * @param suspensionReason suspensionReason or {@code null} for none
   */
  public GoogleCloudChannelV1EntitlementChange setSuspensionReason(java.lang.String suspensionReason) {
    this.suspensionReason = suspensionReason;
    return this;
  }

  @Override
  public GoogleCloudChannelV1EntitlementChange set(String fieldName, Object value) {
    return (GoogleCloudChannelV1EntitlementChange) super.set(fieldName, value);
  }

  @Override
  public GoogleCloudChannelV1EntitlementChange clone() {
    return (GoogleCloudChannelV1EntitlementChange) super.clone();
  }

}
