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

com.amazonaws.services.ec2.model.NetworkInsightsAccessScope 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;

/**
 * 

* Describes a Network Access Scope. *

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

* The ID of the Network Access Scope. *

*/ private String networkInsightsAccessScopeId; /** *

* The Amazon Resource Name (ARN) of the Network Access Scope. *

*/ private String networkInsightsAccessScopeArn; /** *

* The creation date. *

*/ private java.util.Date createdDate; /** *

* The last updated date. *

*/ private java.util.Date updatedDate; /** *

* The tags. *

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

* The ID of the Network Access Scope. *

* * @param networkInsightsAccessScopeId * The ID of the Network Access Scope. */ public void setNetworkInsightsAccessScopeId(String networkInsightsAccessScopeId) { this.networkInsightsAccessScopeId = networkInsightsAccessScopeId; } /** *

* The ID of the Network Access Scope. *

* * @return The ID of the Network Access Scope. */ public String getNetworkInsightsAccessScopeId() { return this.networkInsightsAccessScopeId; } /** *

* The ID of the Network Access Scope. *

* * @param networkInsightsAccessScopeId * The ID of the Network Access Scope. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAccessScope withNetworkInsightsAccessScopeId(String networkInsightsAccessScopeId) { setNetworkInsightsAccessScopeId(networkInsightsAccessScopeId); return this; } /** *

* The Amazon Resource Name (ARN) of the Network Access Scope. *

* * @param networkInsightsAccessScopeArn * The Amazon Resource Name (ARN) of the Network Access Scope. */ public void setNetworkInsightsAccessScopeArn(String networkInsightsAccessScopeArn) { this.networkInsightsAccessScopeArn = networkInsightsAccessScopeArn; } /** *

* The Amazon Resource Name (ARN) of the Network Access Scope. *

* * @return The Amazon Resource Name (ARN) of the Network Access Scope. */ public String getNetworkInsightsAccessScopeArn() { return this.networkInsightsAccessScopeArn; } /** *

* The Amazon Resource Name (ARN) of the Network Access Scope. *

* * @param networkInsightsAccessScopeArn * The Amazon Resource Name (ARN) of the Network Access Scope. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAccessScope withNetworkInsightsAccessScopeArn(String networkInsightsAccessScopeArn) { setNetworkInsightsAccessScopeArn(networkInsightsAccessScopeArn); return this; } /** *

* The creation date. *

* * @param createdDate * The creation date. */ public void setCreatedDate(java.util.Date createdDate) { this.createdDate = createdDate; } /** *

* The creation date. *

* * @return The creation date. */ public java.util.Date getCreatedDate() { return this.createdDate; } /** *

* The creation date. *

* * @param createdDate * The creation date. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAccessScope withCreatedDate(java.util.Date createdDate) { setCreatedDate(createdDate); return this; } /** *

* The last updated date. *

* * @param updatedDate * The last updated date. */ public void setUpdatedDate(java.util.Date updatedDate) { this.updatedDate = updatedDate; } /** *

* The last updated date. *

* * @return The last updated date. */ public java.util.Date getUpdatedDate() { return this.updatedDate; } /** *

* The last updated date. *

* * @param updatedDate * The last updated date. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAccessScope withUpdatedDate(java.util.Date updatedDate) { setUpdatedDate(updatedDate); return this; } /** *

* The tags. *

* * @return The tags. */ public java.util.List getTags() { if (tags == null) { tags = new com.amazonaws.internal.SdkInternalList(); } return tags; } /** *

* The tags. *

* * @param tags * The tags. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new com.amazonaws.internal.SdkInternalList(tags); } /** *

* The tags. *

*

* 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 * The tags. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAccessScope 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; } /** *

* The tags. *

* * @param tags * The tags. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAccessScope 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 (getNetworkInsightsAccessScopeId() != null) sb.append("NetworkInsightsAccessScopeId: ").append(getNetworkInsightsAccessScopeId()).append(","); if (getNetworkInsightsAccessScopeArn() != null) sb.append("NetworkInsightsAccessScopeArn: ").append(getNetworkInsightsAccessScopeArn()).append(","); if (getCreatedDate() != null) sb.append("CreatedDate: ").append(getCreatedDate()).append(","); if (getUpdatedDate() != null) sb.append("UpdatedDate: ").append(getUpdatedDate()).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 NetworkInsightsAccessScope == false) return false; NetworkInsightsAccessScope other = (NetworkInsightsAccessScope) obj; if (other.getNetworkInsightsAccessScopeId() == null ^ this.getNetworkInsightsAccessScopeId() == null) return false; if (other.getNetworkInsightsAccessScopeId() != null && other.getNetworkInsightsAccessScopeId().equals(this.getNetworkInsightsAccessScopeId()) == false) return false; if (other.getNetworkInsightsAccessScopeArn() == null ^ this.getNetworkInsightsAccessScopeArn() == null) return false; if (other.getNetworkInsightsAccessScopeArn() != null && other.getNetworkInsightsAccessScopeArn().equals(this.getNetworkInsightsAccessScopeArn()) == false) return false; if (other.getCreatedDate() == null ^ this.getCreatedDate() == null) return false; if (other.getCreatedDate() != null && other.getCreatedDate().equals(this.getCreatedDate()) == false) return false; if (other.getUpdatedDate() == null ^ this.getUpdatedDate() == null) return false; if (other.getUpdatedDate() != null && other.getUpdatedDate().equals(this.getUpdatedDate()) == 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 + ((getNetworkInsightsAccessScopeId() == null) ? 0 : getNetworkInsightsAccessScopeId().hashCode()); hashCode = prime * hashCode + ((getNetworkInsightsAccessScopeArn() == null) ? 0 : getNetworkInsightsAccessScopeArn().hashCode()); hashCode = prime * hashCode + ((getCreatedDate() == null) ? 0 : getCreatedDate().hashCode()); hashCode = prime * hashCode + ((getUpdatedDate() == null) ? 0 : getUpdatedDate().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public NetworkInsightsAccessScope clone() { try { return (NetworkInsightsAccessScope) 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