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

com.amazonaws.services.datazone.model.CreateSubscriptionGrantRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
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.datazone.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 CreateSubscriptionGrantRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The names of the assets for which the subscription grant is created. *

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

* A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. *

*/ private String clientToken; /** *

* The ID of the Amazon DataZone domain in which the subscription grant is created. *

*/ private String domainIdentifier; /** *

* The ID of the environment in which the subscription grant is created. *

*/ private String environmentIdentifier; /** *

* The entity to which the subscription is to be granted. *

*/ private GrantedEntityInput grantedEntity; /** *

* The ID of the subscription target for which the subscription grant is created. *

*/ private String subscriptionTargetIdentifier; /** *

* The names of the assets for which the subscription grant is created. *

* * @return The names of the assets for which the subscription grant is created. */ public java.util.List getAssetTargetNames() { return assetTargetNames; } /** *

* The names of the assets for which the subscription grant is created. *

* * @param assetTargetNames * The names of the assets for which the subscription grant is created. */ public void setAssetTargetNames(java.util.Collection assetTargetNames) { if (assetTargetNames == null) { this.assetTargetNames = null; return; } this.assetTargetNames = new java.util.ArrayList(assetTargetNames); } /** *

* The names of the assets for which the subscription grant is created. *

*

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

* * @param assetTargetNames * The names of the assets for which the subscription grant is created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSubscriptionGrantRequest withAssetTargetNames(AssetTargetNameMap... assetTargetNames) { if (this.assetTargetNames == null) { setAssetTargetNames(new java.util.ArrayList(assetTargetNames.length)); } for (AssetTargetNameMap ele : assetTargetNames) { this.assetTargetNames.add(ele); } return this; } /** *

* The names of the assets for which the subscription grant is created. *

* * @param assetTargetNames * The names of the assets for which the subscription grant is created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSubscriptionGrantRequest withAssetTargetNames(java.util.Collection assetTargetNames) { setAssetTargetNames(assetTargetNames); return this; } /** *

* A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. *

* * @param clientToken * A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** *

* A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. *

* * @return A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. */ public String getClientToken() { return this.clientToken; } /** *

* A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. *

* * @param clientToken * A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSubscriptionGrantRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** *

* The ID of the Amazon DataZone domain in which the subscription grant is created. *

* * @param domainIdentifier * The ID of the Amazon DataZone domain in which the subscription grant is created. */ public void setDomainIdentifier(String domainIdentifier) { this.domainIdentifier = domainIdentifier; } /** *

* The ID of the Amazon DataZone domain in which the subscription grant is created. *

* * @return The ID of the Amazon DataZone domain in which the subscription grant is created. */ public String getDomainIdentifier() { return this.domainIdentifier; } /** *

* The ID of the Amazon DataZone domain in which the subscription grant is created. *

* * @param domainIdentifier * The ID of the Amazon DataZone domain in which the subscription grant is created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSubscriptionGrantRequest withDomainIdentifier(String domainIdentifier) { setDomainIdentifier(domainIdentifier); return this; } /** *

* The ID of the environment in which the subscription grant is created. *

* * @param environmentIdentifier * The ID of the environment in which the subscription grant is created. */ public void setEnvironmentIdentifier(String environmentIdentifier) { this.environmentIdentifier = environmentIdentifier; } /** *

* The ID of the environment in which the subscription grant is created. *

* * @return The ID of the environment in which the subscription grant is created. */ public String getEnvironmentIdentifier() { return this.environmentIdentifier; } /** *

* The ID of the environment in which the subscription grant is created. *

* * @param environmentIdentifier * The ID of the environment in which the subscription grant is created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSubscriptionGrantRequest withEnvironmentIdentifier(String environmentIdentifier) { setEnvironmentIdentifier(environmentIdentifier); return this; } /** *

* The entity to which the subscription is to be granted. *

* * @param grantedEntity * The entity to which the subscription is to be granted. */ public void setGrantedEntity(GrantedEntityInput grantedEntity) { this.grantedEntity = grantedEntity; } /** *

* The entity to which the subscription is to be granted. *

* * @return The entity to which the subscription is to be granted. */ public GrantedEntityInput getGrantedEntity() { return this.grantedEntity; } /** *

* The entity to which the subscription is to be granted. *

* * @param grantedEntity * The entity to which the subscription is to be granted. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSubscriptionGrantRequest withGrantedEntity(GrantedEntityInput grantedEntity) { setGrantedEntity(grantedEntity); return this; } /** *

* The ID of the subscription target for which the subscription grant is created. *

* * @param subscriptionTargetIdentifier * The ID of the subscription target for which the subscription grant is created. */ public void setSubscriptionTargetIdentifier(String subscriptionTargetIdentifier) { this.subscriptionTargetIdentifier = subscriptionTargetIdentifier; } /** *

* The ID of the subscription target for which the subscription grant is created. *

* * @return The ID of the subscription target for which the subscription grant is created. */ public String getSubscriptionTargetIdentifier() { return this.subscriptionTargetIdentifier; } /** *

* The ID of the subscription target for which the subscription grant is created. *

* * @param subscriptionTargetIdentifier * The ID of the subscription target for which the subscription grant is created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSubscriptionGrantRequest withSubscriptionTargetIdentifier(String subscriptionTargetIdentifier) { setSubscriptionTargetIdentifier(subscriptionTargetIdentifier); 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 (getAssetTargetNames() != null) sb.append("AssetTargetNames: ").append(getAssetTargetNames()).append(","); if (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()).append(","); if (getDomainIdentifier() != null) sb.append("DomainIdentifier: ").append(getDomainIdentifier()).append(","); if (getEnvironmentIdentifier() != null) sb.append("EnvironmentIdentifier: ").append(getEnvironmentIdentifier()).append(","); if (getGrantedEntity() != null) sb.append("GrantedEntity: ").append(getGrantedEntity()).append(","); if (getSubscriptionTargetIdentifier() != null) sb.append("SubscriptionTargetIdentifier: ").append(getSubscriptionTargetIdentifier()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateSubscriptionGrantRequest == false) return false; CreateSubscriptionGrantRequest other = (CreateSubscriptionGrantRequest) obj; if (other.getAssetTargetNames() == null ^ this.getAssetTargetNames() == null) return false; if (other.getAssetTargetNames() != null && other.getAssetTargetNames().equals(this.getAssetTargetNames()) == false) return false; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false) return false; if (other.getDomainIdentifier() == null ^ this.getDomainIdentifier() == null) return false; if (other.getDomainIdentifier() != null && other.getDomainIdentifier().equals(this.getDomainIdentifier()) == false) return false; if (other.getEnvironmentIdentifier() == null ^ this.getEnvironmentIdentifier() == null) return false; if (other.getEnvironmentIdentifier() != null && other.getEnvironmentIdentifier().equals(this.getEnvironmentIdentifier()) == false) return false; if (other.getGrantedEntity() == null ^ this.getGrantedEntity() == null) return false; if (other.getGrantedEntity() != null && other.getGrantedEntity().equals(this.getGrantedEntity()) == false) return false; if (other.getSubscriptionTargetIdentifier() == null ^ this.getSubscriptionTargetIdentifier() == null) return false; if (other.getSubscriptionTargetIdentifier() != null && other.getSubscriptionTargetIdentifier().equals(this.getSubscriptionTargetIdentifier()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAssetTargetNames() == null) ? 0 : getAssetTargetNames().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); hashCode = prime * hashCode + ((getDomainIdentifier() == null) ? 0 : getDomainIdentifier().hashCode()); hashCode = prime * hashCode + ((getEnvironmentIdentifier() == null) ? 0 : getEnvironmentIdentifier().hashCode()); hashCode = prime * hashCode + ((getGrantedEntity() == null) ? 0 : getGrantedEntity().hashCode()); hashCode = prime * hashCode + ((getSubscriptionTargetIdentifier() == null) ? 0 : getSubscriptionTargetIdentifier().hashCode()); return hashCode; } @Override public CreateSubscriptionGrantRequest clone() { return (CreateSubscriptionGrantRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy