/* * 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; /** *
* A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning * account. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class IpamResourceDiscovery implements Serializable, Cloneable { /** ** The ID of the owner. *
*/ private String ownerId; /** ** The resource discovery ID. *
*/ private String ipamResourceDiscoveryId; /** ** The resource discovery Amazon Resource Name (ARN). *
*/ private String ipamResourceDiscoveryArn; /** ** The resource discovery Region. *
*/ private String ipamResourceDiscoveryRegion; /** ** The resource discovery description. *
*/ private String description; /** ** The operating Regions for the resource discovery. Operating Regions are Amazon Web Services Regions where the * IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon Web Services * Regions you select as operating Regions. *
*/ private com.amazonaws.internal.SdkInternalList* Defines if the resource discovery is the default. The default resource discovery is the resource discovery * automatically created when you create an IPAM. *
*/ private Boolean isDefault; /** ** The lifecycle state of the resource discovery. *
*
* create-in-progress
- Resource discovery is being created.
*
* create-complete
- Resource discovery creation is complete.
*
* create-failed
- Resource discovery creation has failed.
*
* modify-in-progress
- Resource discovery is being modified.
*
* modify-complete
- Resource discovery modification is complete.
*
* modify-failed
- Resource discovery modification has failed.
*
* delete-in-progress
- Resource discovery is being deleted.
*
* delete-complete
- Resource discovery deletion is complete.
*
* delete-failed
- Resource discovery deletion has failed.
*
* isolate-in-progress
- Amazon Web Services account that created the resource discovery has been
* removed and the resource discovery is being isolated.
*
* isolate-complete
- Resource discovery isolation is complete.
*
* restore-in-progress
- Amazon Web Services account that created the resource discovery and was
* isolated has been 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 ID of the owner. *
* * @param ownerId * The ID of the owner. */ public void setOwnerId(String ownerId) { this.ownerId = ownerId; } /** ** The ID of the owner. *
* * @return The ID of the owner. */ public String getOwnerId() { return this.ownerId; } /** ** The ID of the owner. *
* * @param ownerId * The ID of the owner. * @return Returns a reference to this object so that method calls can be chained together. */ public IpamResourceDiscovery withOwnerId(String ownerId) { setOwnerId(ownerId); 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 IpamResourceDiscovery withIpamResourceDiscoveryId(String ipamResourceDiscoveryId) { setIpamResourceDiscoveryId(ipamResourceDiscoveryId); return this; } /** ** The resource discovery Amazon Resource Name (ARN). *
* * @param ipamResourceDiscoveryArn * The resource discovery Amazon Resource Name (ARN). */ public void setIpamResourceDiscoveryArn(String ipamResourceDiscoveryArn) { this.ipamResourceDiscoveryArn = ipamResourceDiscoveryArn; } /** ** The resource discovery Amazon Resource Name (ARN). *
* * @return The resource discovery Amazon Resource Name (ARN). */ public String getIpamResourceDiscoveryArn() { return this.ipamResourceDiscoveryArn; } /** ** The resource discovery Amazon Resource Name (ARN). *
* * @param ipamResourceDiscoveryArn * The resource discovery Amazon Resource Name (ARN). * @return Returns a reference to this object so that method calls can be chained together. */ public IpamResourceDiscovery withIpamResourceDiscoveryArn(String ipamResourceDiscoveryArn) { setIpamResourceDiscoveryArn(ipamResourceDiscoveryArn); return this; } /** ** The resource discovery Region. *
* * @param ipamResourceDiscoveryRegion * The resource discovery Region. */ public void setIpamResourceDiscoveryRegion(String ipamResourceDiscoveryRegion) { this.ipamResourceDiscoveryRegion = ipamResourceDiscoveryRegion; } /** ** The resource discovery Region. *
* * @return The resource discovery Region. */ public String getIpamResourceDiscoveryRegion() { return this.ipamResourceDiscoveryRegion; } /** ** The resource discovery Region. *
* * @param ipamResourceDiscoveryRegion * The resource discovery Region. * @return Returns a reference to this object so that method calls can be chained together. */ public IpamResourceDiscovery withIpamResourceDiscoveryRegion(String ipamResourceDiscoveryRegion) { setIpamResourceDiscoveryRegion(ipamResourceDiscoveryRegion); return this; } /** ** The resource discovery description. *
* * @param description * The resource discovery description. */ public void setDescription(String description) { this.description = description; } /** ** The resource discovery description. *
* * @return The resource discovery description. */ public String getDescription() { return this.description; } /** ** The resource discovery description. *
* * @param description * The resource discovery description. * @return Returns a reference to this object so that method calls can be chained together. */ public IpamResourceDiscovery withDescription(String description) { setDescription(description); return this; } /** ** The operating Regions for the resource discovery. Operating Regions are Amazon Web Services Regions where the * IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon Web Services * Regions you select as operating Regions. *
* * @return The operating Regions for the resource discovery. Operating Regions are Amazon Web Services Regions where * the IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon * Web Services Regions you select as operating Regions. */ public java.util.List* The operating Regions for the resource discovery. Operating Regions are Amazon Web Services Regions where the * IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon Web Services * Regions you select as operating Regions. *
* * @param operatingRegions * The operating Regions for the resource discovery. Operating Regions are Amazon Web Services Regions where * the IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon * Web Services Regions you select as operating Regions. */ public void setOperatingRegions(java.util.Collection* The operating Regions for the resource discovery. Operating Regions are Amazon Web Services Regions where the * IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon Web Services * Regions you select as operating Regions. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setOperatingRegions(java.util.Collection)} or {@link #withOperatingRegions(java.util.Collection)} if you * want to override the existing values. *
* * @param operatingRegions * The operating Regions for the resource discovery. Operating Regions are Amazon Web Services Regions where * the IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon * Web Services Regions you select as operating Regions. * @return Returns a reference to this object so that method calls can be chained together. */ public IpamResourceDiscovery withOperatingRegions(IpamOperatingRegion... operatingRegions) { if (this.operatingRegions == null) { setOperatingRegions(new com.amazonaws.internal.SdkInternalList* The operating Regions for the resource discovery. Operating Regions are Amazon Web Services Regions where the * IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon Web Services * Regions you select as operating Regions. *
* * @param operatingRegions * The operating Regions for the resource discovery. Operating Regions are Amazon Web Services Regions where * the IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon * Web Services Regions you select as operating Regions. * @return Returns a reference to this object so that method calls can be chained together. */ public IpamResourceDiscovery withOperatingRegions(java.util.Collection* Defines if the resource discovery is the default. The default resource discovery is the resource discovery * automatically created when you create an IPAM. *
* * @param isDefault * Defines if the resource discovery is the default. The default resource discovery is the resource discovery * automatically created when you create an IPAM. */ public void setIsDefault(Boolean isDefault) { this.isDefault = isDefault; } /** ** Defines if the resource discovery is the default. The default resource discovery is the resource discovery * automatically created when you create an IPAM. *
* * @return Defines if the resource discovery is the default. The default resource discovery is the resource * discovery automatically created when you create an IPAM. */ public Boolean getIsDefault() { return this.isDefault; } /** ** Defines if the resource discovery is the default. The default resource discovery is the resource discovery * automatically created when you create an IPAM. *
* * @param isDefault * Defines if the resource discovery is the default. The default resource discovery is the resource discovery * automatically created when you create an IPAM. * @return Returns a reference to this object so that method calls can be chained together. */ public IpamResourceDiscovery withIsDefault(Boolean isDefault) { setIsDefault(isDefault); return this; } /** ** Defines if the resource discovery is the default. The default resource discovery is the resource discovery * automatically created when you create an IPAM. *
* * @return Defines if the resource discovery is the default. The default resource discovery is the resource * discovery automatically created when you create an IPAM. */ public Boolean isDefault() { return this.isDefault; } /** ** The lifecycle state of the resource discovery. *
*
* create-in-progress
- Resource discovery is being created.
*
* create-complete
- Resource discovery creation is complete.
*
* create-failed
- Resource discovery creation has failed.
*
* modify-in-progress
- Resource discovery is being modified.
*
* modify-complete
- Resource discovery modification is complete.
*
* modify-failed
- Resource discovery modification has failed.
*
* delete-in-progress
- Resource discovery is being deleted.
*
* delete-complete
- Resource discovery deletion is complete.
*
* delete-failed
- Resource discovery deletion has failed.
*
* isolate-in-progress
- Amazon Web Services account that created the resource discovery has been
* removed and the resource discovery is being isolated.
*
* isolate-complete
- Resource discovery isolation is complete.
*
* restore-in-progress
- Amazon Web Services account that created the resource discovery and was
* isolated has been restored.
*
* create-in-progress
- Resource discovery is being created.
*
* create-complete
- Resource discovery creation is complete.
*
* create-failed
- Resource discovery creation has failed.
*
* modify-in-progress
- Resource discovery is being modified.
*
* modify-complete
- Resource discovery modification is complete.
*
* modify-failed
- Resource discovery modification has failed.
*
* delete-in-progress
- Resource discovery is being deleted.
*
* delete-complete
- Resource discovery deletion is complete.
*
* delete-failed
- Resource discovery deletion has failed.
*
* isolate-in-progress
- Amazon Web Services account that created the resource discovery has
* been removed and the resource discovery is being isolated.
*
* isolate-complete
- Resource discovery isolation is complete.
*
* restore-in-progress
- Amazon Web Services account that created the resource discovery and was
* isolated has been restored.
*
* The lifecycle state of the resource discovery. *
*
* create-in-progress
- Resource discovery is being created.
*
* create-complete
- Resource discovery creation is complete.
*
* create-failed
- Resource discovery creation has failed.
*
* modify-in-progress
- Resource discovery is being modified.
*
* modify-complete
- Resource discovery modification is complete.
*
* modify-failed
- Resource discovery modification has failed.
*
* delete-in-progress
- Resource discovery is being deleted.
*
* delete-complete
- Resource discovery deletion is complete.
*
* delete-failed
- Resource discovery deletion has failed.
*
* isolate-in-progress
- Amazon Web Services account that created the resource discovery has been
* removed and the resource discovery is being isolated.
*
* isolate-complete
- Resource discovery isolation is complete.
*
* restore-in-progress
- Amazon Web Services account that created the resource discovery and was
* isolated has been restored.
*
* create-in-progress
- Resource discovery is being created.
*
* create-complete
- Resource discovery creation is complete.
*
* create-failed
- Resource discovery creation has failed.
*
* modify-in-progress
- Resource discovery is being modified.
*
* modify-complete
- Resource discovery modification is complete.
*
* modify-failed
- Resource discovery modification has failed.
*
* delete-in-progress
- Resource discovery is being deleted.
*
* delete-complete
- Resource discovery deletion is complete.
*
* delete-failed
- Resource discovery deletion has failed.
*
* isolate-in-progress
- Amazon Web Services account that created the resource discovery has
* been removed and the resource discovery is being isolated.
*
* isolate-complete
- Resource discovery isolation is complete.
*
* restore-in-progress
- Amazon Web Services account that created the resource discovery and
* was isolated has been restored.
*
* The lifecycle state of the resource discovery. *
*
* create-in-progress
- Resource discovery is being created.
*
* create-complete
- Resource discovery creation is complete.
*
* create-failed
- Resource discovery creation has failed.
*
* modify-in-progress
- Resource discovery is being modified.
*
* modify-complete
- Resource discovery modification is complete.
*
* modify-failed
- Resource discovery modification has failed.
*
* delete-in-progress
- Resource discovery is being deleted.
*
* delete-complete
- Resource discovery deletion is complete.
*
* delete-failed
- Resource discovery deletion has failed.
*
* isolate-in-progress
- Amazon Web Services account that created the resource discovery has been
* removed and the resource discovery is being isolated.
*
* isolate-complete
- Resource discovery isolation is complete.
*
* restore-in-progress
- Amazon Web Services account that created the resource discovery and was
* isolated has been restored.
*
* create-in-progress
- Resource discovery is being created.
*
* create-complete
- Resource discovery creation is complete.
*
* create-failed
- Resource discovery creation has failed.
*
* modify-in-progress
- Resource discovery is being modified.
*
* modify-complete
- Resource discovery modification is complete.
*
* modify-failed
- Resource discovery modification has failed.
*
* delete-in-progress
- Resource discovery is being deleted.
*
* delete-complete
- Resource discovery deletion is complete.
*
* delete-failed
- Resource discovery deletion has failed.
*
* isolate-in-progress
- Amazon Web Services account that created the resource discovery has
* been removed and the resource discovery is being isolated.
*
* isolate-complete
- Resource discovery isolation is complete.
*
* restore-in-progress
- Amazon Web Services account that created the resource discovery and was
* isolated has been restored.
*
* The lifecycle state of the resource discovery. *
*
* create-in-progress
- Resource discovery is being created.
*
* create-complete
- Resource discovery creation is complete.
*
* create-failed
- Resource discovery creation has failed.
*
* modify-in-progress
- Resource discovery is being modified.
*
* modify-complete
- Resource discovery modification is complete.
*
* modify-failed
- Resource discovery modification has failed.
*
* delete-in-progress
- Resource discovery is being deleted.
*
* delete-complete
- Resource discovery deletion is complete.
*
* delete-failed
- Resource discovery deletion has failed.
*
* isolate-in-progress
- Amazon Web Services account that created the resource discovery has been
* removed and the resource discovery is being isolated.
*
* isolate-complete
- Resource discovery isolation is complete.
*
* restore-in-progress
- Amazon Web Services account that created the resource discovery and was
* isolated has been restored.
*
* create-in-progress
- Resource discovery is being created.
*
* create-complete
- Resource discovery creation is complete.
*
* create-failed
- Resource discovery creation has failed.
*
* modify-in-progress
- Resource discovery is being modified.
*
* modify-complete
- Resource discovery modification is complete.
*
* modify-failed
- Resource discovery modification has failed.
*
* delete-in-progress
- Resource discovery is being deleted.
*
* delete-complete
- Resource discovery deletion is complete.
*
* delete-failed
- Resource discovery deletion has failed.
*
* isolate-in-progress
- Amazon Web Services account that created the resource discovery has
* been removed and the resource discovery is being isolated.
*
* isolate-complete
- Resource discovery isolation is complete.
*
* restore-in-progress
- Amazon Web Services account that created the resource discovery and was
* isolated has been 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 IpamResourceDiscovery 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 IpamResourceDiscovery withTags(java.util.Collection