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

com.amazonaws.services.tnb.model.GetSolNetworkOperationResult 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 GetSolNetworkOperationResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* Network operation ARN. *

*/ private String arn; /** *

* Error related to this specific network operation occurrence. *

*/ private ProblemDetails error; /** *

* ID of this network operation occurrence. *

*/ private String id; /** *

* Type of the operation represented by this occurrence. *

*/ private String lcmOperationType; /** *

* Metadata of this network operation occurrence. *

*/ private GetSolNetworkOperationMetadata metadata; /** *

* ID of the network operation instance. *

*/ private String nsInstanceId; /** *

* The state of the network operation. *

*/ private String operationState; /** *

* 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 java.util.Map tags; /** *

* All tasks associated with this operation occurrence. *

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

* Network operation ARN. *

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

* Network operation ARN. *

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

* Network operation ARN. *

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

* Error related to this specific network operation occurrence. *

* * @param error * Error related to this specific network operation occurrence. */ public void setError(ProblemDetails error) { this.error = error; } /** *

* Error related to this specific network operation occurrence. *

* * @return Error related to this specific network operation occurrence. */ public ProblemDetails getError() { return this.error; } /** *

* Error related to this specific network operation occurrence. *

* * @param error * Error related to this specific network operation occurrence. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSolNetworkOperationResult withError(ProblemDetails error) { setError(error); return this; } /** *

* ID of this network operation occurrence. *

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

* ID of this network operation occurrence. *

* * @return ID of this network operation occurrence. */ public String getId() { return this.id; } /** *

* ID of this network operation occurrence. *

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

* Type of the operation represented by this occurrence. *

* * @param lcmOperationType * Type of the operation represented by this occurrence. * @see LcmOperationType */ public void setLcmOperationType(String lcmOperationType) { this.lcmOperationType = lcmOperationType; } /** *

* Type of the operation represented by this occurrence. *

* * @return Type of the operation represented by this occurrence. * @see LcmOperationType */ public String getLcmOperationType() { return this.lcmOperationType; } /** *

* Type of the operation represented by this occurrence. *

* * @param lcmOperationType * Type of the operation represented by this occurrence. * @return Returns a reference to this object so that method calls can be chained together. * @see LcmOperationType */ public GetSolNetworkOperationResult withLcmOperationType(String lcmOperationType) { setLcmOperationType(lcmOperationType); return this; } /** *

* Type of the operation represented by this occurrence. *

* * @param lcmOperationType * Type of the operation represented by this occurrence. * @return Returns a reference to this object so that method calls can be chained together. * @see LcmOperationType */ public GetSolNetworkOperationResult withLcmOperationType(LcmOperationType lcmOperationType) { this.lcmOperationType = lcmOperationType.toString(); return this; } /** *

* Metadata of this network operation occurrence. *

* * @param metadata * Metadata of this network operation occurrence. */ public void setMetadata(GetSolNetworkOperationMetadata metadata) { this.metadata = metadata; } /** *

* Metadata of this network operation occurrence. *

* * @return Metadata of this network operation occurrence. */ public GetSolNetworkOperationMetadata getMetadata() { return this.metadata; } /** *

* Metadata of this network operation occurrence. *

* * @param metadata * Metadata of this network operation occurrence. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSolNetworkOperationResult withMetadata(GetSolNetworkOperationMetadata metadata) { setMetadata(metadata); return this; } /** *

* ID of the network operation instance. *

* * @param nsInstanceId * ID of the network operation instance. */ public void setNsInstanceId(String nsInstanceId) { this.nsInstanceId = nsInstanceId; } /** *

* ID of the network operation instance. *

* * @return ID of the network operation instance. */ public String getNsInstanceId() { return this.nsInstanceId; } /** *

* ID of the network operation instance. *

* * @param nsInstanceId * ID of the network operation instance. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSolNetworkOperationResult withNsInstanceId(String nsInstanceId) { setNsInstanceId(nsInstanceId); return this; } /** *

* The state of the network operation. *

* * @param operationState * The state of the network operation. * @see NsLcmOperationState */ public void setOperationState(String operationState) { this.operationState = operationState; } /** *

* The state of the network operation. *

* * @return The state of the network operation. * @see NsLcmOperationState */ public String getOperationState() { return this.operationState; } /** *

* The state of the network operation. *

* * @param operationState * The state of the network operation. * @return Returns a reference to this object so that method calls can be chained together. * @see NsLcmOperationState */ public GetSolNetworkOperationResult withOperationState(String operationState) { setOperationState(operationState); return this; } /** *

* The state of the network operation. *

* * @param operationState * The state of the network operation. * @return Returns a reference to this object so that method calls can be chained together. * @see NsLcmOperationState */ public GetSolNetworkOperationResult withOperationState(NsLcmOperationState operationState) { this.operationState = operationState.toString(); return this; } /** *

* 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.Map getTags() { return 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. *

* * @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.Map tags) { this.tags = 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. *

* * @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 GetSolNetworkOperationResult withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see GetSolNetworkOperationResult#withTags * @returns a reference to this object so that method calls can be chained together. */ public GetSolNetworkOperationResult addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public GetSolNetworkOperationResult clearTagsEntries() { this.tags = null; return this; } /** *

* All tasks associated with this operation occurrence. *

* * @return All tasks associated with this operation occurrence. */ public java.util.List getTasks() { return tasks; } /** *

* All tasks associated with this operation occurrence. *

* * @param tasks * All tasks associated with this operation occurrence. */ public void setTasks(java.util.Collection tasks) { if (tasks == null) { this.tasks = null; return; } this.tasks = new java.util.ArrayList(tasks); } /** *

* All tasks associated with this operation occurrence. *

*

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

* * @param tasks * All tasks associated with this operation occurrence. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSolNetworkOperationResult withTasks(GetSolNetworkOperationTaskDetails... tasks) { if (this.tasks == null) { setTasks(new java.util.ArrayList(tasks.length)); } for (GetSolNetworkOperationTaskDetails ele : tasks) { this.tasks.add(ele); } return this; } /** *

* All tasks associated with this operation occurrence. *

* * @param tasks * All tasks associated with this operation occurrence. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSolNetworkOperationResult withTasks(java.util.Collection tasks) { setTasks(tasks); 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 (getError() != null) sb.append("Error: ").append(getError()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getLcmOperationType() != null) sb.append("LcmOperationType: ").append(getLcmOperationType()).append(","); if (getMetadata() != null) sb.append("Metadata: ").append(getMetadata()).append(","); if (getNsInstanceId() != null) sb.append("NsInstanceId: ").append(getNsInstanceId()).append(","); if (getOperationState() != null) sb.append("OperationState: ").append(getOperationState()).append(","); if (getTags() != null) sb.append("Tags: ").append("***Sensitive Data Redacted***").append(","); if (getTasks() != null) sb.append("Tasks: ").append(getTasks()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetSolNetworkOperationResult == false) return false; GetSolNetworkOperationResult other = (GetSolNetworkOperationResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getError() == null ^ this.getError() == null) return false; if (other.getError() != null && other.getError().equals(this.getError()) == 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.getLcmOperationType() == null ^ this.getLcmOperationType() == null) return false; if (other.getLcmOperationType() != null && other.getLcmOperationType().equals(this.getLcmOperationType()) == 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.getNsInstanceId() == null ^ this.getNsInstanceId() == null) return false; if (other.getNsInstanceId() != null && other.getNsInstanceId().equals(this.getNsInstanceId()) == false) return false; if (other.getOperationState() == null ^ this.getOperationState() == null) return false; if (other.getOperationState() != null && other.getOperationState().equals(this.getOperationState()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getTasks() == null ^ this.getTasks() == null) return false; if (other.getTasks() != null && other.getTasks().equals(this.getTasks()) == 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 + ((getError() == null) ? 0 : getError().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getLcmOperationType() == null) ? 0 : getLcmOperationType().hashCode()); hashCode = prime * hashCode + ((getMetadata() == null) ? 0 : getMetadata().hashCode()); hashCode = prime * hashCode + ((getNsInstanceId() == null) ? 0 : getNsInstanceId().hashCode()); hashCode = prime * hashCode + ((getOperationState() == null) ? 0 : getOperationState().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getTasks() == null) ? 0 : getTasks().hashCode()); return hashCode; } @Override public GetSolNetworkOperationResult clone() { try { return (GetSolNetworkOperationResult) 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