/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Amplify { namespace Model { /** *

Describes the settings for the subdomain.

See Also:

AWS * API Reference

*/ class SubDomainSetting { public: AWS_AMPLIFY_API SubDomainSetting(); AWS_AMPLIFY_API SubDomainSetting(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFY_API SubDomainSetting& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The prefix setting for the subdomain.

*/ inline const Aws::String& GetPrefix() const{ return m_prefix; } /** *

The prefix setting for the subdomain.

*/ inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; } /** *

The prefix setting for the subdomain.

*/ inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; } /** *

The prefix setting for the subdomain.

*/ inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); } /** *

The prefix setting for the subdomain.

*/ inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); } /** *

The prefix setting for the subdomain.

*/ inline SubDomainSetting& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;} /** *

The prefix setting for the subdomain.

*/ inline SubDomainSetting& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;} /** *

The prefix setting for the subdomain.

*/ inline SubDomainSetting& WithPrefix(const char* value) { SetPrefix(value); return *this;} /** *

The branch name setting for the subdomain.

*/ inline const Aws::String& GetBranchName() const{ return m_branchName; } /** *

The branch name setting for the subdomain.

*/ inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; } /** *

The branch name setting for the subdomain.

*/ inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; } /** *

The branch name setting for the subdomain.

*/ inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); } /** *

The branch name setting for the subdomain.

*/ inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); } /** *

The branch name setting for the subdomain.

*/ inline SubDomainSetting& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;} /** *

The branch name setting for the subdomain.

*/ inline SubDomainSetting& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;} /** *

The branch name setting for the subdomain.

*/ inline SubDomainSetting& WithBranchName(const char* value) { SetBranchName(value); return *this;} private: Aws::String m_prefix; bool m_prefixHasBeenSet = false; Aws::String m_branchName; bool m_branchNameHasBeenSet = false; }; } // namespace Model } // namespace Amplify } // namespace Aws