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

com.amazonaws.services.quicksight.model.NamespaceInfoV2 Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon QuickSight module holds the client classes that are used for communicating with Amazon QuickSight Service

There is a newer version: 1.12.780
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.quicksight.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The error type. *

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

* The name of the error. *

*/ private String name; /** *

* The namespace ARN. *

*/ private String arn; /** *

* The namespace Amazon Web Services Region. *

*/ private String capacityRegion; /** *

* The creation status of a namespace that is not yet completely created. *

*/ private String creationStatus; /** *

* The identity store used for the namespace. *

*/ private String identityStore; /** *

* An error that occurred when the namespace was created. *

*/ private NamespaceError namespaceError; /** *

* The name of the error. *

* * @param name * The name of the error. */ public void setName(String name) { this.name = name; } /** *

* The name of the error. *

* * @return The name of the error. */ public String getName() { return this.name; } /** *

* The name of the error. *

* * @param name * The name of the error. * @return Returns a reference to this object so that method calls can be chained together. */ public NamespaceInfoV2 withName(String name) { setName(name); return this; } /** *

* The namespace ARN. *

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

* The namespace ARN. *

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

* The namespace ARN. *

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

* The namespace Amazon Web Services Region. *

* * @param capacityRegion * The namespace Amazon Web Services Region. */ public void setCapacityRegion(String capacityRegion) { this.capacityRegion = capacityRegion; } /** *

* The namespace Amazon Web Services Region. *

* * @return The namespace Amazon Web Services Region. */ public String getCapacityRegion() { return this.capacityRegion; } /** *

* The namespace Amazon Web Services Region. *

* * @param capacityRegion * The namespace Amazon Web Services Region. * @return Returns a reference to this object so that method calls can be chained together. */ public NamespaceInfoV2 withCapacityRegion(String capacityRegion) { setCapacityRegion(capacityRegion); return this; } /** *

* The creation status of a namespace that is not yet completely created. *

* * @param creationStatus * The creation status of a namespace that is not yet completely created. * @see NamespaceStatus */ public void setCreationStatus(String creationStatus) { this.creationStatus = creationStatus; } /** *

* The creation status of a namespace that is not yet completely created. *

* * @return The creation status of a namespace that is not yet completely created. * @see NamespaceStatus */ public String getCreationStatus() { return this.creationStatus; } /** *

* The creation status of a namespace that is not yet completely created. *

* * @param creationStatus * The creation status of a namespace that is not yet completely created. * @return Returns a reference to this object so that method calls can be chained together. * @see NamespaceStatus */ public NamespaceInfoV2 withCreationStatus(String creationStatus) { setCreationStatus(creationStatus); return this; } /** *

* The creation status of a namespace that is not yet completely created. *

* * @param creationStatus * The creation status of a namespace that is not yet completely created. * @return Returns a reference to this object so that method calls can be chained together. * @see NamespaceStatus */ public NamespaceInfoV2 withCreationStatus(NamespaceStatus creationStatus) { this.creationStatus = creationStatus.toString(); return this; } /** *

* The identity store used for the namespace. *

* * @param identityStore * The identity store used for the namespace. * @see IdentityStore */ public void setIdentityStore(String identityStore) { this.identityStore = identityStore; } /** *

* The identity store used for the namespace. *

* * @return The identity store used for the namespace. * @see IdentityStore */ public String getIdentityStore() { return this.identityStore; } /** *

* The identity store used for the namespace. *

* * @param identityStore * The identity store used for the namespace. * @return Returns a reference to this object so that method calls can be chained together. * @see IdentityStore */ public NamespaceInfoV2 withIdentityStore(String identityStore) { setIdentityStore(identityStore); return this; } /** *

* The identity store used for the namespace. *

* * @param identityStore * The identity store used for the namespace. * @return Returns a reference to this object so that method calls can be chained together. * @see IdentityStore */ public NamespaceInfoV2 withIdentityStore(IdentityStore identityStore) { this.identityStore = identityStore.toString(); return this; } /** *

* An error that occurred when the namespace was created. *

* * @param namespaceError * An error that occurred when the namespace was created. */ public void setNamespaceError(NamespaceError namespaceError) { this.namespaceError = namespaceError; } /** *

* An error that occurred when the namespace was created. *

* * @return An error that occurred when the namespace was created. */ public NamespaceError getNamespaceError() { return this.namespaceError; } /** *

* An error that occurred when the namespace was created. *

* * @param namespaceError * An error that occurred when the namespace was created. * @return Returns a reference to this object so that method calls can be chained together. */ public NamespaceInfoV2 withNamespaceError(NamespaceError namespaceError) { setNamespaceError(namespaceError); 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getCapacityRegion() != null) sb.append("CapacityRegion: ").append(getCapacityRegion()).append(","); if (getCreationStatus() != null) sb.append("CreationStatus: ").append(getCreationStatus()).append(","); if (getIdentityStore() != null) sb.append("IdentityStore: ").append(getIdentityStore()).append(","); if (getNamespaceError() != null) sb.append("NamespaceError: ").append(getNamespaceError()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof NamespaceInfoV2 == false) return false; NamespaceInfoV2 other = (NamespaceInfoV2) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getCapacityRegion() == null ^ this.getCapacityRegion() == null) return false; if (other.getCapacityRegion() != null && other.getCapacityRegion().equals(this.getCapacityRegion()) == false) return false; if (other.getCreationStatus() == null ^ this.getCreationStatus() == null) return false; if (other.getCreationStatus() != null && other.getCreationStatus().equals(this.getCreationStatus()) == false) return false; if (other.getIdentityStore() == null ^ this.getIdentityStore() == null) return false; if (other.getIdentityStore() != null && other.getIdentityStore().equals(this.getIdentityStore()) == false) return false; if (other.getNamespaceError() == null ^ this.getNamespaceError() == null) return false; if (other.getNamespaceError() != null && other.getNamespaceError().equals(this.getNamespaceError()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getCapacityRegion() == null) ? 0 : getCapacityRegion().hashCode()); hashCode = prime * hashCode + ((getCreationStatus() == null) ? 0 : getCreationStatus().hashCode()); hashCode = prime * hashCode + ((getIdentityStore() == null) ? 0 : getIdentityStore().hashCode()); hashCode = prime * hashCode + ((getNamespaceError() == null) ? 0 : getNamespaceError().hashCode()); return hashCode; } @Override public NamespaceInfoV2 clone() { try { return (NamespaceInfoV2) 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.quicksight.model.transform.NamespaceInfoV2Marshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy