com.amazonaws.services.tnb.model.ListSolFunctionPackageInfo Maven / Gradle / Ivy
Show all versions of aws-java-sdk-tnb Show documentation
/*
* 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;
/**
*
* Information about a function package.
*
*
* A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI
* standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how
* the network functions should run on your network.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ListSolFunctionPackageInfo implements Serializable, Cloneable, StructuredPojo {
/**
*
* Function package ARN.
*
*/
private String arn;
/**
*
* ID of the function package.
*
*/
private String id;
/**
*
* The metadata of the function package.
*
*/
private ListSolFunctionPackageMetadata metadata;
/**
*
* Onboarding state of the function package.
*
*/
private String onboardingState;
/**
*
* Operational state of the function package.
*
*/
private String operationalState;
/**
*
* Usage state of the function package.
*
*/
private String usageState;
/**
*
* The product name for the network function.
*
*/
private String vnfProductName;
/**
*
* Provider of the function package and the function package descriptor.
*
*/
private String vnfProvider;
/**
*
* Identifies the function package and the function package descriptor.
*
*/
private String vnfdId;
/**
*
* Identifies the version of the function package descriptor.
*
*/
private String vnfdVersion;
/**
*
* Function package ARN.
*
*
* @param arn
* Function package ARN.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* Function package ARN.
*
*
* @return Function package ARN.
*/
public String getArn() {
return this.arn;
}
/**
*
* Function package ARN.
*
*
* @param arn
* Function package ARN.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListSolFunctionPackageInfo withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* ID of the function package.
*
*
* @param id
* ID of the function package.
*/
public void setId(String id) {
this.id = id;
}
/**
*
* ID of the function package.
*
*
* @return ID of the function package.
*/
public String getId() {
return this.id;
}
/**
*
* ID of the function package.
*
*
* @param id
* ID of the function package.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListSolFunctionPackageInfo withId(String id) {
setId(id);
return this;
}
/**
*
* The metadata of the function package.
*
*
* @param metadata
* The metadata of the function package.
*/
public void setMetadata(ListSolFunctionPackageMetadata metadata) {
this.metadata = metadata;
}
/**
*
* The metadata of the function package.
*
*
* @return The metadata of the function package.
*/
public ListSolFunctionPackageMetadata getMetadata() {
return this.metadata;
}
/**
*
* The metadata of the function package.
*
*
* @param metadata
* The metadata of the function package.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListSolFunctionPackageInfo withMetadata(ListSolFunctionPackageMetadata metadata) {
setMetadata(metadata);
return this;
}
/**
*
* Onboarding state of the function package.
*
*
* @param onboardingState
* Onboarding state of the function package.
* @see OnboardingState
*/
public void setOnboardingState(String onboardingState) {
this.onboardingState = onboardingState;
}
/**
*
* Onboarding state of the function package.
*
*
* @return Onboarding state of the function package.
* @see OnboardingState
*/
public String getOnboardingState() {
return this.onboardingState;
}
/**
*
* Onboarding state of the function package.
*
*
* @param onboardingState
* Onboarding state of the function package.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OnboardingState
*/
public ListSolFunctionPackageInfo withOnboardingState(String onboardingState) {
setOnboardingState(onboardingState);
return this;
}
/**
*
* Onboarding state of the function package.
*
*
* @param onboardingState
* Onboarding state of the function package.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OnboardingState
*/
public ListSolFunctionPackageInfo withOnboardingState(OnboardingState onboardingState) {
this.onboardingState = onboardingState.toString();
return this;
}
/**
*
* Operational state of the function package.
*
*
* @param operationalState
* Operational state of the function package.
* @see OperationalState
*/
public void setOperationalState(String operationalState) {
this.operationalState = operationalState;
}
/**
*
* Operational state of the function package.
*
*
* @return Operational state of the function package.
* @see OperationalState
*/
public String getOperationalState() {
return this.operationalState;
}
/**
*
* Operational state of the function package.
*
*
* @param operationalState
* Operational state of the function package.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OperationalState
*/
public ListSolFunctionPackageInfo withOperationalState(String operationalState) {
setOperationalState(operationalState);
return this;
}
/**
*
* Operational state of the function package.
*
*
* @param operationalState
* Operational state of the function package.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OperationalState
*/
public ListSolFunctionPackageInfo withOperationalState(OperationalState operationalState) {
this.operationalState = operationalState.toString();
return this;
}
/**
*
* Usage state of the function package.
*
*
* @param usageState
* Usage state of the function package.
* @see UsageState
*/
public void setUsageState(String usageState) {
this.usageState = usageState;
}
/**
*
* Usage state of the function package.
*
*
* @return Usage state of the function package.
* @see UsageState
*/
public String getUsageState() {
return this.usageState;
}
/**
*
* Usage state of the function package.
*
*
* @param usageState
* Usage state of the function package.
* @return Returns a reference to this object so that method calls can be chained together.
* @see UsageState
*/
public ListSolFunctionPackageInfo withUsageState(String usageState) {
setUsageState(usageState);
return this;
}
/**
*
* Usage state of the function package.
*
*
* @param usageState
* Usage state of the function package.
* @return Returns a reference to this object so that method calls can be chained together.
* @see UsageState
*/
public ListSolFunctionPackageInfo withUsageState(UsageState usageState) {
this.usageState = usageState.toString();
return this;
}
/**
*
* The product name for the network function.
*
*
* @param vnfProductName
* The product name for the network function.
*/
public void setVnfProductName(String vnfProductName) {
this.vnfProductName = vnfProductName;
}
/**
*
* The product name for the network function.
*
*
* @return The product name for the network function.
*/
public String getVnfProductName() {
return this.vnfProductName;
}
/**
*
* The product name for the network function.
*
*
* @param vnfProductName
* The product name for the network function.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListSolFunctionPackageInfo withVnfProductName(String vnfProductName) {
setVnfProductName(vnfProductName);
return this;
}
/**
*
* Provider of the function package and the function package descriptor.
*
*
* @param vnfProvider
* Provider of the function package and the function package descriptor.
*/
public void setVnfProvider(String vnfProvider) {
this.vnfProvider = vnfProvider;
}
/**
*
* Provider of the function package and the function package descriptor.
*
*
* @return Provider of the function package and the function package descriptor.
*/
public String getVnfProvider() {
return this.vnfProvider;
}
/**
*
* Provider of the function package and the function package descriptor.
*
*
* @param vnfProvider
* Provider of the function package and the function package descriptor.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListSolFunctionPackageInfo withVnfProvider(String vnfProvider) {
setVnfProvider(vnfProvider);
return this;
}
/**
*
* Identifies the function package and the function package descriptor.
*
*
* @param vnfdId
* Identifies the function package and the function package descriptor.
*/
public void setVnfdId(String vnfdId) {
this.vnfdId = vnfdId;
}
/**
*
* Identifies the function package and the function package descriptor.
*
*
* @return Identifies the function package and the function package descriptor.
*/
public String getVnfdId() {
return this.vnfdId;
}
/**
*
* Identifies the function package and the function package descriptor.
*
*
* @param vnfdId
* Identifies the function package and the function package descriptor.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListSolFunctionPackageInfo withVnfdId(String vnfdId) {
setVnfdId(vnfdId);
return this;
}
/**
*
* Identifies the version of the function package descriptor.
*
*
* @param vnfdVersion
* Identifies the version of the function package descriptor.
*/
public void setVnfdVersion(String vnfdVersion) {
this.vnfdVersion = vnfdVersion;
}
/**
*
* Identifies the version of the function package descriptor.
*
*
* @return Identifies the version of the function package descriptor.
*/
public String getVnfdVersion() {
return this.vnfdVersion;
}
/**
*
* Identifies the version of the function package descriptor.
*
*
* @param vnfdVersion
* Identifies the version of the function package descriptor.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListSolFunctionPackageInfo withVnfdVersion(String vnfdVersion) {
setVnfdVersion(vnfdVersion);
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 (getOnboardingState() != null)
sb.append("OnboardingState: ").append(getOnboardingState()).append(",");
if (getOperationalState() != null)
sb.append("OperationalState: ").append(getOperationalState()).append(",");
if (getUsageState() != null)
sb.append("UsageState: ").append(getUsageState()).append(",");
if (getVnfProductName() != null)
sb.append("VnfProductName: ").append(getVnfProductName()).append(",");
if (getVnfProvider() != null)
sb.append("VnfProvider: ").append(getVnfProvider()).append(",");
if (getVnfdId() != null)
sb.append("VnfdId: ").append(getVnfdId()).append(",");
if (getVnfdVersion() != null)
sb.append("VnfdVersion: ").append(getVnfdVersion());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListSolFunctionPackageInfo == false)
return false;
ListSolFunctionPackageInfo other = (ListSolFunctionPackageInfo) 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.getOnboardingState() == null ^ this.getOnboardingState() == null)
return false;
if (other.getOnboardingState() != null && other.getOnboardingState().equals(this.getOnboardingState()) == false)
return false;
if (other.getOperationalState() == null ^ this.getOperationalState() == null)
return false;
if (other.getOperationalState() != null && other.getOperationalState().equals(this.getOperationalState()) == false)
return false;
if (other.getUsageState() == null ^ this.getUsageState() == null)
return false;
if (other.getUsageState() != null && other.getUsageState().equals(this.getUsageState()) == false)
return false;
if (other.getVnfProductName() == null ^ this.getVnfProductName() == null)
return false;
if (other.getVnfProductName() != null && other.getVnfProductName().equals(this.getVnfProductName()) == false)
return false;
if (other.getVnfProvider() == null ^ this.getVnfProvider() == null)
return false;
if (other.getVnfProvider() != null && other.getVnfProvider().equals(this.getVnfProvider()) == false)
return false;
if (other.getVnfdId() == null ^ this.getVnfdId() == null)
return false;
if (other.getVnfdId() != null && other.getVnfdId().equals(this.getVnfdId()) == false)
return false;
if (other.getVnfdVersion() == null ^ this.getVnfdVersion() == null)
return false;
if (other.getVnfdVersion() != null && other.getVnfdVersion().equals(this.getVnfdVersion()) == 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 + ((getOnboardingState() == null) ? 0 : getOnboardingState().hashCode());
hashCode = prime * hashCode + ((getOperationalState() == null) ? 0 : getOperationalState().hashCode());
hashCode = prime * hashCode + ((getUsageState() == null) ? 0 : getUsageState().hashCode());
hashCode = prime * hashCode + ((getVnfProductName() == null) ? 0 : getVnfProductName().hashCode());
hashCode = prime * hashCode + ((getVnfProvider() == null) ? 0 : getVnfProvider().hashCode());
hashCode = prime * hashCode + ((getVnfdId() == null) ? 0 : getVnfdId().hashCode());
hashCode = prime * hashCode + ((getVnfdVersion() == null) ? 0 : getVnfdVersion().hashCode());
return hashCode;
}
@Override
public ListSolFunctionPackageInfo clone() {
try {
return (ListSolFunctionPackageInfo) 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.ListSolFunctionPackageInfoMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}