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

com.amazonaws.services.redshift.model.DeauthorizeDataShareRequest Maven / Gradle / Ivy

Go to download

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

The 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.redshift.model;

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

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The namespace Amazon Resource Name (ARN) of the datashare to remove authorization from. *

*/ private String dataShareArn; /** *

* The identifier of the data consumer that is to have authorization removed from the datashare. This identifier is * an Amazon Web Services account ID or a keyword, such as ADX. *

*/ private String consumerIdentifier; /** *

* The namespace Amazon Resource Name (ARN) of the datashare to remove authorization from. *

* * @param dataShareArn * The namespace Amazon Resource Name (ARN) of the datashare to remove authorization from. */ public void setDataShareArn(String dataShareArn) { this.dataShareArn = dataShareArn; } /** *

* The namespace Amazon Resource Name (ARN) of the datashare to remove authorization from. *

* * @return The namespace Amazon Resource Name (ARN) of the datashare to remove authorization from. */ public String getDataShareArn() { return this.dataShareArn; } /** *

* The namespace Amazon Resource Name (ARN) of the datashare to remove authorization from. *

* * @param dataShareArn * The namespace Amazon Resource Name (ARN) of the datashare to remove authorization from. * @return Returns a reference to this object so that method calls can be chained together. */ public DeauthorizeDataShareRequest withDataShareArn(String dataShareArn) { setDataShareArn(dataShareArn); return this; } /** *

* The identifier of the data consumer that is to have authorization removed from the datashare. This identifier is * an Amazon Web Services account ID or a keyword, such as ADX. *

* * @param consumerIdentifier * The identifier of the data consumer that is to have authorization removed from the datashare. This * identifier is an Amazon Web Services account ID or a keyword, such as ADX. */ public void setConsumerIdentifier(String consumerIdentifier) { this.consumerIdentifier = consumerIdentifier; } /** *

* The identifier of the data consumer that is to have authorization removed from the datashare. This identifier is * an Amazon Web Services account ID or a keyword, such as ADX. *

* * @return The identifier of the data consumer that is to have authorization removed from the datashare. This * identifier is an Amazon Web Services account ID or a keyword, such as ADX. */ public String getConsumerIdentifier() { return this.consumerIdentifier; } /** *

* The identifier of the data consumer that is to have authorization removed from the datashare. This identifier is * an Amazon Web Services account ID or a keyword, such as ADX. *

* * @param consumerIdentifier * The identifier of the data consumer that is to have authorization removed from the datashare. This * identifier is an Amazon Web Services account ID or a keyword, such as ADX. * @return Returns a reference to this object so that method calls can be chained together. */ public DeauthorizeDataShareRequest withConsumerIdentifier(String consumerIdentifier) { setConsumerIdentifier(consumerIdentifier); 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 (getDataShareArn() != null) sb.append("DataShareArn: ").append(getDataShareArn()).append(","); if (getConsumerIdentifier() != null) sb.append("ConsumerIdentifier: ").append(getConsumerIdentifier()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeauthorizeDataShareRequest == false) return false; DeauthorizeDataShareRequest other = (DeauthorizeDataShareRequest) obj; if (other.getDataShareArn() == null ^ this.getDataShareArn() == null) return false; if (other.getDataShareArn() != null && other.getDataShareArn().equals(this.getDataShareArn()) == false) return false; if (other.getConsumerIdentifier() == null ^ this.getConsumerIdentifier() == null) return false; if (other.getConsumerIdentifier() != null && other.getConsumerIdentifier().equals(this.getConsumerIdentifier()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDataShareArn() == null) ? 0 : getDataShareArn().hashCode()); hashCode = prime * hashCode + ((getConsumerIdentifier() == null) ? 0 : getConsumerIdentifier().hashCode()); return hashCode; } @Override public DeauthorizeDataShareRequest clone() { return (DeauthorizeDataShareRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy