All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.resourceexplorer2.model.MemberIndex Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Resource Explorer module holds the client classes that are used for communicating with AWS Resource Explorer Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file 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.
 */
package com.amazonaws.services.resourceexplorer2.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* An index is the data store used by Amazon Web Services Resource Explorer to hold information about your Amazon Web * Services resources that the service discovers. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MemberIndex implements Serializable, Cloneable, StructuredPojo { /** *

* The account ID for the index. *

*/ private String accountId; /** *

* The Amazon resource name * (ARN) of the index. *

*/ private String arn; /** *

* The Amazon Web Services Region in which the index exists. *

*/ private String region; /** *

* The type of index. It can be one of the following values: *

*
    *
  • *

    * LOCAL – The index contains information about resources from only the same Amazon Web Services * Region. *

    *
  • *
  • *

    * AGGREGATOR – Resource Explorer replicates copies of the indexed information about resources in all * other Amazon Web Services Regions to the aggregator index. This lets search results in the Region with the * aggregator index to include resources from all Regions in the account where Resource Explorer is turned on. *

    *
  • *
*/ private String type; /** *

* The account ID for the index. *

* * @param accountId * The account ID for the index. */ public void setAccountId(String accountId) { this.accountId = accountId; } /** *

* The account ID for the index. *

* * @return The account ID for the index. */ public String getAccountId() { return this.accountId; } /** *

* The account ID for the index. *

* * @param accountId * The account ID for the index. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberIndex withAccountId(String accountId) { setAccountId(accountId); return this; } /** *

* The Amazon resource name * (ARN) of the index. *

* * @param arn * The Amazon resource * name (ARN) of the index. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon resource name * (ARN) of the index. *

* * @return The Amazon resource * name (ARN) of the index. */ public String getArn() { return this.arn; } /** *

* The Amazon resource name * (ARN) of the index. *

* * @param arn * The Amazon resource * name (ARN) of the index. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberIndex withArn(String arn) { setArn(arn); return this; } /** *

* The Amazon Web Services Region in which the index exists. *

* * @param region * The Amazon Web Services Region in which the index exists. */ public void setRegion(String region) { this.region = region; } /** *

* The Amazon Web Services Region in which the index exists. *

* * @return The Amazon Web Services Region in which the index exists. */ public String getRegion() { return this.region; } /** *

* The Amazon Web Services Region in which the index exists. *

* * @param region * The Amazon Web Services Region in which the index exists. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberIndex withRegion(String region) { setRegion(region); return this; } /** *

* The type of index. It can be one of the following values: *

*
    *
  • *

    * LOCAL – The index contains information about resources from only the same Amazon Web Services * Region. *

    *
  • *
  • *

    * AGGREGATOR – Resource Explorer replicates copies of the indexed information about resources in all * other Amazon Web Services Regions to the aggregator index. This lets search results in the Region with the * aggregator index to include resources from all Regions in the account where Resource Explorer is turned on. *

    *
  • *
* * @param type * The type of index. It can be one of the following values:

*
    *
  • *

    * LOCAL – The index contains information about resources from only the same Amazon Web Services * Region. *

    *
  • *
  • *

    * AGGREGATOR – Resource Explorer replicates copies of the indexed information about resources * in all other Amazon Web Services Regions to the aggregator index. This lets search results in the Region * with the aggregator index to include resources from all Regions in the account where Resource Explorer is * turned on. *

    *
  • * @see IndexType */ public void setType(String type) { this.type = type; } /** *

    * The type of index. It can be one of the following values: *

    *
      *
    • *

      * LOCAL – The index contains information about resources from only the same Amazon Web Services * Region. *

      *
    • *
    • *

      * AGGREGATOR – Resource Explorer replicates copies of the indexed information about resources in all * other Amazon Web Services Regions to the aggregator index. This lets search results in the Region with the * aggregator index to include resources from all Regions in the account where Resource Explorer is turned on. *

      *
    • *
    * * @return The type of index. It can be one of the following values:

    *
      *
    • *

      * LOCAL – The index contains information about resources from only the same Amazon Web * Services Region. *

      *
    • *
    • *

      * AGGREGATOR – Resource Explorer replicates copies of the indexed information about resources * in all other Amazon Web Services Regions to the aggregator index. This lets search results in the Region * with the aggregator index to include resources from all Regions in the account where Resource Explorer is * turned on. *

      *
    • * @see IndexType */ public String getType() { return this.type; } /** *

      * The type of index. It can be one of the following values: *

      *
        *
      • *

        * LOCAL – The index contains information about resources from only the same Amazon Web Services * Region. *

        *
      • *
      • *

        * AGGREGATOR – Resource Explorer replicates copies of the indexed information about resources in all * other Amazon Web Services Regions to the aggregator index. This lets search results in the Region with the * aggregator index to include resources from all Regions in the account where Resource Explorer is turned on. *

        *
      • *
      * * @param type * The type of index. It can be one of the following values:

      *
        *
      • *

        * LOCAL – The index contains information about resources from only the same Amazon Web Services * Region. *

        *
      • *
      • *

        * AGGREGATOR – Resource Explorer replicates copies of the indexed information about resources * in all other Amazon Web Services Regions to the aggregator index. This lets search results in the Region * with the aggregator index to include resources from all Regions in the account where Resource Explorer is * turned on. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see IndexType */ public MemberIndex withType(String type) { setType(type); return this; } /** *

        * The type of index. It can be one of the following values: *

        *
          *
        • *

          * LOCAL – The index contains information about resources from only the same Amazon Web Services * Region. *

          *
        • *
        • *

          * AGGREGATOR – Resource Explorer replicates copies of the indexed information about resources in all * other Amazon Web Services Regions to the aggregator index. This lets search results in the Region with the * aggregator index to include resources from all Regions in the account where Resource Explorer is turned on. *

          *
        • *
        * * @param type * The type of index. It can be one of the following values:

        *
          *
        • *

          * LOCAL – The index contains information about resources from only the same Amazon Web Services * Region. *

          *
        • *
        • *

          * AGGREGATOR – Resource Explorer replicates copies of the indexed information about resources * in all other Amazon Web Services Regions to the aggregator index. This lets search results in the Region * with the aggregator index to include resources from all Regions in the account where Resource Explorer is * turned on. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see IndexType */ public MemberIndex withType(IndexType type) { this.type = type.toString(); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAccountId() != null) sb.append("AccountId: ").append(getAccountId()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getRegion() != null) sb.append("Region: ").append(getRegion()).append(","); if (getType() != null) sb.append("Type: ").append(getType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof MemberIndex == false) return false; MemberIndex other = (MemberIndex) obj; if (other.getAccountId() == null ^ this.getAccountId() == null) return false; if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getRegion() == null ^ this.getRegion() == null) return false; if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); return hashCode; } @Override public MemberIndex clone() { try { return (MemberIndex) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.resourceexplorer2.model.transform.MemberIndexMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy