/* * 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.
*
* 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.
*
* 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* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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* 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* 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* 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