/** * 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 VPCLattice { namespace Model { /** */ class CreateServiceRequest : public VPCLatticeRequest { public: AWS_VPCLATTICE_API CreateServiceRequest(); // 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 "CreateService"; } AWS_VPCLATTICE_API Aws::String SerializePayload() const override; /** *

The type of IAM policy.

  • NONE: The resource * does not use an IAM policy. This is the default.

  • * AWS_IAM: The resource uses an IAM policy. When this type is used, * auth is enabled and an auth policy is required.

*/ inline const AuthType& GetAuthType() const{ return m_authType; } /** *

The type of IAM policy.

  • NONE: The resource * does not use an IAM policy. This is the default.

  • * AWS_IAM: The resource uses an IAM policy. When this type is used, * auth is enabled and an auth policy is required.

*/ inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; } /** *

The type of IAM policy.

  • NONE: The resource * does not use an IAM policy. This is the default.

  • * AWS_IAM: The resource uses an IAM policy. When this type is used, * auth is enabled and an auth policy is required.

*/ inline void SetAuthType(const AuthType& value) { m_authTypeHasBeenSet = true; m_authType = value; } /** *

The type of IAM policy.

  • NONE: The resource * does not use an IAM policy. This is the default.

  • * AWS_IAM: The resource uses an IAM policy. When this type is used, * auth is enabled and an auth policy is required.

*/ inline void SetAuthType(AuthType&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); } /** *

The type of IAM policy.

  • NONE: The resource * does not use an IAM policy. This is the default.

  • * AWS_IAM: The resource uses an IAM policy. When this type is used, * auth is enabled and an auth policy is required.

*/ inline CreateServiceRequest& WithAuthType(const AuthType& value) { SetAuthType(value); return *this;} /** *

The type of IAM policy.

  • NONE: The resource * does not use an IAM policy. This is the default.

  • * AWS_IAM: The resource uses an IAM policy. When this type is used, * auth is enabled and an auth policy is required.

*/ inline CreateServiceRequest& WithAuthType(AuthType&& value) { SetAuthType(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline CreateServiceRequest& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline CreateServiceRequest& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline CreateServiceRequest& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If you retry a request that completed successfully * using the same client token and parameters, the retry succeeds without * performing any actions. If the parameters aren't identical, the retry fails.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If you retry a request that completed successfully * using the same client token and parameters, the retry succeeds without * performing any actions. If the parameters aren't identical, the retry fails.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If you retry a request that completed successfully * using the same client token and parameters, the retry succeeds without * performing any actions. If the parameters aren't identical, the retry fails.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If you retry a request that completed successfully * using the same client token and parameters, the retry succeeds without * performing any actions. If the parameters aren't identical, the retry fails.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If you retry a request that completed successfully * using the same client token and parameters, the retry succeeds without * performing any actions. If the parameters aren't identical, the retry fails.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If you retry a request that completed successfully * using the same client token and parameters, the retry succeeds without * performing any actions. If the parameters aren't identical, the retry fails.

*/ inline CreateServiceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If you retry a request that completed successfully * using the same client token and parameters, the retry succeeds without * performing any actions. If the parameters aren't identical, the retry fails.

*/ inline CreateServiceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If you retry a request that completed successfully * using the same client token and parameters, the retry succeeds without * performing any actions. If the parameters aren't identical, the retry fails.

*/ inline CreateServiceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The custom domain name of the service.

*/ inline const Aws::String& GetCustomDomainName() const{ return m_customDomainName; } /** *

The custom domain name of the service.

*/ inline bool CustomDomainNameHasBeenSet() const { return m_customDomainNameHasBeenSet; } /** *

The custom domain name of the service.

*/ inline void SetCustomDomainName(const Aws::String& value) { m_customDomainNameHasBeenSet = true; m_customDomainName = value; } /** *

The custom domain name of the service.

*/ inline void SetCustomDomainName(Aws::String&& value) { m_customDomainNameHasBeenSet = true; m_customDomainName = std::move(value); } /** *

The custom domain name of the service.

*/ inline void SetCustomDomainName(const char* value) { m_customDomainNameHasBeenSet = true; m_customDomainName.assign(value); } /** *

The custom domain name of the service.

*/ inline CreateServiceRequest& WithCustomDomainName(const Aws::String& value) { SetCustomDomainName(value); return *this;} /** *

The custom domain name of the service.

*/ inline CreateServiceRequest& WithCustomDomainName(Aws::String&& value) { SetCustomDomainName(std::move(value)); return *this;} /** *

The custom domain name of the service.

*/ inline CreateServiceRequest& WithCustomDomainName(const char* value) { SetCustomDomainName(value); return *this;} /** *

The name of the service. The name must be unique within the account. The * valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the * first or last character, or immediately after another hyphen.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the service. The name must be unique within the account. The * valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the * first or last character, or immediately after another hyphen.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the service. The name must be unique within the account. The * valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the * first or last character, or immediately after another hyphen.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the service. The name must be unique within the account. The * valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the * first or last character, or immediately after another hyphen.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the service. The name must be unique within the account. The * valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the * first or last character, or immediately after another hyphen.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the service. The name must be unique within the account. The * valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the * first or last character, or immediately after another hyphen.

*/ inline CreateServiceRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the service. The name must be unique within the account. The * valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the * first or last character, or immediately after another hyphen.

*/ inline CreateServiceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the service. The name must be unique within the account. The * valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the * first or last character, or immediately after another hyphen.

*/ inline CreateServiceRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The tags for the service.

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

The tags for the service.

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

The tags for the service.

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

The tags for the service.

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

The tags for the service.

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

The tags for the service.

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

The tags for the service.

*/ inline CreateServiceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags for the service.

*/ inline CreateServiceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags for the service.

*/ inline CreateServiceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags for the service.

*/ inline CreateServiceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags for the service.

*/ inline CreateServiceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags for the service.

*/ inline CreateServiceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags for the service.

*/ inline CreateServiceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: AuthType m_authType; bool m_authTypeHasBeenSet = false; Aws::String m_certificateArn; bool m_certificateArnHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_customDomainName; bool m_customDomainNameHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace VPCLattice } // namespace Aws