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

com.amazonaws.services.tnb.model.ValidateSolNetworkPackageContentResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Telco Network Builder module holds the client classes that are used for communicating with AWS Telco Network Builder Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.tnb.model;

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

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

    /**
     * 

* Network package ARN. *

*/ private String arn; /** *

* Network package ID. *

*/ private String id; /** *

* Network package metadata. *

*/ private ValidateSolNetworkPackageContentMetadata metadata; /** *

* Network service descriptor ID. *

*/ private String nsdId; /** *

* Network service descriptor name. *

*/ private String nsdName; /** *

* Network service descriptor version. *

*/ private String nsdVersion; /** *

* Function package IDs. *

*/ private java.util.List vnfPkgIds; /** *

* Network package ARN. *

* * @param arn * Network package ARN. */ public void setArn(String arn) { this.arn = arn; } /** *

* Network package ARN. *

* * @return Network package ARN. */ public String getArn() { return this.arn; } /** *

* Network package ARN. *

* * @param arn * Network package ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateSolNetworkPackageContentResult withArn(String arn) { setArn(arn); return this; } /** *

* Network package ID. *

* * @param id * Network package ID. */ public void setId(String id) { this.id = id; } /** *

* Network package ID. *

* * @return Network package ID. */ public String getId() { return this.id; } /** *

* Network package ID. *

* * @param id * Network package ID. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateSolNetworkPackageContentResult withId(String id) { setId(id); return this; } /** *

* Network package metadata. *

* * @param metadata * Network package metadata. */ public void setMetadata(ValidateSolNetworkPackageContentMetadata metadata) { this.metadata = metadata; } /** *

* Network package metadata. *

* * @return Network package metadata. */ public ValidateSolNetworkPackageContentMetadata getMetadata() { return this.metadata; } /** *

* Network package metadata. *

* * @param metadata * Network package metadata. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateSolNetworkPackageContentResult withMetadata(ValidateSolNetworkPackageContentMetadata metadata) { setMetadata(metadata); return this; } /** *

* Network service descriptor ID. *

* * @param nsdId * Network service descriptor ID. */ public void setNsdId(String nsdId) { this.nsdId = nsdId; } /** *

* Network service descriptor ID. *

* * @return Network service descriptor ID. */ public String getNsdId() { return this.nsdId; } /** *

* Network service descriptor ID. *

* * @param nsdId * Network service descriptor ID. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateSolNetworkPackageContentResult withNsdId(String nsdId) { setNsdId(nsdId); return this; } /** *

* Network service descriptor name. *

* * @param nsdName * Network service descriptor name. */ public void setNsdName(String nsdName) { this.nsdName = nsdName; } /** *

* Network service descriptor name. *

* * @return Network service descriptor name. */ public String getNsdName() { return this.nsdName; } /** *

* Network service descriptor name. *

* * @param nsdName * Network service descriptor name. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateSolNetworkPackageContentResult withNsdName(String nsdName) { setNsdName(nsdName); return this; } /** *

* Network service descriptor version. *

* * @param nsdVersion * Network service descriptor version. */ public void setNsdVersion(String nsdVersion) { this.nsdVersion = nsdVersion; } /** *

* Network service descriptor version. *

* * @return Network service descriptor version. */ public String getNsdVersion() { return this.nsdVersion; } /** *

* Network service descriptor version. *

* * @param nsdVersion * Network service descriptor version. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateSolNetworkPackageContentResult withNsdVersion(String nsdVersion) { setNsdVersion(nsdVersion); return this; } /** *

* Function package IDs. *

* * @return Function package IDs. */ public java.util.List getVnfPkgIds() { return vnfPkgIds; } /** *

* Function package IDs. *

* * @param vnfPkgIds * Function package IDs. */ public void setVnfPkgIds(java.util.Collection vnfPkgIds) { if (vnfPkgIds == null) { this.vnfPkgIds = null; return; } this.vnfPkgIds = new java.util.ArrayList(vnfPkgIds); } /** *

* Function package IDs. *

*

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

* * @param vnfPkgIds * Function package IDs. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateSolNetworkPackageContentResult withVnfPkgIds(String... vnfPkgIds) { if (this.vnfPkgIds == null) { setVnfPkgIds(new java.util.ArrayList(vnfPkgIds.length)); } for (String ele : vnfPkgIds) { this.vnfPkgIds.add(ele); } return this; } /** *

* Function package IDs. *

* * @param vnfPkgIds * Function package IDs. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateSolNetworkPackageContentResult withVnfPkgIds(java.util.Collection vnfPkgIds) { setVnfPkgIds(vnfPkgIds); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getMetadata() != null) sb.append("Metadata: ").append(getMetadata()).append(","); if (getNsdId() != null) sb.append("NsdId: ").append(getNsdId()).append(","); if (getNsdName() != null) sb.append("NsdName: ").append(getNsdName()).append(","); if (getNsdVersion() != null) sb.append("NsdVersion: ").append(getNsdVersion()).append(","); if (getVnfPkgIds() != null) sb.append("VnfPkgIds: ").append(getVnfPkgIds()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ValidateSolNetworkPackageContentResult == false) return false; ValidateSolNetworkPackageContentResult other = (ValidateSolNetworkPackageContentResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getMetadata() == null ^ this.getMetadata() == null) return false; if (other.getMetadata() != null && other.getMetadata().equals(this.getMetadata()) == false) return false; if (other.getNsdId() == null ^ this.getNsdId() == null) return false; if (other.getNsdId() != null && other.getNsdId().equals(this.getNsdId()) == false) return false; if (other.getNsdName() == null ^ this.getNsdName() == null) return false; if (other.getNsdName() != null && other.getNsdName().equals(this.getNsdName()) == false) return false; if (other.getNsdVersion() == null ^ this.getNsdVersion() == null) return false; if (other.getNsdVersion() != null && other.getNsdVersion().equals(this.getNsdVersion()) == false) return false; if (other.getVnfPkgIds() == null ^ this.getVnfPkgIds() == null) return false; if (other.getVnfPkgIds() != null && other.getVnfPkgIds().equals(this.getVnfPkgIds()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getMetadata() == null) ? 0 : getMetadata().hashCode()); hashCode = prime * hashCode + ((getNsdId() == null) ? 0 : getNsdId().hashCode()); hashCode = prime * hashCode + ((getNsdName() == null) ? 0 : getNsdName().hashCode()); hashCode = prime * hashCode + ((getNsdVersion() == null) ? 0 : getNsdVersion().hashCode()); hashCode = prime * hashCode + ((getVnfPkgIds() == null) ? 0 : getVnfPkgIds().hashCode()); return hashCode; } @Override public ValidateSolNetworkPackageContentResult clone() { try { return (ValidateSolNetworkPackageContentResult) 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