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

com.amazonaws.services.servicecatalog.model.CreatePortfolioRequest Maven / Gradle / Ivy

Go to download

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

The newest version!
/*
 * Copyright 2020-2025 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.servicecatalog.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 CreatePortfolioRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The language code. *

*
    *
  • *

    * jp - Japanese *

    *
  • *
  • *

    * zh - Chinese *

    *
  • *
*/ private String acceptLanguage; /** *

* The name to use for display purposes. *

*/ private String displayName; /** *

* The description of the portfolio. *

*/ private String description; /** *

* The name of the portfolio provider. *

*/ private String providerName; /** *

* One or more tags. *

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

* A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency * token, the same response is returned for each repeated request. *

*/ private String idempotencyToken; /** *

* The language code. *

*
    *
  • *

    * jp - Japanese *

    *
  • *
  • *

    * zh - Chinese *

    *
  • *
* * @param acceptLanguage * The language code.

*
    *
  • *

    * jp - Japanese *

    *
  • *
  • *

    * zh - Chinese *

    *
  • */ public void setAcceptLanguage(String acceptLanguage) { this.acceptLanguage = acceptLanguage; } /** *

    * The language code. *

    *
      *
    • *

      * jp - Japanese *

      *
    • *
    • *

      * zh - Chinese *

      *
    • *
    * * @return The language code.

    *
      *
    • *

      * jp - Japanese *

      *
    • *
    • *

      * zh - Chinese *

      *
    • */ public String getAcceptLanguage() { return this.acceptLanguage; } /** *

      * The language code. *

      *
        *
      • *

        * jp - Japanese *

        *
      • *
      • *

        * zh - Chinese *

        *
      • *
      * * @param acceptLanguage * The language code.

      *
        *
      • *

        * jp - Japanese *

        *
      • *
      • *

        * zh - Chinese *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePortfolioRequest withAcceptLanguage(String acceptLanguage) { setAcceptLanguage(acceptLanguage); return this; } /** *

        * The name to use for display purposes. *

        * * @param displayName * The name to use for display purposes. */ public void setDisplayName(String displayName) { this.displayName = displayName; } /** *

        * The name to use for display purposes. *

        * * @return The name to use for display purposes. */ public String getDisplayName() { return this.displayName; } /** *

        * The name to use for display purposes. *

        * * @param displayName * The name to use for display purposes. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePortfolioRequest withDisplayName(String displayName) { setDisplayName(displayName); return this; } /** *

        * The description of the portfolio. *

        * * @param description * The description of the portfolio. */ public void setDescription(String description) { this.description = description; } /** *

        * The description of the portfolio. *

        * * @return The description of the portfolio. */ public String getDescription() { return this.description; } /** *

        * The description of the portfolio. *

        * * @param description * The description of the portfolio. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePortfolioRequest withDescription(String description) { setDescription(description); return this; } /** *

        * The name of the portfolio provider. *

        * * @param providerName * The name of the portfolio provider. */ public void setProviderName(String providerName) { this.providerName = providerName; } /** *

        * The name of the portfolio provider. *

        * * @return The name of the portfolio provider. */ public String getProviderName() { return this.providerName; } /** *

        * The name of the portfolio provider. *

        * * @param providerName * The name of the portfolio provider. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePortfolioRequest withProviderName(String providerName) { setProviderName(providerName); return this; } /** *

        * One or more tags. *

        * * @return One or more tags. */ public java.util.List getTags() { return tags; } /** *

        * One or more tags. *

        * * @param tags * One or more tags. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

        * One or more tags. *

        *

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

        * * @param tags * One or more tags. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePortfolioRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

        * One or more tags. *

        * * @param tags * One or more tags. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePortfolioRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

        * A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency * token, the same response is returned for each repeated request. *

        * * @param idempotencyToken * A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the * idempotency token, the same response is returned for each repeated request. */ public void setIdempotencyToken(String idempotencyToken) { this.idempotencyToken = idempotencyToken; } /** *

        * A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency * token, the same response is returned for each repeated request. *

        * * @return A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the * idempotency token, the same response is returned for each repeated request. */ public String getIdempotencyToken() { return this.idempotencyToken; } /** *

        * A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency * token, the same response is returned for each repeated request. *

        * * @param idempotencyToken * A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the * idempotency token, the same response is returned for each repeated request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePortfolioRequest withIdempotencyToken(String idempotencyToken) { setIdempotencyToken(idempotencyToken); 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 (getAcceptLanguage() != null) sb.append("AcceptLanguage: ").append(getAcceptLanguage()).append(","); if (getDisplayName() != null) sb.append("DisplayName: ").append(getDisplayName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getProviderName() != null) sb.append("ProviderName: ").append(getProviderName()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getIdempotencyToken() != null) sb.append("IdempotencyToken: ").append(getIdempotencyToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreatePortfolioRequest == false) return false; CreatePortfolioRequest other = (CreatePortfolioRequest) obj; if (other.getAcceptLanguage() == null ^ this.getAcceptLanguage() == null) return false; if (other.getAcceptLanguage() != null && other.getAcceptLanguage().equals(this.getAcceptLanguage()) == false) return false; if (other.getDisplayName() == null ^ this.getDisplayName() == null) return false; if (other.getDisplayName() != null && other.getDisplayName().equals(this.getDisplayName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getProviderName() == null ^ this.getProviderName() == null) return false; if (other.getProviderName() != null && other.getProviderName().equals(this.getProviderName()) == 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.getIdempotencyToken() == null ^ this.getIdempotencyToken() == null) return false; if (other.getIdempotencyToken() != null && other.getIdempotencyToken().equals(this.getIdempotencyToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAcceptLanguage() == null) ? 0 : getAcceptLanguage().hashCode()); hashCode = prime * hashCode + ((getDisplayName() == null) ? 0 : getDisplayName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getProviderName() == null) ? 0 : getProviderName().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getIdempotencyToken() == null) ? 0 : getIdempotencyToken().hashCode()); return hashCode; } @Override public CreatePortfolioRequest clone() { return (CreatePortfolioRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy