/*
 * 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.gkeonprem.v1.model;

/**
 * Message for enrolling an existing VMware cluster to the Anthos On-Prem API.
 *
 * <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 Anthos On-Prem 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 EnrollVmwareClusterRequest extends com.google.api.client.json.GenericJson {

  /**
   * Required. The admin cluster this VMware user cluster belongs to. This is the full resource name
   * of the admin cluster's fleet membership. In the future, references to other resource types
   * might be allowed if admin clusters are modeled as their own resources.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String adminClusterMembership;

  /**
   * Optional. The object name of the VMware OnPremUserCluster custom resource on the associated
   * admin cluster. This field is used to support conflicting resource names when enrolling existing
   * clusters to the API. When not provided, this field will resolve to the vmware_cluster_id.
   * Otherwise, it must match the object name of the VMware OnPremUserCluster custom resource. It is
   * not modifiable outside / beyond the enrollment operation.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String localName;

  /**
   * Validate the request without actually doing any updates.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean validateOnly;

  /**
   * User provided OnePlatform identifier that is used as part of the resource name. This must be
   * unique among all GKE on-prem clusters within a project and location and will return a 409 if
   * the cluster already exists. (https://tools.ietf.org/html/rfc1123) format.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String vmwareClusterId;

  /**
   * Required. The admin cluster this VMware user cluster belongs to. This is the full resource name
   * of the admin cluster's fleet membership. In the future, references to other resource types
   * might be allowed if admin clusters are modeled as their own resources.
   * @return value or {@code null} for none
   */
  public java.lang.String getAdminClusterMembership() {
    return adminClusterMembership;
  }

  /**
   * Required. The admin cluster this VMware user cluster belongs to. This is the full resource name
   * of the admin cluster's fleet membership. In the future, references to other resource types
   * might be allowed if admin clusters are modeled as their own resources.
   * @param adminClusterMembership adminClusterMembership or {@code null} for none
   */
  public EnrollVmwareClusterRequest setAdminClusterMembership(java.lang.String adminClusterMembership) {
    this.adminClusterMembership = adminClusterMembership;
    return this;
  }

  /**
   * Optional. The object name of the VMware OnPremUserCluster custom resource on the associated
   * admin cluster. This field is used to support conflicting resource names when enrolling existing
   * clusters to the API. When not provided, this field will resolve to the vmware_cluster_id.
   * Otherwise, it must match the object name of the VMware OnPremUserCluster custom resource. It is
   * not modifiable outside / beyond the enrollment operation.
   * @return value or {@code null} for none
   */
  public java.lang.String getLocalName() {
    return localName;
  }

  /**
   * Optional. The object name of the VMware OnPremUserCluster custom resource on the associated
   * admin cluster. This field is used to support conflicting resource names when enrolling existing
   * clusters to the API. When not provided, this field will resolve to the vmware_cluster_id.
   * Otherwise, it must match the object name of the VMware OnPremUserCluster custom resource. It is
   * not modifiable outside / beyond the enrollment operation.
   * @param localName localName or {@code null} for none
   */
  public EnrollVmwareClusterRequest setLocalName(java.lang.String localName) {
    this.localName = localName;
    return this;
  }

  /**
   * Validate the request without actually doing any updates.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getValidateOnly() {
    return validateOnly;
  }

  /**
   * Validate the request without actually doing any updates.
   * @param validateOnly validateOnly or {@code null} for none
   */
  public EnrollVmwareClusterRequest setValidateOnly(java.lang.Boolean validateOnly) {
    this.validateOnly = validateOnly;
    return this;
  }

  /**
   * User provided OnePlatform identifier that is used as part of the resource name. This must be
   * unique among all GKE on-prem clusters within a project and location and will return a 409 if
   * the cluster already exists. (https://tools.ietf.org/html/rfc1123) format.
   * @return value or {@code null} for none
   */
  public java.lang.String getVmwareClusterId() {
    return vmwareClusterId;
  }

  /**
   * User provided OnePlatform identifier that is used as part of the resource name. This must be
   * unique among all GKE on-prem clusters within a project and location and will return a 409 if
   * the cluster already exists. (https://tools.ietf.org/html/rfc1123) format.
   * @param vmwareClusterId vmwareClusterId or {@code null} for none
   */
  public EnrollVmwareClusterRequest setVmwareClusterId(java.lang.String vmwareClusterId) {
    this.vmwareClusterId = vmwareClusterId;
    return this;
  }

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

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

}
