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

/**
 * Model definition for GoogleCloudApigeeV1Environment.
 *
 * <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 Apigee 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 GoogleCloudApigeeV1Environment extends com.google.api.client.json.GenericJson {

  /**
   * Optional. API Proxy type supported by the environment. The type can be set when creating the
   * Environment and cannot be changed.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String apiProxyType;

  /**
   * Output only. Creation time of this environment as milliseconds since epoch.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long createdAt;

  /**
   * Optional. Deployment type supported by the environment. The deployment type can be set when
   * creating the environment and cannot be changed. When you enable archive deployment, you will be
   * **prevented from performing** a [subset of actions](/apigee/docs/api-platform/local-
   * development/overview#prevented-actions) within the environment, including: * Managing the
   * deployment of API proxy or shared flow revisions * Creating, updating, or deleting resource
   * files * Creating, updating, or deleting target servers
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String deploymentType;

  /**
   * Optional. Description of the environment.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String description;

  /**
   * Optional. Display name for this environment.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String displayName;

  /**
   * Optional. Url of the forward proxy to be applied to the runtime instances in this environment.
   * Must be in the format of {scheme}://{hostname}:{port}. Note that scheme must be one of "http"
   * or "https", and port must be supplied.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String forwardProxyUri;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean hasAttachedFlowHooks;

  /**
   * Output only. Last modification time of this environment as milliseconds since epoch.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long lastModifiedAt;

  /**
   * Required. Name of the environment. Values must match the regular expression
   * `^[.\\p{Alnum}-_]{1,255}$`
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * Optional. NodeConfig of the environment.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudApigeeV1NodeConfig nodeConfig;

  /**
   * Optional. Key-value pairs that may be used for customizing the environment.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudApigeeV1Properties properties;

  /**
   * Output only. State of the environment. Values other than ACTIVE means the resource is not ready
   * to use.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String state;

  /**
   * Optional. EnvironmentType selected for the environment.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String type;

  /**
   * Optional. API Proxy type supported by the environment. The type can be set when creating the
   * Environment and cannot be changed.
   * @return value or {@code null} for none
   */
  public java.lang.String getApiProxyType() {
    return apiProxyType;
  }

  /**
   * Optional. API Proxy type supported by the environment. The type can be set when creating the
   * Environment and cannot be changed.
   * @param apiProxyType apiProxyType or {@code null} for none
   */
  public GoogleCloudApigeeV1Environment setApiProxyType(java.lang.String apiProxyType) {
    this.apiProxyType = apiProxyType;
    return this;
  }

  /**
   * Output only. Creation time of this environment as milliseconds since epoch.
   * @return value or {@code null} for none
   */
  public java.lang.Long getCreatedAt() {
    return createdAt;
  }

  /**
   * Output only. Creation time of this environment as milliseconds since epoch.
   * @param createdAt createdAt or {@code null} for none
   */
  public GoogleCloudApigeeV1Environment setCreatedAt(java.lang.Long createdAt) {
    this.createdAt = createdAt;
    return this;
  }

  /**
   * Optional. Deployment type supported by the environment. The deployment type can be set when
   * creating the environment and cannot be changed. When you enable archive deployment, you will be
   * **prevented from performing** a [subset of actions](/apigee/docs/api-platform/local-
   * development/overview#prevented-actions) within the environment, including: * Managing the
   * deployment of API proxy or shared flow revisions * Creating, updating, or deleting resource
   * files * Creating, updating, or deleting target servers
   * @return value or {@code null} for none
   */
  public java.lang.String getDeploymentType() {
    return deploymentType;
  }

  /**
   * Optional. Deployment type supported by the environment. The deployment type can be set when
   * creating the environment and cannot be changed. When you enable archive deployment, you will be
   * **prevented from performing** a [subset of actions](/apigee/docs/api-platform/local-
   * development/overview#prevented-actions) within the environment, including: * Managing the
   * deployment of API proxy or shared flow revisions * Creating, updating, or deleting resource
   * files * Creating, updating, or deleting target servers
   * @param deploymentType deploymentType or {@code null} for none
   */
  public GoogleCloudApigeeV1Environment setDeploymentType(java.lang.String deploymentType) {
    this.deploymentType = deploymentType;
    return this;
  }

  /**
   * Optional. Description of the environment.
   * @return value or {@code null} for none
   */
  public java.lang.String getDescription() {
    return description;
  }

  /**
   * Optional. Description of the environment.
   * @param description description or {@code null} for none
   */
  public GoogleCloudApigeeV1Environment setDescription(java.lang.String description) {
    this.description = description;
    return this;
  }

  /**
   * Optional. Display name for this environment.
   * @return value or {@code null} for none
   */
  public java.lang.String getDisplayName() {
    return displayName;
  }

  /**
   * Optional. Display name for this environment.
   * @param displayName displayName or {@code null} for none
   */
  public GoogleCloudApigeeV1Environment setDisplayName(java.lang.String displayName) {
    this.displayName = displayName;
    return this;
  }

  /**
   * Optional. Url of the forward proxy to be applied to the runtime instances in this environment.
   * Must be in the format of {scheme}://{hostname}:{port}. Note that scheme must be one of "http"
   * or "https", and port must be supplied.
   * @return value or {@code null} for none
   */
  public java.lang.String getForwardProxyUri() {
    return forwardProxyUri;
  }

  /**
   * Optional. Url of the forward proxy to be applied to the runtime instances in this environment.
   * Must be in the format of {scheme}://{hostname}:{port}. Note that scheme must be one of "http"
   * or "https", and port must be supplied.
   * @param forwardProxyUri forwardProxyUri or {@code null} for none
   */
  public GoogleCloudApigeeV1Environment setForwardProxyUri(java.lang.String forwardProxyUri) {
    this.forwardProxyUri = forwardProxyUri;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getHasAttachedFlowHooks() {
    return hasAttachedFlowHooks;
  }

  /**
   * @param hasAttachedFlowHooks hasAttachedFlowHooks or {@code null} for none
   */
  public GoogleCloudApigeeV1Environment setHasAttachedFlowHooks(java.lang.Boolean hasAttachedFlowHooks) {
    this.hasAttachedFlowHooks = hasAttachedFlowHooks;
    return this;
  }

  /**
   * Output only. Last modification time of this environment as milliseconds since epoch.
   * @return value or {@code null} for none
   */
  public java.lang.Long getLastModifiedAt() {
    return lastModifiedAt;
  }

  /**
   * Output only. Last modification time of this environment as milliseconds since epoch.
   * @param lastModifiedAt lastModifiedAt or {@code null} for none
   */
  public GoogleCloudApigeeV1Environment setLastModifiedAt(java.lang.Long lastModifiedAt) {
    this.lastModifiedAt = lastModifiedAt;
    return this;
  }

  /**
   * Required. Name of the environment. Values must match the regular expression
   * `^[.\\p{Alnum}-_]{1,255}$`
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * Required. Name of the environment. Values must match the regular expression
   * `^[.\\p{Alnum}-_]{1,255}$`
   * @param name name or {@code null} for none
   */
  public GoogleCloudApigeeV1Environment setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * Optional. NodeConfig of the environment.
   * @return value or {@code null} for none
   */
  public GoogleCloudApigeeV1NodeConfig getNodeConfig() {
    return nodeConfig;
  }

  /**
   * Optional. NodeConfig of the environment.
   * @param nodeConfig nodeConfig or {@code null} for none
   */
  public GoogleCloudApigeeV1Environment setNodeConfig(GoogleCloudApigeeV1NodeConfig nodeConfig) {
    this.nodeConfig = nodeConfig;
    return this;
  }

  /**
   * Optional. Key-value pairs that may be used for customizing the environment.
   * @return value or {@code null} for none
   */
  public GoogleCloudApigeeV1Properties getProperties() {
    return properties;
  }

  /**
   * Optional. Key-value pairs that may be used for customizing the environment.
   * @param properties properties or {@code null} for none
   */
  public GoogleCloudApigeeV1Environment setProperties(GoogleCloudApigeeV1Properties properties) {
    this.properties = properties;
    return this;
  }

  /**
   * Output only. State of the environment. Values other than ACTIVE means the resource is not ready
   * to use.
   * @return value or {@code null} for none
   */
  public java.lang.String getState() {
    return state;
  }

  /**
   * Output only. State of the environment. Values other than ACTIVE means the resource is not ready
   * to use.
   * @param state state or {@code null} for none
   */
  public GoogleCloudApigeeV1Environment setState(java.lang.String state) {
    this.state = state;
    return this;
  }

  /**
   * Optional. EnvironmentType selected for the environment.
   * @return value or {@code null} for none
   */
  public java.lang.String getType() {
    return type;
  }

  /**
   * Optional. EnvironmentType selected for the environment.
   * @param type type or {@code null} for none
   */
  public GoogleCloudApigeeV1Environment setType(java.lang.String type) {
    this.type = type;
    return this;
  }

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

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

}
