/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace ServiceCatalog { namespace Model { /** */ class CreatePortfolioRequest : public ServiceCatalogRequest { public: AWS_SERVICECATALOG_API CreatePortfolioRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreatePortfolio"; } AWS_SERVICECATALOG_API Aws::String SerializePayload() const override; AWS_SERVICECATALOG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline const Aws::String& GetAcceptLanguage() const{ return m_acceptLanguage; } /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; } /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; } /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); } /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); } /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline CreatePortfolioRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;} /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline CreatePortfolioRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;} /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline CreatePortfolioRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;} /** *

The name to use for display purposes.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The name to use for display purposes.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The name to use for display purposes.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The name to use for display purposes.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The name to use for display purposes.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The name to use for display purposes.

*/ inline CreatePortfolioRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The name to use for display purposes.

*/ inline CreatePortfolioRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The name to use for display purposes.

*/ inline CreatePortfolioRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

The description of the portfolio.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the portfolio.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the portfolio.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the portfolio.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the portfolio.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the portfolio.

*/ inline CreatePortfolioRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the portfolio.

*/ inline CreatePortfolioRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the portfolio.

*/ inline CreatePortfolioRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The name of the portfolio provider.

*/ inline const Aws::String& GetProviderName() const{ return m_providerName; } /** *

The name of the portfolio provider.

*/ inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; } /** *

The name of the portfolio provider.

*/ inline void SetProviderName(const Aws::String& value) { m_providerNameHasBeenSet = true; m_providerName = value; } /** *

The name of the portfolio provider.

*/ inline void SetProviderName(Aws::String&& value) { m_providerNameHasBeenSet = true; m_providerName = std::move(value); } /** *

The name of the portfolio provider.

*/ inline void SetProviderName(const char* value) { m_providerNameHasBeenSet = true; m_providerName.assign(value); } /** *

The name of the portfolio provider.

*/ inline CreatePortfolioRequest& WithProviderName(const Aws::String& value) { SetProviderName(value); return *this;} /** *

The name of the portfolio provider.

*/ inline CreatePortfolioRequest& WithProviderName(Aws::String&& value) { SetProviderName(std::move(value)); return *this;} /** *

The name of the portfolio provider.

*/ inline CreatePortfolioRequest& WithProviderName(const char* value) { SetProviderName(value); return *this;} /** *

One or more tags.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

One or more tags.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

One or more tags.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

One or more tags.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

One or more tags.

*/ inline CreatePortfolioRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

One or more tags.

*/ inline CreatePortfolioRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

One or more tags.

*/ inline CreatePortfolioRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

One or more tags.

*/ inline CreatePortfolioRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); 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.

*/ inline const Aws::String& GetIdempotencyToken() const{ return m_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.

*/ inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; } /** *

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.

*/ inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; } /** *

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.

*/ inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); } /** *

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.

*/ inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); } /** *

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.

*/ inline CreatePortfolioRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); 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.

*/ inline CreatePortfolioRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); 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.

*/ inline CreatePortfolioRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;} private: Aws::String m_acceptLanguage; bool m_acceptLanguageHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_providerName; bool m_providerNameHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_idempotencyToken; bool m_idempotencyTokenHasBeenSet = false; }; } // namespace Model } // namespace ServiceCatalog } // namespace Aws