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

/**
 * AwsSourceDetails message describes a specific source details for the AWS source type.
 *
 * <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 VM Migration 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 AwsSourceDetails extends com.google.api.client.json.GenericJson {

  /**
   * AWS Credentials using access key id and secret.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private AccessKeyCredentials accessKeyCreds;

  /**
   * Immutable. The AWS region that the source VMs will be migrated from.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String awsRegion;

  /**
   * Output only. Provides details on the state of the Source in case of an error.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private Status error;

  /**
   * AWS security group names to limit the scope of the source inventory.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> inventorySecurityGroupNames;

  /**
   * AWS resource tags to limit the scope of the source inventory.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<Tag> inventoryTagList;

  /**
   * User specified tags to add to every M2VM generated resource in AWS. These tags will be set in
   * addition to the default tags that are set as part of the migration process. The tags must not
   * begin with the reserved prefix `m2vm`.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.Map<String, java.lang.String> migrationResourcesUserTags;

  /**
   * Output only. The source's public IP. All communication initiated by this source will originate
   * from this IP.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String publicIp;

  /**
   * Output only. State of the source as determined by the health check.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String state;

  /**
   * AWS Credentials using access key id and secret.
   * @return value or {@code null} for none
   */
  public AccessKeyCredentials getAccessKeyCreds() {
    return accessKeyCreds;
  }

  /**
   * AWS Credentials using access key id and secret.
   * @param accessKeyCreds accessKeyCreds or {@code null} for none
   */
  public AwsSourceDetails setAccessKeyCreds(AccessKeyCredentials accessKeyCreds) {
    this.accessKeyCreds = accessKeyCreds;
    return this;
  }

  /**
   * Immutable. The AWS region that the source VMs will be migrated from.
   * @return value or {@code null} for none
   */
  public java.lang.String getAwsRegion() {
    return awsRegion;
  }

  /**
   * Immutable. The AWS region that the source VMs will be migrated from.
   * @param awsRegion awsRegion or {@code null} for none
   */
  public AwsSourceDetails setAwsRegion(java.lang.String awsRegion) {
    this.awsRegion = awsRegion;
    return this;
  }

  /**
   * Output only. Provides details on the state of the Source in case of an error.
   * @return value or {@code null} for none
   */
  public Status getError() {
    return error;
  }

  /**
   * Output only. Provides details on the state of the Source in case of an error.
   * @param error error or {@code null} for none
   */
  public AwsSourceDetails setError(Status error) {
    this.error = error;
    return this;
  }

  /**
   * AWS security group names to limit the scope of the source inventory.
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getInventorySecurityGroupNames() {
    return inventorySecurityGroupNames;
  }

  /**
   * AWS security group names to limit the scope of the source inventory.
   * @param inventorySecurityGroupNames inventorySecurityGroupNames or {@code null} for none
   */
  public AwsSourceDetails setInventorySecurityGroupNames(java.util.List<java.lang.String> inventorySecurityGroupNames) {
    this.inventorySecurityGroupNames = inventorySecurityGroupNames;
    return this;
  }

  /**
   * AWS resource tags to limit the scope of the source inventory.
   * @return value or {@code null} for none
   */
  public java.util.List<Tag> getInventoryTagList() {
    return inventoryTagList;
  }

  /**
   * AWS resource tags to limit the scope of the source inventory.
   * @param inventoryTagList inventoryTagList or {@code null} for none
   */
  public AwsSourceDetails setInventoryTagList(java.util.List<Tag> inventoryTagList) {
    this.inventoryTagList = inventoryTagList;
    return this;
  }

  /**
   * User specified tags to add to every M2VM generated resource in AWS. These tags will be set in
   * addition to the default tags that are set as part of the migration process. The tags must not
   * begin with the reserved prefix `m2vm`.
   * @return value or {@code null} for none
   */
  public java.util.Map<String, java.lang.String> getMigrationResourcesUserTags() {
    return migrationResourcesUserTags;
  }

  /**
   * User specified tags to add to every M2VM generated resource in AWS. These tags will be set in
   * addition to the default tags that are set as part of the migration process. The tags must not
   * begin with the reserved prefix `m2vm`.
   * @param migrationResourcesUserTags migrationResourcesUserTags or {@code null} for none
   */
  public AwsSourceDetails setMigrationResourcesUserTags(java.util.Map<String, java.lang.String> migrationResourcesUserTags) {
    this.migrationResourcesUserTags = migrationResourcesUserTags;
    return this;
  }

  /**
   * Output only. The source's public IP. All communication initiated by this source will originate
   * from this IP.
   * @return value or {@code null} for none
   */
  public java.lang.String getPublicIp() {
    return publicIp;
  }

  /**
   * Output only. The source's public IP. All communication initiated by this source will originate
   * from this IP.
   * @param publicIp publicIp or {@code null} for none
   */
  public AwsSourceDetails setPublicIp(java.lang.String publicIp) {
    this.publicIp = publicIp;
    return this;
  }

  /**
   * Output only. State of the source as determined by the health check.
   * @return value or {@code null} for none
   */
  public java.lang.String getState() {
    return state;
  }

  /**
   * Output only. State of the source as determined by the health check.
   * @param state state or {@code null} for none
   */
  public AwsSourceDetails setState(java.lang.String state) {
    this.state = state;
    return this;
  }

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

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

}
