981 lines
35 KiB
C++
981 lines
35 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/amplify/Amplify_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSMap.h>
|
|
#include <aws/amplify/model/Platform.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/amplify/model/ProductionBranch.h>
|
|
#include <aws/amplify/model/AutoBranchCreationConfig.h>
|
|
#include <aws/amplify/model/CustomRule.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace Amplify
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p> Represents the different branches of a repository for building, deploying,
|
|
* and hosting an Amplify app. </p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/App">AWS API
|
|
* Reference</a></p>
|
|
*/
|
|
class AWS_AMPLIFY_API App
|
|
{
|
|
public:
|
|
App();
|
|
App(Aws::Utils::Json::JsonView jsonValue);
|
|
App& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p> The unique ID of the Amplify app. </p>
|
|
*/
|
|
inline const Aws::String& GetAppId() const{ return m_appId; }
|
|
|
|
/**
|
|
* <p> The unique ID of the Amplify app. </p>
|
|
*/
|
|
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The unique ID of the Amplify app. </p>
|
|
*/
|
|
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
|
|
|
|
/**
|
|
* <p> The unique ID of the Amplify app. </p>
|
|
*/
|
|
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
|
|
|
|
/**
|
|
* <p> The unique ID of the Amplify app. </p>
|
|
*/
|
|
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
|
|
|
|
/**
|
|
* <p> The unique ID of the Amplify app. </p>
|
|
*/
|
|
inline App& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
|
|
|
|
/**
|
|
* <p> The unique ID of the Amplify app. </p>
|
|
*/
|
|
inline App& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The unique ID of the Amplify app. </p>
|
|
*/
|
|
inline App& WithAppId(const char* value) { SetAppId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> The Amazon Resource Name (ARN) of the Amplify app. </p>
|
|
*/
|
|
inline const Aws::String& GetAppArn() const{ return m_appArn; }
|
|
|
|
/**
|
|
* <p> The Amazon Resource Name (ARN) of the Amplify app. </p>
|
|
*/
|
|
inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The Amazon Resource Name (ARN) of the Amplify app. </p>
|
|
*/
|
|
inline void SetAppArn(const Aws::String& value) { m_appArnHasBeenSet = true; m_appArn = value; }
|
|
|
|
/**
|
|
* <p> The Amazon Resource Name (ARN) of the Amplify app. </p>
|
|
*/
|
|
inline void SetAppArn(Aws::String&& value) { m_appArnHasBeenSet = true; m_appArn = std::move(value); }
|
|
|
|
/**
|
|
* <p> The Amazon Resource Name (ARN) of the Amplify app. </p>
|
|
*/
|
|
inline void SetAppArn(const char* value) { m_appArnHasBeenSet = true; m_appArn.assign(value); }
|
|
|
|
/**
|
|
* <p> The Amazon Resource Name (ARN) of the Amplify app. </p>
|
|
*/
|
|
inline App& WithAppArn(const Aws::String& value) { SetAppArn(value); return *this;}
|
|
|
|
/**
|
|
* <p> The Amazon Resource Name (ARN) of the Amplify app. </p>
|
|
*/
|
|
inline App& WithAppArn(Aws::String&& value) { SetAppArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The Amazon Resource Name (ARN) of the Amplify app. </p>
|
|
*/
|
|
inline App& WithAppArn(const char* value) { SetAppArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> The name for the Amplify app. </p>
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
|
|
/**
|
|
* <p> The name for the Amplify app. </p>
|
|
*/
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The name for the Amplify app. </p>
|
|
*/
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|
|
|
/**
|
|
* <p> The name for the Amplify app. </p>
|
|
*/
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|
|
|
/**
|
|
* <p> The name for the Amplify app. </p>
|
|
*/
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|
|
|
/**
|
|
* <p> The name for the Amplify app. </p>
|
|
*/
|
|
inline App& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
|
|
/**
|
|
* <p> The name for the Amplify app. </p>
|
|
*/
|
|
inline App& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The name for the Amplify app. </p>
|
|
*/
|
|
inline App& WithName(const char* value) { SetName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> The tag for the Amplify app. </p>
|
|
*/
|
|
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* <p> The tag for the Amplify app. </p>
|
|
*/
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The tag for the Amplify app. </p>
|
|
*/
|
|
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|
|
|
/**
|
|
* <p> The tag for the Amplify app. </p>
|
|
*/
|
|
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|
|
|
/**
|
|
* <p> The tag for the Amplify app. </p>
|
|
*/
|
|
inline App& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* <p> The tag for the Amplify app. </p>
|
|
*/
|
|
inline App& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The tag for the Amplify app. </p>
|
|
*/
|
|
inline App& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
|
|
|
/**
|
|
* <p> The tag for the Amplify app. </p>
|
|
*/
|
|
inline App& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p> The tag for the Amplify app. </p>
|
|
*/
|
|
inline App& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p> The tag for the Amplify app. </p>
|
|
*/
|
|
inline App& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p> The tag for the Amplify app. </p>
|
|
*/
|
|
inline App& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p> The tag for the Amplify app. </p>
|
|
*/
|
|
inline App& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p> The tag for the Amplify app. </p>
|
|
*/
|
|
inline App& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p> The description for the Amplify app. </p>
|
|
*/
|
|
inline const Aws::String& GetDescription() const{ return m_description; }
|
|
|
|
/**
|
|
* <p> The description for the Amplify app. </p>
|
|
*/
|
|
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The description for the Amplify app. </p>
|
|
*/
|
|
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
|
|
|
/**
|
|
* <p> The description for the Amplify app. </p>
|
|
*/
|
|
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
|
|
|
/**
|
|
* <p> The description for the Amplify app. </p>
|
|
*/
|
|
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
|
|
|
/**
|
|
* <p> The description for the Amplify app. </p>
|
|
*/
|
|
inline App& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|
|
|
/**
|
|
* <p> The description for the Amplify app. </p>
|
|
*/
|
|
inline App& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The description for the Amplify app. </p>
|
|
*/
|
|
inline App& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> The repository for the Amplify app. </p>
|
|
*/
|
|
inline const Aws::String& GetRepository() const{ return m_repository; }
|
|
|
|
/**
|
|
* <p> The repository for the Amplify app. </p>
|
|
*/
|
|
inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The repository for the Amplify app. </p>
|
|
*/
|
|
inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
|
|
|
|
/**
|
|
* <p> The repository for the Amplify app. </p>
|
|
*/
|
|
inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
|
|
|
|
/**
|
|
* <p> The repository for the Amplify app. </p>
|
|
*/
|
|
inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
|
|
|
|
/**
|
|
* <p> The repository for the Amplify app. </p>
|
|
*/
|
|
inline App& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
|
|
|
|
/**
|
|
* <p> The repository for the Amplify app. </p>
|
|
*/
|
|
inline App& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The repository for the Amplify app. </p>
|
|
*/
|
|
inline App& WithRepository(const char* value) { SetRepository(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> The platform for the Amplify app. </p>
|
|
*/
|
|
inline const Platform& GetPlatform() const{ return m_platform; }
|
|
|
|
/**
|
|
* <p> The platform for the Amplify app. </p>
|
|
*/
|
|
inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The platform for the Amplify app. </p>
|
|
*/
|
|
inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; }
|
|
|
|
/**
|
|
* <p> The platform for the Amplify app. </p>
|
|
*/
|
|
inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
|
|
|
|
/**
|
|
* <p> The platform for the Amplify app. </p>
|
|
*/
|
|
inline App& WithPlatform(const Platform& value) { SetPlatform(value); return *this;}
|
|
|
|
/**
|
|
* <p> The platform for the Amplify app. </p>
|
|
*/
|
|
inline App& WithPlatform(Platform&& value) { SetPlatform(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> Creates a date and time for the Amplify app. </p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
|
|
|
|
/**
|
|
* <p> Creates a date and time for the Amplify app. </p>
|
|
*/
|
|
inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Creates a date and time for the Amplify app. </p>
|
|
*/
|
|
inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
|
|
|
|
/**
|
|
* <p> Creates a date and time for the Amplify app. </p>
|
|
*/
|
|
inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
|
|
|
|
/**
|
|
* <p> Creates a date and time for the Amplify app. </p>
|
|
*/
|
|
inline App& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
|
|
|
|
/**
|
|
* <p> Creates a date and time for the Amplify app. </p>
|
|
*/
|
|
inline App& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> Updates the date and time for the Amplify app. </p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; }
|
|
|
|
/**
|
|
* <p> Updates the date and time for the Amplify app. </p>
|
|
*/
|
|
inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Updates the date and time for the Amplify app. </p>
|
|
*/
|
|
inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
|
|
|
|
/**
|
|
* <p> Updates the date and time for the Amplify app. </p>
|
|
*/
|
|
inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); }
|
|
|
|
/**
|
|
* <p> Updates the date and time for the Amplify app. </p>
|
|
*/
|
|
inline App& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
|
|
|
|
/**
|
|
* <p> Updates the date and time for the Amplify app. </p>
|
|
*/
|
|
inline App& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> The AWS Identity and Access Management (IAM) service role for the Amazon
|
|
* Resource Name (ARN) of the Amplify app. </p>
|
|
*/
|
|
inline const Aws::String& GetIamServiceRoleArn() const{ return m_iamServiceRoleArn; }
|
|
|
|
/**
|
|
* <p> The AWS Identity and Access Management (IAM) service role for the Amazon
|
|
* Resource Name (ARN) of the Amplify app. </p>
|
|
*/
|
|
inline bool IamServiceRoleArnHasBeenSet() const { return m_iamServiceRoleArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The AWS Identity and Access Management (IAM) service role for the Amazon
|
|
* Resource Name (ARN) of the Amplify app. </p>
|
|
*/
|
|
inline void SetIamServiceRoleArn(const Aws::String& value) { m_iamServiceRoleArnHasBeenSet = true; m_iamServiceRoleArn = value; }
|
|
|
|
/**
|
|
* <p> The AWS Identity and Access Management (IAM) service role for the Amazon
|
|
* Resource Name (ARN) of the Amplify app. </p>
|
|
*/
|
|
inline void SetIamServiceRoleArn(Aws::String&& value) { m_iamServiceRoleArnHasBeenSet = true; m_iamServiceRoleArn = std::move(value); }
|
|
|
|
/**
|
|
* <p> The AWS Identity and Access Management (IAM) service role for the Amazon
|
|
* Resource Name (ARN) of the Amplify app. </p>
|
|
*/
|
|
inline void SetIamServiceRoleArn(const char* value) { m_iamServiceRoleArnHasBeenSet = true; m_iamServiceRoleArn.assign(value); }
|
|
|
|
/**
|
|
* <p> The AWS Identity and Access Management (IAM) service role for the Amazon
|
|
* Resource Name (ARN) of the Amplify app. </p>
|
|
*/
|
|
inline App& WithIamServiceRoleArn(const Aws::String& value) { SetIamServiceRoleArn(value); return *this;}
|
|
|
|
/**
|
|
* <p> The AWS Identity and Access Management (IAM) service role for the Amazon
|
|
* Resource Name (ARN) of the Amplify app. </p>
|
|
*/
|
|
inline App& WithIamServiceRoleArn(Aws::String&& value) { SetIamServiceRoleArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The AWS Identity and Access Management (IAM) service role for the Amazon
|
|
* Resource Name (ARN) of the Amplify app. </p>
|
|
*/
|
|
inline App& WithIamServiceRoleArn(const char* value) { SetIamServiceRoleArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> The environment variables for the Amplify app. </p>
|
|
*/
|
|
inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const{ return m_environmentVariables; }
|
|
|
|
/**
|
|
* <p> The environment variables for the Amplify app. </p>
|
|
*/
|
|
inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The environment variables for the Amplify app. </p>
|
|
*/
|
|
inline void SetEnvironmentVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = value; }
|
|
|
|
/**
|
|
* <p> The environment variables for the Amplify app. </p>
|
|
*/
|
|
inline void SetEnvironmentVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::move(value); }
|
|
|
|
/**
|
|
* <p> The environment variables for the Amplify app. </p>
|
|
*/
|
|
inline App& WithEnvironmentVariables(const Aws::Map<Aws::String, Aws::String>& value) { SetEnvironmentVariables(value); return *this;}
|
|
|
|
/**
|
|
* <p> The environment variables for the Amplify app. </p>
|
|
*/
|
|
inline App& WithEnvironmentVariables(Aws::Map<Aws::String, Aws::String>&& value) { SetEnvironmentVariables(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The environment variables for the Amplify app. </p>
|
|
*/
|
|
inline App& AddEnvironmentVariables(const Aws::String& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; }
|
|
|
|
/**
|
|
* <p> The environment variables for the Amplify app. </p>
|
|
*/
|
|
inline App& AddEnvironmentVariables(Aws::String&& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p> The environment variables for the Amplify app. </p>
|
|
*/
|
|
inline App& AddEnvironmentVariables(const Aws::String& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p> The environment variables for the Amplify app. </p>
|
|
*/
|
|
inline App& AddEnvironmentVariables(Aws::String&& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p> The environment variables for the Amplify app. </p>
|
|
*/
|
|
inline App& AddEnvironmentVariables(const char* key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p> The environment variables for the Amplify app. </p>
|
|
*/
|
|
inline App& AddEnvironmentVariables(Aws::String&& key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p> The environment variables for the Amplify app. </p>
|
|
*/
|
|
inline App& AddEnvironmentVariables(const char* key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p> The default domain for the Amplify app. </p>
|
|
*/
|
|
inline const Aws::String& GetDefaultDomain() const{ return m_defaultDomain; }
|
|
|
|
/**
|
|
* <p> The default domain for the Amplify app. </p>
|
|
*/
|
|
inline bool DefaultDomainHasBeenSet() const { return m_defaultDomainHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The default domain for the Amplify app. </p>
|
|
*/
|
|
inline void SetDefaultDomain(const Aws::String& value) { m_defaultDomainHasBeenSet = true; m_defaultDomain = value; }
|
|
|
|
/**
|
|
* <p> The default domain for the Amplify app. </p>
|
|
*/
|
|
inline void SetDefaultDomain(Aws::String&& value) { m_defaultDomainHasBeenSet = true; m_defaultDomain = std::move(value); }
|
|
|
|
/**
|
|
* <p> The default domain for the Amplify app. </p>
|
|
*/
|
|
inline void SetDefaultDomain(const char* value) { m_defaultDomainHasBeenSet = true; m_defaultDomain.assign(value); }
|
|
|
|
/**
|
|
* <p> The default domain for the Amplify app. </p>
|
|
*/
|
|
inline App& WithDefaultDomain(const Aws::String& value) { SetDefaultDomain(value); return *this;}
|
|
|
|
/**
|
|
* <p> The default domain for the Amplify app. </p>
|
|
*/
|
|
inline App& WithDefaultDomain(Aws::String&& value) { SetDefaultDomain(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The default domain for the Amplify app. </p>
|
|
*/
|
|
inline App& WithDefaultDomain(const char* value) { SetDefaultDomain(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> Enables the auto-building of branches for the Amplify app. </p>
|
|
*/
|
|
inline bool GetEnableBranchAutoBuild() const{ return m_enableBranchAutoBuild; }
|
|
|
|
/**
|
|
* <p> Enables the auto-building of branches for the Amplify app. </p>
|
|
*/
|
|
inline bool EnableBranchAutoBuildHasBeenSet() const { return m_enableBranchAutoBuildHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Enables the auto-building of branches for the Amplify app. </p>
|
|
*/
|
|
inline void SetEnableBranchAutoBuild(bool value) { m_enableBranchAutoBuildHasBeenSet = true; m_enableBranchAutoBuild = value; }
|
|
|
|
/**
|
|
* <p> Enables the auto-building of branches for the Amplify app. </p>
|
|
*/
|
|
inline App& WithEnableBranchAutoBuild(bool value) { SetEnableBranchAutoBuild(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> Automatically disconnect a branch in the Amplify Console when you delete a
|
|
* branch from your Git repository. </p>
|
|
*/
|
|
inline bool GetEnableBranchAutoDeletion() const{ return m_enableBranchAutoDeletion; }
|
|
|
|
/**
|
|
* <p> Automatically disconnect a branch in the Amplify Console when you delete a
|
|
* branch from your Git repository. </p>
|
|
*/
|
|
inline bool EnableBranchAutoDeletionHasBeenSet() const { return m_enableBranchAutoDeletionHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Automatically disconnect a branch in the Amplify Console when you delete a
|
|
* branch from your Git repository. </p>
|
|
*/
|
|
inline void SetEnableBranchAutoDeletion(bool value) { m_enableBranchAutoDeletionHasBeenSet = true; m_enableBranchAutoDeletion = value; }
|
|
|
|
/**
|
|
* <p> Automatically disconnect a branch in the Amplify Console when you delete a
|
|
* branch from your Git repository. </p>
|
|
*/
|
|
inline App& WithEnableBranchAutoDeletion(bool value) { SetEnableBranchAutoDeletion(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> Enables basic authorization for the Amplify app's branches. </p>
|
|
*/
|
|
inline bool GetEnableBasicAuth() const{ return m_enableBasicAuth; }
|
|
|
|
/**
|
|
* <p> Enables basic authorization for the Amplify app's branches. </p>
|
|
*/
|
|
inline bool EnableBasicAuthHasBeenSet() const { return m_enableBasicAuthHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Enables basic authorization for the Amplify app's branches. </p>
|
|
*/
|
|
inline void SetEnableBasicAuth(bool value) { m_enableBasicAuthHasBeenSet = true; m_enableBasicAuth = value; }
|
|
|
|
/**
|
|
* <p> Enables basic authorization for the Amplify app's branches. </p>
|
|
*/
|
|
inline App& WithEnableBasicAuth(bool value) { SetEnableBasicAuth(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> The basic authorization credentials for branches for the Amplify app. </p>
|
|
*/
|
|
inline const Aws::String& GetBasicAuthCredentials() const{ return m_basicAuthCredentials; }
|
|
|
|
/**
|
|
* <p> The basic authorization credentials for branches for the Amplify app. </p>
|
|
*/
|
|
inline bool BasicAuthCredentialsHasBeenSet() const { return m_basicAuthCredentialsHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The basic authorization credentials for branches for the Amplify app. </p>
|
|
*/
|
|
inline void SetBasicAuthCredentials(const Aws::String& value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials = value; }
|
|
|
|
/**
|
|
* <p> The basic authorization credentials for branches for the Amplify app. </p>
|
|
*/
|
|
inline void SetBasicAuthCredentials(Aws::String&& value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials = std::move(value); }
|
|
|
|
/**
|
|
* <p> The basic authorization credentials for branches for the Amplify app. </p>
|
|
*/
|
|
inline void SetBasicAuthCredentials(const char* value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials.assign(value); }
|
|
|
|
/**
|
|
* <p> The basic authorization credentials for branches for the Amplify app. </p>
|
|
*/
|
|
inline App& WithBasicAuthCredentials(const Aws::String& value) { SetBasicAuthCredentials(value); return *this;}
|
|
|
|
/**
|
|
* <p> The basic authorization credentials for branches for the Amplify app. </p>
|
|
*/
|
|
inline App& WithBasicAuthCredentials(Aws::String&& value) { SetBasicAuthCredentials(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The basic authorization credentials for branches for the Amplify app. </p>
|
|
*/
|
|
inline App& WithBasicAuthCredentials(const char* value) { SetBasicAuthCredentials(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> Describes the custom redirect and rewrite rules for the Amplify app. </p>
|
|
*/
|
|
inline const Aws::Vector<CustomRule>& GetCustomRules() const{ return m_customRules; }
|
|
|
|
/**
|
|
* <p> Describes the custom redirect and rewrite rules for the Amplify app. </p>
|
|
*/
|
|
inline bool CustomRulesHasBeenSet() const { return m_customRulesHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Describes the custom redirect and rewrite rules for the Amplify app. </p>
|
|
*/
|
|
inline void SetCustomRules(const Aws::Vector<CustomRule>& value) { m_customRulesHasBeenSet = true; m_customRules = value; }
|
|
|
|
/**
|
|
* <p> Describes the custom redirect and rewrite rules for the Amplify app. </p>
|
|
*/
|
|
inline void SetCustomRules(Aws::Vector<CustomRule>&& value) { m_customRulesHasBeenSet = true; m_customRules = std::move(value); }
|
|
|
|
/**
|
|
* <p> Describes the custom redirect and rewrite rules for the Amplify app. </p>
|
|
*/
|
|
inline App& WithCustomRules(const Aws::Vector<CustomRule>& value) { SetCustomRules(value); return *this;}
|
|
|
|
/**
|
|
* <p> Describes the custom redirect and rewrite rules for the Amplify app. </p>
|
|
*/
|
|
inline App& WithCustomRules(Aws::Vector<CustomRule>&& value) { SetCustomRules(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> Describes the custom redirect and rewrite rules for the Amplify app. </p>
|
|
*/
|
|
inline App& AddCustomRules(const CustomRule& value) { m_customRulesHasBeenSet = true; m_customRules.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p> Describes the custom redirect and rewrite rules for the Amplify app. </p>
|
|
*/
|
|
inline App& AddCustomRules(CustomRule&& value) { m_customRulesHasBeenSet = true; m_customRules.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p> Describes the information about a production branch of the Amplify app. </p>
|
|
*/
|
|
inline const ProductionBranch& GetProductionBranch() const{ return m_productionBranch; }
|
|
|
|
/**
|
|
* <p> Describes the information about a production branch of the Amplify app. </p>
|
|
*/
|
|
inline bool ProductionBranchHasBeenSet() const { return m_productionBranchHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Describes the information about a production branch of the Amplify app. </p>
|
|
*/
|
|
inline void SetProductionBranch(const ProductionBranch& value) { m_productionBranchHasBeenSet = true; m_productionBranch = value; }
|
|
|
|
/**
|
|
* <p> Describes the information about a production branch of the Amplify app. </p>
|
|
*/
|
|
inline void SetProductionBranch(ProductionBranch&& value) { m_productionBranchHasBeenSet = true; m_productionBranch = std::move(value); }
|
|
|
|
/**
|
|
* <p> Describes the information about a production branch of the Amplify app. </p>
|
|
*/
|
|
inline App& WithProductionBranch(const ProductionBranch& value) { SetProductionBranch(value); return *this;}
|
|
|
|
/**
|
|
* <p> Describes the information about a production branch of the Amplify app. </p>
|
|
*/
|
|
inline App& WithProductionBranch(ProductionBranch&& value) { SetProductionBranch(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> Describes the content of the build specification (build spec) for the
|
|
* Amplify app. </p>
|
|
*/
|
|
inline const Aws::String& GetBuildSpec() const{ return m_buildSpec; }
|
|
|
|
/**
|
|
* <p> Describes the content of the build specification (build spec) for the
|
|
* Amplify app. </p>
|
|
*/
|
|
inline bool BuildSpecHasBeenSet() const { return m_buildSpecHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Describes the content of the build specification (build spec) for the
|
|
* Amplify app. </p>
|
|
*/
|
|
inline void SetBuildSpec(const Aws::String& value) { m_buildSpecHasBeenSet = true; m_buildSpec = value; }
|
|
|
|
/**
|
|
* <p> Describes the content of the build specification (build spec) for the
|
|
* Amplify app. </p>
|
|
*/
|
|
inline void SetBuildSpec(Aws::String&& value) { m_buildSpecHasBeenSet = true; m_buildSpec = std::move(value); }
|
|
|
|
/**
|
|
* <p> Describes the content of the build specification (build spec) for the
|
|
* Amplify app. </p>
|
|
*/
|
|
inline void SetBuildSpec(const char* value) { m_buildSpecHasBeenSet = true; m_buildSpec.assign(value); }
|
|
|
|
/**
|
|
* <p> Describes the content of the build specification (build spec) for the
|
|
* Amplify app. </p>
|
|
*/
|
|
inline App& WithBuildSpec(const Aws::String& value) { SetBuildSpec(value); return *this;}
|
|
|
|
/**
|
|
* <p> Describes the content of the build specification (build spec) for the
|
|
* Amplify app. </p>
|
|
*/
|
|
inline App& WithBuildSpec(Aws::String&& value) { SetBuildSpec(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> Describes the content of the build specification (build spec) for the
|
|
* Amplify app. </p>
|
|
*/
|
|
inline App& WithBuildSpec(const char* value) { SetBuildSpec(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> Enables automated branch creation for the Amplify app. </p>
|
|
*/
|
|
inline bool GetEnableAutoBranchCreation() const{ return m_enableAutoBranchCreation; }
|
|
|
|
/**
|
|
* <p> Enables automated branch creation for the Amplify app. </p>
|
|
*/
|
|
inline bool EnableAutoBranchCreationHasBeenSet() const { return m_enableAutoBranchCreationHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Enables automated branch creation for the Amplify app. </p>
|
|
*/
|
|
inline void SetEnableAutoBranchCreation(bool value) { m_enableAutoBranchCreationHasBeenSet = true; m_enableAutoBranchCreation = value; }
|
|
|
|
/**
|
|
* <p> Enables automated branch creation for the Amplify app. </p>
|
|
*/
|
|
inline App& WithEnableAutoBranchCreation(bool value) { SetEnableAutoBranchCreation(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> Describes the automated branch creation glob patterns for the Amplify app.
|
|
* </p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetAutoBranchCreationPatterns() const{ return m_autoBranchCreationPatterns; }
|
|
|
|
/**
|
|
* <p> Describes the automated branch creation glob patterns for the Amplify app.
|
|
* </p>
|
|
*/
|
|
inline bool AutoBranchCreationPatternsHasBeenSet() const { return m_autoBranchCreationPatternsHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Describes the automated branch creation glob patterns for the Amplify app.
|
|
* </p>
|
|
*/
|
|
inline void SetAutoBranchCreationPatterns(const Aws::Vector<Aws::String>& value) { m_autoBranchCreationPatternsHasBeenSet = true; m_autoBranchCreationPatterns = value; }
|
|
|
|
/**
|
|
* <p> Describes the automated branch creation glob patterns for the Amplify app.
|
|
* </p>
|
|
*/
|
|
inline void SetAutoBranchCreationPatterns(Aws::Vector<Aws::String>&& value) { m_autoBranchCreationPatternsHasBeenSet = true; m_autoBranchCreationPatterns = std::move(value); }
|
|
|
|
/**
|
|
* <p> Describes the automated branch creation glob patterns for the Amplify app.
|
|
* </p>
|
|
*/
|
|
inline App& WithAutoBranchCreationPatterns(const Aws::Vector<Aws::String>& value) { SetAutoBranchCreationPatterns(value); return *this;}
|
|
|
|
/**
|
|
* <p> Describes the automated branch creation glob patterns for the Amplify app.
|
|
* </p>
|
|
*/
|
|
inline App& WithAutoBranchCreationPatterns(Aws::Vector<Aws::String>&& value) { SetAutoBranchCreationPatterns(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> Describes the automated branch creation glob patterns for the Amplify app.
|
|
* </p>
|
|
*/
|
|
inline App& AddAutoBranchCreationPatterns(const Aws::String& value) { m_autoBranchCreationPatternsHasBeenSet = true; m_autoBranchCreationPatterns.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p> Describes the automated branch creation glob patterns for the Amplify app.
|
|
* </p>
|
|
*/
|
|
inline App& AddAutoBranchCreationPatterns(Aws::String&& value) { m_autoBranchCreationPatternsHasBeenSet = true; m_autoBranchCreationPatterns.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p> Describes the automated branch creation glob patterns for the Amplify app.
|
|
* </p>
|
|
*/
|
|
inline App& AddAutoBranchCreationPatterns(const char* value) { m_autoBranchCreationPatternsHasBeenSet = true; m_autoBranchCreationPatterns.push_back(value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p> Describes the automated branch creation configuration for the Amplify app.
|
|
* </p>
|
|
*/
|
|
inline const AutoBranchCreationConfig& GetAutoBranchCreationConfig() const{ return m_autoBranchCreationConfig; }
|
|
|
|
/**
|
|
* <p> Describes the automated branch creation configuration for the Amplify app.
|
|
* </p>
|
|
*/
|
|
inline bool AutoBranchCreationConfigHasBeenSet() const { return m_autoBranchCreationConfigHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Describes the automated branch creation configuration for the Amplify app.
|
|
* </p>
|
|
*/
|
|
inline void SetAutoBranchCreationConfig(const AutoBranchCreationConfig& value) { m_autoBranchCreationConfigHasBeenSet = true; m_autoBranchCreationConfig = value; }
|
|
|
|
/**
|
|
* <p> Describes the automated branch creation configuration for the Amplify app.
|
|
* </p>
|
|
*/
|
|
inline void SetAutoBranchCreationConfig(AutoBranchCreationConfig&& value) { m_autoBranchCreationConfigHasBeenSet = true; m_autoBranchCreationConfig = std::move(value); }
|
|
|
|
/**
|
|
* <p> Describes the automated branch creation configuration for the Amplify app.
|
|
* </p>
|
|
*/
|
|
inline App& WithAutoBranchCreationConfig(const AutoBranchCreationConfig& value) { SetAutoBranchCreationConfig(value); return *this;}
|
|
|
|
/**
|
|
* <p> Describes the automated branch creation configuration for the Amplify app.
|
|
* </p>
|
|
*/
|
|
inline App& WithAutoBranchCreationConfig(AutoBranchCreationConfig&& value) { SetAutoBranchCreationConfig(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_appId;
|
|
bool m_appIdHasBeenSet;
|
|
|
|
Aws::String m_appArn;
|
|
bool m_appArnHasBeenSet;
|
|
|
|
Aws::String m_name;
|
|
bool m_nameHasBeenSet;
|
|
|
|
Aws::Map<Aws::String, Aws::String> m_tags;
|
|
bool m_tagsHasBeenSet;
|
|
|
|
Aws::String m_description;
|
|
bool m_descriptionHasBeenSet;
|
|
|
|
Aws::String m_repository;
|
|
bool m_repositoryHasBeenSet;
|
|
|
|
Platform m_platform;
|
|
bool m_platformHasBeenSet;
|
|
|
|
Aws::Utils::DateTime m_createTime;
|
|
bool m_createTimeHasBeenSet;
|
|
|
|
Aws::Utils::DateTime m_updateTime;
|
|
bool m_updateTimeHasBeenSet;
|
|
|
|
Aws::String m_iamServiceRoleArn;
|
|
bool m_iamServiceRoleArnHasBeenSet;
|
|
|
|
Aws::Map<Aws::String, Aws::String> m_environmentVariables;
|
|
bool m_environmentVariablesHasBeenSet;
|
|
|
|
Aws::String m_defaultDomain;
|
|
bool m_defaultDomainHasBeenSet;
|
|
|
|
bool m_enableBranchAutoBuild;
|
|
bool m_enableBranchAutoBuildHasBeenSet;
|
|
|
|
bool m_enableBranchAutoDeletion;
|
|
bool m_enableBranchAutoDeletionHasBeenSet;
|
|
|
|
bool m_enableBasicAuth;
|
|
bool m_enableBasicAuthHasBeenSet;
|
|
|
|
Aws::String m_basicAuthCredentials;
|
|
bool m_basicAuthCredentialsHasBeenSet;
|
|
|
|
Aws::Vector<CustomRule> m_customRules;
|
|
bool m_customRulesHasBeenSet;
|
|
|
|
ProductionBranch m_productionBranch;
|
|
bool m_productionBranchHasBeenSet;
|
|
|
|
Aws::String m_buildSpec;
|
|
bool m_buildSpecHasBeenSet;
|
|
|
|
bool m_enableAutoBranchCreation;
|
|
bool m_enableAutoBranchCreationHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_autoBranchCreationPatterns;
|
|
bool m_autoBranchCreationPatternsHasBeenSet;
|
|
|
|
AutoBranchCreationConfig m_autoBranchCreationConfig;
|
|
bool m_autoBranchCreationConfigHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Amplify
|
|
} // namespace Aws
|