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

com.amazonaws.services.tnb.model.ListSolNetworkPackageInfo 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;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Details of a network package. *

*

* A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to * deploy and the Amazon Web Services infrastructure you want to deploy them on. *

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

* Network package ARN. *

*/ private String arn; /** *

* ID of the individual network package. *

*/ private String id; /** *

* The metadata of the network package. *

*/ private ListSolNetworkPackageMetadata metadata; /** *

* Designer of the onboarded network service descriptor in the network package. *

*/ private String nsdDesigner; /** *

* ID of the network service descriptor on which the network package is based. *

*/ private String nsdId; /** *

* Identifies a network service descriptor in a version independent manner. *

*/ private String nsdInvariantId; /** *

* Name of the onboarded network service descriptor in the network package. *

*/ private String nsdName; /** *

* Onboarding state of the network service descriptor in the network package. *

*/ private String nsdOnboardingState; /** *

* Operational state of the network service descriptor in the network package. *

*/ private String nsdOperationalState; /** *

* Usage state of the network service descriptor in the network package. *

*/ private String nsdUsageState; /** *

* Version of the onboarded network service descriptor in the network package. *

*/ private String nsdVersion; /** *

* Identifies the function package for the function package descriptor referenced by the onboarded network package. *

*/ 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 ListSolNetworkPackageInfo withArn(String arn) { setArn(arn); return this; } /** *

* ID of the individual network package. *

* * @param id * ID of the individual network package. */ public void setId(String id) { this.id = id; } /** *

* ID of the individual network package. *

* * @return ID of the individual network package. */ public String getId() { return this.id; } /** *

* ID of the individual network package. *

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

* The metadata of the network package. *

* * @param metadata * The metadata of the network package. */ public void setMetadata(ListSolNetworkPackageMetadata metadata) { this.metadata = metadata; } /** *

* The metadata of the network package. *

* * @return The metadata of the network package. */ public ListSolNetworkPackageMetadata getMetadata() { return this.metadata; } /** *

* The metadata of the network package. *

* * @param metadata * The metadata of the network package. * @return Returns a reference to this object so that method calls can be chained together. */ public ListSolNetworkPackageInfo withMetadata(ListSolNetworkPackageMetadata metadata) { setMetadata(metadata); return this; } /** *

* Designer of the onboarded network service descriptor in the network package. *

* * @param nsdDesigner * Designer of the onboarded network service descriptor in the network package. */ public void setNsdDesigner(String nsdDesigner) { this.nsdDesigner = nsdDesigner; } /** *

* Designer of the onboarded network service descriptor in the network package. *

* * @return Designer of the onboarded network service descriptor in the network package. */ public String getNsdDesigner() { return this.nsdDesigner; } /** *

* Designer of the onboarded network service descriptor in the network package. *

* * @param nsdDesigner * Designer of the onboarded network service descriptor in the network package. * @return Returns a reference to this object so that method calls can be chained together. */ public ListSolNetworkPackageInfo withNsdDesigner(String nsdDesigner) { setNsdDesigner(nsdDesigner); return this; } /** *

* ID of the network service descriptor on which the network package is based. *

* * @param nsdId * ID of the network service descriptor on which the network package is based. */ public void setNsdId(String nsdId) { this.nsdId = nsdId; } /** *

* ID of the network service descriptor on which the network package is based. *

* * @return ID of the network service descriptor on which the network package is based. */ public String getNsdId() { return this.nsdId; } /** *

* ID of the network service descriptor on which the network package is based. *

* * @param nsdId * ID of the network service descriptor on which the network package is based. * @return Returns a reference to this object so that method calls can be chained together. */ public ListSolNetworkPackageInfo withNsdId(String nsdId) { setNsdId(nsdId); return this; } /** *

* Identifies a network service descriptor in a version independent manner. *

* * @param nsdInvariantId * Identifies a network service descriptor in a version independent manner. */ public void setNsdInvariantId(String nsdInvariantId) { this.nsdInvariantId = nsdInvariantId; } /** *

* Identifies a network service descriptor in a version independent manner. *

* * @return Identifies a network service descriptor in a version independent manner. */ public String getNsdInvariantId() { return this.nsdInvariantId; } /** *

* Identifies a network service descriptor in a version independent manner. *

* * @param nsdInvariantId * Identifies a network service descriptor in a version independent manner. * @return Returns a reference to this object so that method calls can be chained together. */ public ListSolNetworkPackageInfo withNsdInvariantId(String nsdInvariantId) { setNsdInvariantId(nsdInvariantId); return this; } /** *

* Name of the onboarded network service descriptor in the network package. *

* * @param nsdName * Name of the onboarded network service descriptor in the network package. */ public void setNsdName(String nsdName) { this.nsdName = nsdName; } /** *

* Name of the onboarded network service descriptor in the network package. *

* * @return Name of the onboarded network service descriptor in the network package. */ public String getNsdName() { return this.nsdName; } /** *

* Name of the onboarded network service descriptor in the network package. *

* * @param nsdName * Name of the onboarded network service descriptor in the network package. * @return Returns a reference to this object so that method calls can be chained together. */ public ListSolNetworkPackageInfo withNsdName(String nsdName) { setNsdName(nsdName); return this; } /** *

* Onboarding state of the network service descriptor in the network package. *

* * @param nsdOnboardingState * Onboarding state of the network service descriptor in the network package. * @see NsdOnboardingState */ public void setNsdOnboardingState(String nsdOnboardingState) { this.nsdOnboardingState = nsdOnboardingState; } /** *

* Onboarding state of the network service descriptor in the network package. *

* * @return Onboarding state of the network service descriptor in the network package. * @see NsdOnboardingState */ public String getNsdOnboardingState() { return this.nsdOnboardingState; } /** *

* Onboarding state of the network service descriptor in the network package. *

* * @param nsdOnboardingState * Onboarding state of the network service descriptor in the network package. * @return Returns a reference to this object so that method calls can be chained together. * @see NsdOnboardingState */ public ListSolNetworkPackageInfo withNsdOnboardingState(String nsdOnboardingState) { setNsdOnboardingState(nsdOnboardingState); return this; } /** *

* Onboarding state of the network service descriptor in the network package. *

* * @param nsdOnboardingState * Onboarding state of the network service descriptor in the network package. * @return Returns a reference to this object so that method calls can be chained together. * @see NsdOnboardingState */ public ListSolNetworkPackageInfo withNsdOnboardingState(NsdOnboardingState nsdOnboardingState) { this.nsdOnboardingState = nsdOnboardingState.toString(); return this; } /** *

* Operational state of the network service descriptor in the network package. *

* * @param nsdOperationalState * Operational state of the network service descriptor in the network package. * @see NsdOperationalState */ public void setNsdOperationalState(String nsdOperationalState) { this.nsdOperationalState = nsdOperationalState; } /** *

* Operational state of the network service descriptor in the network package. *

* * @return Operational state of the network service descriptor in the network package. * @see NsdOperationalState */ public String getNsdOperationalState() { return this.nsdOperationalState; } /** *

* Operational state of the network service descriptor in the network package. *

* * @param nsdOperationalState * Operational state of the network service descriptor in the network package. * @return Returns a reference to this object so that method calls can be chained together. * @see NsdOperationalState */ public ListSolNetworkPackageInfo withNsdOperationalState(String nsdOperationalState) { setNsdOperationalState(nsdOperationalState); return this; } /** *

* Operational state of the network service descriptor in the network package. *

* * @param nsdOperationalState * Operational state of the network service descriptor in the network package. * @return Returns a reference to this object so that method calls can be chained together. * @see NsdOperationalState */ public ListSolNetworkPackageInfo withNsdOperationalState(NsdOperationalState nsdOperationalState) { this.nsdOperationalState = nsdOperationalState.toString(); return this; } /** *

* Usage state of the network service descriptor in the network package. *

* * @param nsdUsageState * Usage state of the network service descriptor in the network package. * @see NsdUsageState */ public void setNsdUsageState(String nsdUsageState) { this.nsdUsageState = nsdUsageState; } /** *

* Usage state of the network service descriptor in the network package. *

* * @return Usage state of the network service descriptor in the network package. * @see NsdUsageState */ public String getNsdUsageState() { return this.nsdUsageState; } /** *

* Usage state of the network service descriptor in the network package. *

* * @param nsdUsageState * Usage state of the network service descriptor in the network package. * @return Returns a reference to this object so that method calls can be chained together. * @see NsdUsageState */ public ListSolNetworkPackageInfo withNsdUsageState(String nsdUsageState) { setNsdUsageState(nsdUsageState); return this; } /** *

* Usage state of the network service descriptor in the network package. *

* * @param nsdUsageState * Usage state of the network service descriptor in the network package. * @return Returns a reference to this object so that method calls can be chained together. * @see NsdUsageState */ public ListSolNetworkPackageInfo withNsdUsageState(NsdUsageState nsdUsageState) { this.nsdUsageState = nsdUsageState.toString(); return this; } /** *

* Version of the onboarded network service descriptor in the network package. *

* * @param nsdVersion * Version of the onboarded network service descriptor in the network package. */ public void setNsdVersion(String nsdVersion) { this.nsdVersion = nsdVersion; } /** *

* Version of the onboarded network service descriptor in the network package. *

* * @return Version of the onboarded network service descriptor in the network package. */ public String getNsdVersion() { return this.nsdVersion; } /** *

* Version of the onboarded network service descriptor in the network package. *

* * @param nsdVersion * Version of the onboarded network service descriptor in the network package. * @return Returns a reference to this object so that method calls can be chained together. */ public ListSolNetworkPackageInfo withNsdVersion(String nsdVersion) { setNsdVersion(nsdVersion); return this; } /** *

* Identifies the function package for the function package descriptor referenced by the onboarded network package. *

* * @return Identifies the function package for the function package descriptor referenced by the onboarded network * package. */ public java.util.List getVnfPkgIds() { return vnfPkgIds; } /** *

* Identifies the function package for the function package descriptor referenced by the onboarded network package. *

* * @param vnfPkgIds * Identifies the function package for the function package descriptor referenced by the onboarded network * package. */ public void setVnfPkgIds(java.util.Collection vnfPkgIds) { if (vnfPkgIds == null) { this.vnfPkgIds = null; return; } this.vnfPkgIds = new java.util.ArrayList(vnfPkgIds); } /** *

* Identifies the function package for the function package descriptor referenced by the onboarded network package. *

*

* 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 * Identifies the function package for the function package descriptor referenced by the onboarded network * package. * @return Returns a reference to this object so that method calls can be chained together. */ public ListSolNetworkPackageInfo withVnfPkgIds(String... vnfPkgIds) { if (this.vnfPkgIds == null) { setVnfPkgIds(new java.util.ArrayList(vnfPkgIds.length)); } for (String ele : vnfPkgIds) { this.vnfPkgIds.add(ele); } return this; } /** *

* Identifies the function package for the function package descriptor referenced by the onboarded network package. *

* * @param vnfPkgIds * Identifies the function package for the function package descriptor referenced by the onboarded network * package. * @return Returns a reference to this object so that method calls can be chained together. */ public ListSolNetworkPackageInfo 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 (getNsdDesigner() != null) sb.append("NsdDesigner: ").append(getNsdDesigner()).append(","); if (getNsdId() != null) sb.append("NsdId: ").append(getNsdId()).append(","); if (getNsdInvariantId() != null) sb.append("NsdInvariantId: ").append(getNsdInvariantId()).append(","); if (getNsdName() != null) sb.append("NsdName: ").append(getNsdName()).append(","); if (getNsdOnboardingState() != null) sb.append("NsdOnboardingState: ").append(getNsdOnboardingState()).append(","); if (getNsdOperationalState() != null) sb.append("NsdOperationalState: ").append(getNsdOperationalState()).append(","); if (getNsdUsageState() != null) sb.append("NsdUsageState: ").append(getNsdUsageState()).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 ListSolNetworkPackageInfo == false) return false; ListSolNetworkPackageInfo other = (ListSolNetworkPackageInfo) 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.getNsdDesigner() == null ^ this.getNsdDesigner() == null) return false; if (other.getNsdDesigner() != null && other.getNsdDesigner().equals(this.getNsdDesigner()) == 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.getNsdInvariantId() == null ^ this.getNsdInvariantId() == null) return false; if (other.getNsdInvariantId() != null && other.getNsdInvariantId().equals(this.getNsdInvariantId()) == 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.getNsdOnboardingState() == null ^ this.getNsdOnboardingState() == null) return false; if (other.getNsdOnboardingState() != null && other.getNsdOnboardingState().equals(this.getNsdOnboardingState()) == false) return false; if (other.getNsdOperationalState() == null ^ this.getNsdOperationalState() == null) return false; if (other.getNsdOperationalState() != null && other.getNsdOperationalState().equals(this.getNsdOperationalState()) == false) return false; if (other.getNsdUsageState() == null ^ this.getNsdUsageState() == null) return false; if (other.getNsdUsageState() != null && other.getNsdUsageState().equals(this.getNsdUsageState()) == 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 + ((getNsdDesigner() == null) ? 0 : getNsdDesigner().hashCode()); hashCode = prime * hashCode + ((getNsdId() == null) ? 0 : getNsdId().hashCode()); hashCode = prime * hashCode + ((getNsdInvariantId() == null) ? 0 : getNsdInvariantId().hashCode()); hashCode = prime * hashCode + ((getNsdName() == null) ? 0 : getNsdName().hashCode()); hashCode = prime * hashCode + ((getNsdOnboardingState() == null) ? 0 : getNsdOnboardingState().hashCode()); hashCode = prime * hashCode + ((getNsdOperationalState() == null) ? 0 : getNsdOperationalState().hashCode()); hashCode = prime * hashCode + ((getNsdUsageState() == null) ? 0 : getNsdUsageState().hashCode()); hashCode = prime * hashCode + ((getNsdVersion() == null) ? 0 : getNsdVersion().hashCode()); hashCode = prime * hashCode + ((getVnfPkgIds() == null) ? 0 : getVnfPkgIds().hashCode()); return hashCode; } @Override public ListSolNetworkPackageInfo clone() { try { return (ListSolNetworkPackageInfo) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.tnb.model.transform.ListSolNetworkPackageInfoMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy