/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace AppRunner { namespace Model { /** */ class AssociateCustomDomainRequest : public AppRunnerRequest { public: AWS_APPRUNNER_API AssociateCustomDomainRequest(); // 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 "AssociateCustomDomain"; } AWS_APPRUNNER_API Aws::String SerializePayload() const override; AWS_APPRUNNER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the App Runner service that you want to * associate a custom domain name with.

*/ inline const Aws::String& GetServiceArn() const{ return m_serviceArn; } /** *

The Amazon Resource Name (ARN) of the App Runner service that you want to * associate a custom domain name with.

*/ inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the App Runner service that you want to * associate a custom domain name with.

*/ inline void SetServiceArn(const Aws::String& value) { m_serviceArnHasBeenSet = true; m_serviceArn = value; } /** *

The Amazon Resource Name (ARN) of the App Runner service that you want to * associate a custom domain name with.

*/ inline void SetServiceArn(Aws::String&& value) { m_serviceArnHasBeenSet = true; m_serviceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the App Runner service that you want to * associate a custom domain name with.

*/ inline void SetServiceArn(const char* value) { m_serviceArnHasBeenSet = true; m_serviceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the App Runner service that you want to * associate a custom domain name with.

*/ inline AssociateCustomDomainRequest& WithServiceArn(const Aws::String& value) { SetServiceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the App Runner service that you want to * associate a custom domain name with.

*/ inline AssociateCustomDomainRequest& WithServiceArn(Aws::String&& value) { SetServiceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the App Runner service that you want to * associate a custom domain name with.

*/ inline AssociateCustomDomainRequest& WithServiceArn(const char* value) { SetServiceArn(value); return *this;} /** *

A custom domain endpoint to associate. Specify a root domain (for example, * example.com), a subdomain (for example, * login.example.com or admin.login.example.com), or a * wildcard (for example, *.example.com).

*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *

A custom domain endpoint to associate. Specify a root domain (for example, * example.com), a subdomain (for example, * login.example.com or admin.login.example.com), or a * wildcard (for example, *.example.com).

*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *

A custom domain endpoint to associate. Specify a root domain (for example, * example.com), a subdomain (for example, * login.example.com or admin.login.example.com), or a * wildcard (for example, *.example.com).

*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *

A custom domain endpoint to associate. Specify a root domain (for example, * example.com), a subdomain (for example, * login.example.com or admin.login.example.com), or a * wildcard (for example, *.example.com).

*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *

A custom domain endpoint to associate. Specify a root domain (for example, * example.com), a subdomain (for example, * login.example.com or admin.login.example.com), or a * wildcard (for example, *.example.com).

*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *

A custom domain endpoint to associate. Specify a root domain (for example, * example.com), a subdomain (for example, * login.example.com or admin.login.example.com), or a * wildcard (for example, *.example.com).

*/ inline AssociateCustomDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *

A custom domain endpoint to associate. Specify a root domain (for example, * example.com), a subdomain (for example, * login.example.com or admin.login.example.com), or a * wildcard (for example, *.example.com).

*/ inline AssociateCustomDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *

A custom domain endpoint to associate. Specify a root domain (for example, * example.com), a subdomain (for example, * login.example.com or admin.login.example.com), or a * wildcard (for example, *.example.com).

*/ inline AssociateCustomDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

Set to true to associate the subdomain * www.DomainName with the App Runner service in addition to * the base domain.

Default: true

*/ inline bool GetEnableWWWSubdomain() const{ return m_enableWWWSubdomain; } /** *

Set to true to associate the subdomain * www.DomainName with the App Runner service in addition to * the base domain.

Default: true

*/ inline bool EnableWWWSubdomainHasBeenSet() const { return m_enableWWWSubdomainHasBeenSet; } /** *

Set to true to associate the subdomain * www.DomainName with the App Runner service in addition to * the base domain.

Default: true

*/ inline void SetEnableWWWSubdomain(bool value) { m_enableWWWSubdomainHasBeenSet = true; m_enableWWWSubdomain = value; } /** *

Set to true to associate the subdomain * www.DomainName with the App Runner service in addition to * the base domain.

Default: true

*/ inline AssociateCustomDomainRequest& WithEnableWWWSubdomain(bool value) { SetEnableWWWSubdomain(value); return *this;} private: Aws::String m_serviceArn; bool m_serviceArnHasBeenSet = false; Aws::String m_domainName; bool m_domainNameHasBeenSet = false; bool m_enableWWWSubdomain; bool m_enableWWWSubdomainHasBeenSet = false; }; } // namespace Model } // namespace AppRunner } // namespace Aws