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

com.amazonaws.services.ec2.model.IpamResourceDiscoveryAssociation Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2018-2023 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.ec2.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 

* An IPAM resource discovery association. An associated resource discovery is a resource discovery that has been * associated with an IPAM. IPAM aggregates the resource CIDRs discovered by the associated resource discovery. *

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

* The Amazon Web Services account ID of the resource discovery owner. *

*/ private String ownerId; /** *

* The resource discovery association ID. *

*/ private String ipamResourceDiscoveryAssociationId; /** *

* The resource discovery association Amazon Resource Name (ARN). *

*/ private String ipamResourceDiscoveryAssociationArn; /** *

* The resource discovery ID. *

*/ private String ipamResourceDiscoveryId; /** *

* The IPAM ID. *

*/ private String ipamId; /** *

* The IPAM ARN. *

*/ private String ipamArn; /** *

* The IPAM home Region. *

*/ private String ipamRegion; /** *

* Defines if the resource discovery is the default. When you create an IPAM, a default resource discovery is * created for your IPAM and it's associated with your IPAM. *

*/ private Boolean isDefault; /** *

* The resource discovery status. *

*
    *
  • *

    * active - Connection or permissions required to read the results of the resource discovery are * intact. *

    *
  • *
  • *

    * not-found - Connection or permissions required to read the results of the resource discovery are * broken. This may happen if the owner of the resource discovery stopped sharing it or deleted the resource * discovery. Verify the resource discovery still exists and the Amazon Web Services RAM resource share is still * intact. *

    *
  • *
*/ private String resourceDiscoveryStatus; /** *

* The lifecycle state of the association when you associate or disassociate a resource discovery. *

*
    *
  • *

    * associate-in-progress - Resource discovery is being associated. *

    *
  • *
  • *

    * associate-complete - Resource discovery association is complete. *

    *
  • *
  • *

    * associate-failed - Resource discovery association has failed. *

    *
  • *
  • *

    * disassociate-in-progress - Resource discovery is being disassociated. *

    *
  • *
  • *

    * disassociate-complete - Resource discovery disassociation is complete. *

    *
  • *
  • *

    * disassociate-failed - Resource discovery disassociation has failed. *

    *
  • *
  • *

    * isolate-in-progress - Amazon Web Services account that created the resource discovery association * has been removed and the resource discovery associatation is being isolated. *

    *
  • *
  • *

    * isolate-complete - Resource discovery isolation is complete.. *

    *
  • *
  • *

    * restore-in-progress - Resource discovery is being restored. *

    *
  • *
*/ private String state; /** *

* A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional * value. You can use tags to search and filter your resources or track your Amazon Web Services costs. *

*/ private com.amazonaws.internal.SdkInternalList tags; /** *

* The Amazon Web Services account ID of the resource discovery owner. *

* * @param ownerId * The Amazon Web Services account ID of the resource discovery owner. */ public void setOwnerId(String ownerId) { this.ownerId = ownerId; } /** *

* The Amazon Web Services account ID of the resource discovery owner. *

* * @return The Amazon Web Services account ID of the resource discovery owner. */ public String getOwnerId() { return this.ownerId; } /** *

* The Amazon Web Services account ID of the resource discovery owner. *

* * @param ownerId * The Amazon Web Services account ID of the resource discovery owner. * @return Returns a reference to this object so that method calls can be chained together. */ public IpamResourceDiscoveryAssociation withOwnerId(String ownerId) { setOwnerId(ownerId); return this; } /** *

* The resource discovery association ID. *

* * @param ipamResourceDiscoveryAssociationId * The resource discovery association ID. */ public void setIpamResourceDiscoveryAssociationId(String ipamResourceDiscoveryAssociationId) { this.ipamResourceDiscoveryAssociationId = ipamResourceDiscoveryAssociationId; } /** *

* The resource discovery association ID. *

* * @return The resource discovery association ID. */ public String getIpamResourceDiscoveryAssociationId() { return this.ipamResourceDiscoveryAssociationId; } /** *

* The resource discovery association ID. *

* * @param ipamResourceDiscoveryAssociationId * The resource discovery association ID. * @return Returns a reference to this object so that method calls can be chained together. */ public IpamResourceDiscoveryAssociation withIpamResourceDiscoveryAssociationId(String ipamResourceDiscoveryAssociationId) { setIpamResourceDiscoveryAssociationId(ipamResourceDiscoveryAssociationId); return this; } /** *

* The resource discovery association Amazon Resource Name (ARN). *

* * @param ipamResourceDiscoveryAssociationArn * The resource discovery association Amazon Resource Name (ARN). */ public void setIpamResourceDiscoveryAssociationArn(String ipamResourceDiscoveryAssociationArn) { this.ipamResourceDiscoveryAssociationArn = ipamResourceDiscoveryAssociationArn; } /** *

* The resource discovery association Amazon Resource Name (ARN). *

* * @return The resource discovery association Amazon Resource Name (ARN). */ public String getIpamResourceDiscoveryAssociationArn() { return this.ipamResourceDiscoveryAssociationArn; } /** *

* The resource discovery association Amazon Resource Name (ARN). *

* * @param ipamResourceDiscoveryAssociationArn * The resource discovery association Amazon Resource Name (ARN). * @return Returns a reference to this object so that method calls can be chained together. */ public IpamResourceDiscoveryAssociation withIpamResourceDiscoveryAssociationArn(String ipamResourceDiscoveryAssociationArn) { setIpamResourceDiscoveryAssociationArn(ipamResourceDiscoveryAssociationArn); return this; } /** *

* The resource discovery ID. *

* * @param ipamResourceDiscoveryId * The resource discovery ID. */ public void setIpamResourceDiscoveryId(String ipamResourceDiscoveryId) { this.ipamResourceDiscoveryId = ipamResourceDiscoveryId; } /** *

* The resource discovery ID. *

* * @return The resource discovery ID. */ public String getIpamResourceDiscoveryId() { return this.ipamResourceDiscoveryId; } /** *

* The resource discovery ID. *

* * @param ipamResourceDiscoveryId * The resource discovery ID. * @return Returns a reference to this object so that method calls can be chained together. */ public IpamResourceDiscoveryAssociation withIpamResourceDiscoveryId(String ipamResourceDiscoveryId) { setIpamResourceDiscoveryId(ipamResourceDiscoveryId); return this; } /** *

* The IPAM ID. *

* * @param ipamId * The IPAM ID. */ public void setIpamId(String ipamId) { this.ipamId = ipamId; } /** *

* The IPAM ID. *

* * @return The IPAM ID. */ public String getIpamId() { return this.ipamId; } /** *

* The IPAM ID. *

* * @param ipamId * The IPAM ID. * @return Returns a reference to this object so that method calls can be chained together. */ public IpamResourceDiscoveryAssociation withIpamId(String ipamId) { setIpamId(ipamId); return this; } /** *

* The IPAM ARN. *

* * @param ipamArn * The IPAM ARN. */ public void setIpamArn(String ipamArn) { this.ipamArn = ipamArn; } /** *

* The IPAM ARN. *

* * @return The IPAM ARN. */ public String getIpamArn() { return this.ipamArn; } /** *

* The IPAM ARN. *

* * @param ipamArn * The IPAM ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public IpamResourceDiscoveryAssociation withIpamArn(String ipamArn) { setIpamArn(ipamArn); return this; } /** *

* The IPAM home Region. *

* * @param ipamRegion * The IPAM home Region. */ public void setIpamRegion(String ipamRegion) { this.ipamRegion = ipamRegion; } /** *

* The IPAM home Region. *

* * @return The IPAM home Region. */ public String getIpamRegion() { return this.ipamRegion; } /** *

* The IPAM home Region. *

* * @param ipamRegion * The IPAM home Region. * @return Returns a reference to this object so that method calls can be chained together. */ public IpamResourceDiscoveryAssociation withIpamRegion(String ipamRegion) { setIpamRegion(ipamRegion); return this; } /** *

* Defines if the resource discovery is the default. When you create an IPAM, a default resource discovery is * created for your IPAM and it's associated with your IPAM. *

* * @param isDefault * Defines if the resource discovery is the default. When you create an IPAM, a default resource discovery is * created for your IPAM and it's associated with your IPAM. */ public void setIsDefault(Boolean isDefault) { this.isDefault = isDefault; } /** *

* Defines if the resource discovery is the default. When you create an IPAM, a default resource discovery is * created for your IPAM and it's associated with your IPAM. *

* * @return Defines if the resource discovery is the default. When you create an IPAM, a default resource discovery * is created for your IPAM and it's associated with your IPAM. */ public Boolean getIsDefault() { return this.isDefault; } /** *

* Defines if the resource discovery is the default. When you create an IPAM, a default resource discovery is * created for your IPAM and it's associated with your IPAM. *

* * @param isDefault * Defines if the resource discovery is the default. When you create an IPAM, a default resource discovery is * created for your IPAM and it's associated with your IPAM. * @return Returns a reference to this object so that method calls can be chained together. */ public IpamResourceDiscoveryAssociation withIsDefault(Boolean isDefault) { setIsDefault(isDefault); return this; } /** *

* Defines if the resource discovery is the default. When you create an IPAM, a default resource discovery is * created for your IPAM and it's associated with your IPAM. *

* * @return Defines if the resource discovery is the default. When you create an IPAM, a default resource discovery * is created for your IPAM and it's associated with your IPAM. */ public Boolean isDefault() { return this.isDefault; } /** *

* The resource discovery status. *

*
    *
  • *

    * active - Connection or permissions required to read the results of the resource discovery are * intact. *

    *
  • *
  • *

    * not-found - Connection or permissions required to read the results of the resource discovery are * broken. This may happen if the owner of the resource discovery stopped sharing it or deleted the resource * discovery. Verify the resource discovery still exists and the Amazon Web Services RAM resource share is still * intact. *

    *
  • *
* * @param resourceDiscoveryStatus * The resource discovery status.

*
    *
  • *

    * active - Connection or permissions required to read the results of the resource discovery are * intact. *

    *
  • *
  • *

    * not-found - Connection or permissions required to read the results of the resource discovery * are broken. This may happen if the owner of the resource discovery stopped sharing it or deleted the * resource discovery. Verify the resource discovery still exists and the Amazon Web Services RAM resource * share is still intact. *

    *
  • * @see IpamAssociatedResourceDiscoveryStatus */ public void setResourceDiscoveryStatus(String resourceDiscoveryStatus) { this.resourceDiscoveryStatus = resourceDiscoveryStatus; } /** *

    * The resource discovery status. *

    *
      *
    • *

      * active - Connection or permissions required to read the results of the resource discovery are * intact. *

      *
    • *
    • *

      * not-found - Connection or permissions required to read the results of the resource discovery are * broken. This may happen if the owner of the resource discovery stopped sharing it or deleted the resource * discovery. Verify the resource discovery still exists and the Amazon Web Services RAM resource share is still * intact. *

      *
    • *
    * * @return The resource discovery status.

    *
      *
    • *

      * active - Connection or permissions required to read the results of the resource discovery * are intact. *

      *
    • *
    • *

      * not-found - Connection or permissions required to read the results of the resource discovery * are broken. This may happen if the owner of the resource discovery stopped sharing it or deleted the * resource discovery. Verify the resource discovery still exists and the Amazon Web Services RAM resource * share is still intact. *

      *
    • * @see IpamAssociatedResourceDiscoveryStatus */ public String getResourceDiscoveryStatus() { return this.resourceDiscoveryStatus; } /** *

      * The resource discovery status. *

      *
        *
      • *

        * active - Connection or permissions required to read the results of the resource discovery are * intact. *

        *
      • *
      • *

        * not-found - Connection or permissions required to read the results of the resource discovery are * broken. This may happen if the owner of the resource discovery stopped sharing it or deleted the resource * discovery. Verify the resource discovery still exists and the Amazon Web Services RAM resource share is still * intact. *

        *
      • *
      * * @param resourceDiscoveryStatus * The resource discovery status.

      *
        *
      • *

        * active - Connection or permissions required to read the results of the resource discovery are * intact. *

        *
      • *
      • *

        * not-found - Connection or permissions required to read the results of the resource discovery * are broken. This may happen if the owner of the resource discovery stopped sharing it or deleted the * resource discovery. Verify the resource discovery still exists and the Amazon Web Services RAM resource * share is still intact. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see IpamAssociatedResourceDiscoveryStatus */ public IpamResourceDiscoveryAssociation withResourceDiscoveryStatus(String resourceDiscoveryStatus) { setResourceDiscoveryStatus(resourceDiscoveryStatus); return this; } /** *

        * The resource discovery status. *

        *
          *
        • *

          * active - Connection or permissions required to read the results of the resource discovery are * intact. *

          *
        • *
        • *

          * not-found - Connection or permissions required to read the results of the resource discovery are * broken. This may happen if the owner of the resource discovery stopped sharing it or deleted the resource * discovery. Verify the resource discovery still exists and the Amazon Web Services RAM resource share is still * intact. *

          *
        • *
        * * @param resourceDiscoveryStatus * The resource discovery status.

        *
          *
        • *

          * active - Connection or permissions required to read the results of the resource discovery are * intact. *

          *
        • *
        • *

          * not-found - Connection or permissions required to read the results of the resource discovery * are broken. This may happen if the owner of the resource discovery stopped sharing it or deleted the * resource discovery. Verify the resource discovery still exists and the Amazon Web Services RAM resource * share is still intact. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see IpamAssociatedResourceDiscoveryStatus */ public IpamResourceDiscoveryAssociation withResourceDiscoveryStatus(IpamAssociatedResourceDiscoveryStatus resourceDiscoveryStatus) { this.resourceDiscoveryStatus = resourceDiscoveryStatus.toString(); return this; } /** *

          * The lifecycle state of the association when you associate or disassociate a resource discovery. *

          *
            *
          • *

            * associate-in-progress - Resource discovery is being associated. *

            *
          • *
          • *

            * associate-complete - Resource discovery association is complete. *

            *
          • *
          • *

            * associate-failed - Resource discovery association has failed. *

            *
          • *
          • *

            * disassociate-in-progress - Resource discovery is being disassociated. *

            *
          • *
          • *

            * disassociate-complete - Resource discovery disassociation is complete. *

            *
          • *
          • *

            * disassociate-failed - Resource discovery disassociation has failed. *

            *
          • *
          • *

            * isolate-in-progress - Amazon Web Services account that created the resource discovery association * has been removed and the resource discovery associatation is being isolated. *

            *
          • *
          • *

            * isolate-complete - Resource discovery isolation is complete.. *

            *
          • *
          • *

            * restore-in-progress - Resource discovery is being restored. *

            *
          • *
          * * @param state * The lifecycle state of the association when you associate or disassociate a resource discovery.

          *
            *
          • *

            * associate-in-progress - Resource discovery is being associated. *

            *
          • *
          • *

            * associate-complete - Resource discovery association is complete. *

            *
          • *
          • *

            * associate-failed - Resource discovery association has failed. *

            *
          • *
          • *

            * disassociate-in-progress - Resource discovery is being disassociated. *

            *
          • *
          • *

            * disassociate-complete - Resource discovery disassociation is complete. *

            *
          • *
          • *

            * disassociate-failed - Resource discovery disassociation has failed. *

            *
          • *
          • *

            * isolate-in-progress - Amazon Web Services account that created the resource discovery * association has been removed and the resource discovery associatation is being isolated. *

            *
          • *
          • *

            * isolate-complete - Resource discovery isolation is complete.. *

            *
          • *
          • *

            * restore-in-progress - Resource discovery is being restored. *

            *
          • * @see IpamResourceDiscoveryAssociationState */ public void setState(String state) { this.state = state; } /** *

            * The lifecycle state of the association when you associate or disassociate a resource discovery. *

            *
              *
            • *

              * associate-in-progress - Resource discovery is being associated. *

              *
            • *
            • *

              * associate-complete - Resource discovery association is complete. *

              *
            • *
            • *

              * associate-failed - Resource discovery association has failed. *

              *
            • *
            • *

              * disassociate-in-progress - Resource discovery is being disassociated. *

              *
            • *
            • *

              * disassociate-complete - Resource discovery disassociation is complete. *

              *
            • *
            • *

              * disassociate-failed - Resource discovery disassociation has failed. *

              *
            • *
            • *

              * isolate-in-progress - Amazon Web Services account that created the resource discovery association * has been removed and the resource discovery associatation is being isolated. *

              *
            • *
            • *

              * isolate-complete - Resource discovery isolation is complete.. *

              *
            • *
            • *

              * restore-in-progress - Resource discovery is being restored. *

              *
            • *
            * * @return The lifecycle state of the association when you associate or disassociate a resource discovery.

            *
              *
            • *

              * associate-in-progress - Resource discovery is being associated. *

              *
            • *
            • *

              * associate-complete - Resource discovery association is complete. *

              *
            • *
            • *

              * associate-failed - Resource discovery association has failed. *

              *
            • *
            • *

              * disassociate-in-progress - Resource discovery is being disassociated. *

              *
            • *
            • *

              * disassociate-complete - Resource discovery disassociation is complete. *

              *
            • *
            • *

              * disassociate-failed - Resource discovery disassociation has failed. *

              *
            • *
            • *

              * isolate-in-progress - Amazon Web Services account that created the resource discovery * association has been removed and the resource discovery associatation is being isolated. *

              *
            • *
            • *

              * isolate-complete - Resource discovery isolation is complete.. *

              *
            • *
            • *

              * restore-in-progress - Resource discovery is being restored. *

              *
            • * @see IpamResourceDiscoveryAssociationState */ public String getState() { return this.state; } /** *

              * The lifecycle state of the association when you associate or disassociate a resource discovery. *

              *
                *
              • *

                * associate-in-progress - Resource discovery is being associated. *

                *
              • *
              • *

                * associate-complete - Resource discovery association is complete. *

                *
              • *
              • *

                * associate-failed - Resource discovery association has failed. *

                *
              • *
              • *

                * disassociate-in-progress - Resource discovery is being disassociated. *

                *
              • *
              • *

                * disassociate-complete - Resource discovery disassociation is complete. *

                *
              • *
              • *

                * disassociate-failed - Resource discovery disassociation has failed. *

                *
              • *
              • *

                * isolate-in-progress - Amazon Web Services account that created the resource discovery association * has been removed and the resource discovery associatation is being isolated. *

                *
              • *
              • *

                * isolate-complete - Resource discovery isolation is complete.. *

                *
              • *
              • *

                * restore-in-progress - Resource discovery is being restored. *

                *
              • *
              * * @param state * The lifecycle state of the association when you associate or disassociate a resource discovery.

              *
                *
              • *

                * associate-in-progress - Resource discovery is being associated. *

                *
              • *
              • *

                * associate-complete - Resource discovery association is complete. *

                *
              • *
              • *

                * associate-failed - Resource discovery association has failed. *

                *
              • *
              • *

                * disassociate-in-progress - Resource discovery is being disassociated. *

                *
              • *
              • *

                * disassociate-complete - Resource discovery disassociation is complete. *

                *
              • *
              • *

                * disassociate-failed - Resource discovery disassociation has failed. *

                *
              • *
              • *

                * isolate-in-progress - Amazon Web Services account that created the resource discovery * association has been removed and the resource discovery associatation is being isolated. *

                *
              • *
              • *

                * isolate-complete - Resource discovery isolation is complete.. *

                *
              • *
              • *

                * restore-in-progress - Resource discovery is being restored. *

                *
              • * @return Returns a reference to this object so that method calls can be chained together. * @see IpamResourceDiscoveryAssociationState */ public IpamResourceDiscoveryAssociation withState(String state) { setState(state); return this; } /** *

                * The lifecycle state of the association when you associate or disassociate a resource discovery. *

                *
                  *
                • *

                  * associate-in-progress - Resource discovery is being associated. *

                  *
                • *
                • *

                  * associate-complete - Resource discovery association is complete. *

                  *
                • *
                • *

                  * associate-failed - Resource discovery association has failed. *

                  *
                • *
                • *

                  * disassociate-in-progress - Resource discovery is being disassociated. *

                  *
                • *
                • *

                  * disassociate-complete - Resource discovery disassociation is complete. *

                  *
                • *
                • *

                  * disassociate-failed - Resource discovery disassociation has failed. *

                  *
                • *
                • *

                  * isolate-in-progress - Amazon Web Services account that created the resource discovery association * has been removed and the resource discovery associatation is being isolated. *

                  *
                • *
                • *

                  * isolate-complete - Resource discovery isolation is complete.. *

                  *
                • *
                • *

                  * restore-in-progress - Resource discovery is being restored. *

                  *
                • *
                * * @param state * The lifecycle state of the association when you associate or disassociate a resource discovery.

                *
                  *
                • *

                  * associate-in-progress - Resource discovery is being associated. *

                  *
                • *
                • *

                  * associate-complete - Resource discovery association is complete. *

                  *
                • *
                • *

                  * associate-failed - Resource discovery association has failed. *

                  *
                • *
                • *

                  * disassociate-in-progress - Resource discovery is being disassociated. *

                  *
                • *
                • *

                  * disassociate-complete - Resource discovery disassociation is complete. *

                  *
                • *
                • *

                  * disassociate-failed - Resource discovery disassociation has failed. *

                  *
                • *
                • *

                  * isolate-in-progress - Amazon Web Services account that created the resource discovery * association has been removed and the resource discovery associatation is being isolated. *

                  *
                • *
                • *

                  * isolate-complete - Resource discovery isolation is complete.. *

                  *
                • *
                • *

                  * restore-in-progress - Resource discovery is being restored. *

                  *
                • * @return Returns a reference to this object so that method calls can be chained together. * @see IpamResourceDiscoveryAssociationState */ public IpamResourceDiscoveryAssociation withState(IpamResourceDiscoveryAssociationState state) { this.state = state.toString(); return this; } /** *

                  * A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional * value. You can use tags to search and filter your resources or track your Amazon Web Services costs. *

                  * * @return A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an * optional value. You can use tags to search and filter your resources or track your Amazon Web Services * costs. */ public java.util.List getTags() { if (tags == null) { tags = new com.amazonaws.internal.SdkInternalList(); } return tags; } /** *

                  * A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional * value. You can use tags to search and filter your resources or track your Amazon Web Services costs. *

                  * * @param tags * A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an * optional value. You can use tags to search and filter your resources or track your Amazon Web Services * costs. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new com.amazonaws.internal.SdkInternalList(tags); } /** *

                  * A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional * value. You can use tags to search and filter your resources or track your Amazon Web Services costs. *

                  *

                  * NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *

                  * * @param tags * A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an * optional value. You can use tags to search and filter your resources or track your Amazon Web Services * costs. * @return Returns a reference to this object so that method calls can be chained together. */ public IpamResourceDiscoveryAssociation withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

                  * A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional * value. You can use tags to search and filter your resources or track your Amazon Web Services costs. *

                  * * @param tags * A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an * optional value. You can use tags to search and filter your resources or track your Amazon Web Services * costs. * @return Returns a reference to this object so that method calls can be chained together. */ public IpamResourceDiscoveryAssociation withTags(java.util.Collection tags) { setTags(tags); 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 (getOwnerId() != null) sb.append("OwnerId: ").append(getOwnerId()).append(","); if (getIpamResourceDiscoveryAssociationId() != null) sb.append("IpamResourceDiscoveryAssociationId: ").append(getIpamResourceDiscoveryAssociationId()).append(","); if (getIpamResourceDiscoveryAssociationArn() != null) sb.append("IpamResourceDiscoveryAssociationArn: ").append(getIpamResourceDiscoveryAssociationArn()).append(","); if (getIpamResourceDiscoveryId() != null) sb.append("IpamResourceDiscoveryId: ").append(getIpamResourceDiscoveryId()).append(","); if (getIpamId() != null) sb.append("IpamId: ").append(getIpamId()).append(","); if (getIpamArn() != null) sb.append("IpamArn: ").append(getIpamArn()).append(","); if (getIpamRegion() != null) sb.append("IpamRegion: ").append(getIpamRegion()).append(","); if (getIsDefault() != null) sb.append("IsDefault: ").append(getIsDefault()).append(","); if (getResourceDiscoveryStatus() != null) sb.append("ResourceDiscoveryStatus: ").append(getResourceDiscoveryStatus()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof IpamResourceDiscoveryAssociation == false) return false; IpamResourceDiscoveryAssociation other = (IpamResourceDiscoveryAssociation) obj; if (other.getOwnerId() == null ^ this.getOwnerId() == null) return false; if (other.getOwnerId() != null && other.getOwnerId().equals(this.getOwnerId()) == false) return false; if (other.getIpamResourceDiscoveryAssociationId() == null ^ this.getIpamResourceDiscoveryAssociationId() == null) return false; if (other.getIpamResourceDiscoveryAssociationId() != null && other.getIpamResourceDiscoveryAssociationId().equals(this.getIpamResourceDiscoveryAssociationId()) == false) return false; if (other.getIpamResourceDiscoveryAssociationArn() == null ^ this.getIpamResourceDiscoveryAssociationArn() == null) return false; if (other.getIpamResourceDiscoveryAssociationArn() != null && other.getIpamResourceDiscoveryAssociationArn().equals(this.getIpamResourceDiscoveryAssociationArn()) == false) return false; if (other.getIpamResourceDiscoveryId() == null ^ this.getIpamResourceDiscoveryId() == null) return false; if (other.getIpamResourceDiscoveryId() != null && other.getIpamResourceDiscoveryId().equals(this.getIpamResourceDiscoveryId()) == false) return false; if (other.getIpamId() == null ^ this.getIpamId() == null) return false; if (other.getIpamId() != null && other.getIpamId().equals(this.getIpamId()) == false) return false; if (other.getIpamArn() == null ^ this.getIpamArn() == null) return false; if (other.getIpamArn() != null && other.getIpamArn().equals(this.getIpamArn()) == false) return false; if (other.getIpamRegion() == null ^ this.getIpamRegion() == null) return false; if (other.getIpamRegion() != null && other.getIpamRegion().equals(this.getIpamRegion()) == false) return false; if (other.getIsDefault() == null ^ this.getIsDefault() == null) return false; if (other.getIsDefault() != null && other.getIsDefault().equals(this.getIsDefault()) == false) return false; if (other.getResourceDiscoveryStatus() == null ^ this.getResourceDiscoveryStatus() == null) return false; if (other.getResourceDiscoveryStatus() != null && other.getResourceDiscoveryStatus().equals(this.getResourceDiscoveryStatus()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode()); hashCode = prime * hashCode + ((getIpamResourceDiscoveryAssociationId() == null) ? 0 : getIpamResourceDiscoveryAssociationId().hashCode()); hashCode = prime * hashCode + ((getIpamResourceDiscoveryAssociationArn() == null) ? 0 : getIpamResourceDiscoveryAssociationArn().hashCode()); hashCode = prime * hashCode + ((getIpamResourceDiscoveryId() == null) ? 0 : getIpamResourceDiscoveryId().hashCode()); hashCode = prime * hashCode + ((getIpamId() == null) ? 0 : getIpamId().hashCode()); hashCode = prime * hashCode + ((getIpamArn() == null) ? 0 : getIpamArn().hashCode()); hashCode = prime * hashCode + ((getIpamRegion() == null) ? 0 : getIpamRegion().hashCode()); hashCode = prime * hashCode + ((getIsDefault() == null) ? 0 : getIsDefault().hashCode()); hashCode = prime * hashCode + ((getResourceDiscoveryStatus() == null) ? 0 : getResourceDiscoveryStatus().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public IpamResourceDiscoveryAssociation clone() { try { return (IpamResourceDiscoveryAssociation) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy