289 lines
10 KiB
C++
289 lines
10 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSMap.h>
|
|
#include <aws/imagebuilder/model/LaunchPermissionConfiguration.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace imagebuilder
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p> Define and configure the output AMIs of the pipeline. </p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/AmiDistributionConfiguration">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_IMAGEBUILDER_API AmiDistributionConfiguration
|
|
{
|
|
public:
|
|
AmiDistributionConfiguration();
|
|
AmiDistributionConfiguration(Aws::Utils::Json::JsonView jsonValue);
|
|
AmiDistributionConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The name of the distribution configuration. </p>
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
|
|
/**
|
|
* <p>The name of the distribution configuration. </p>
|
|
*/
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the distribution configuration. </p>
|
|
*/
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|
|
|
/**
|
|
* <p>The name of the distribution configuration. </p>
|
|
*/
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the distribution configuration. </p>
|
|
*/
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the distribution configuration. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the distribution configuration. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the distribution configuration. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& WithName(const char* value) { SetName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The description of the distribution configuration. </p>
|
|
*/
|
|
inline const Aws::String& GetDescription() const{ return m_description; }
|
|
|
|
/**
|
|
* <p>The description of the distribution configuration. </p>
|
|
*/
|
|
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The description of the distribution configuration. </p>
|
|
*/
|
|
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
|
|
|
/**
|
|
* <p>The description of the distribution configuration. </p>
|
|
*/
|
|
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
|
|
|
/**
|
|
* <p>The description of the distribution configuration. </p>
|
|
*/
|
|
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
|
|
|
/**
|
|
* <p>The description of the distribution configuration. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|
|
|
/**
|
|
* <p>The description of the distribution configuration. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The description of the distribution configuration. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The tags to apply to AMIs distributed to this Region. </p>
|
|
*/
|
|
inline const Aws::Map<Aws::String, Aws::String>& GetAmiTags() const{ return m_amiTags; }
|
|
|
|
/**
|
|
* <p>The tags to apply to AMIs distributed to this Region. </p>
|
|
*/
|
|
inline bool AmiTagsHasBeenSet() const { return m_amiTagsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The tags to apply to AMIs distributed to this Region. </p>
|
|
*/
|
|
inline void SetAmiTags(const Aws::Map<Aws::String, Aws::String>& value) { m_amiTagsHasBeenSet = true; m_amiTags = value; }
|
|
|
|
/**
|
|
* <p>The tags to apply to AMIs distributed to this Region. </p>
|
|
*/
|
|
inline void SetAmiTags(Aws::Map<Aws::String, Aws::String>&& value) { m_amiTagsHasBeenSet = true; m_amiTags = std::move(value); }
|
|
|
|
/**
|
|
* <p>The tags to apply to AMIs distributed to this Region. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& WithAmiTags(const Aws::Map<Aws::String, Aws::String>& value) { SetAmiTags(value); return *this;}
|
|
|
|
/**
|
|
* <p>The tags to apply to AMIs distributed to this Region. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& WithAmiTags(Aws::Map<Aws::String, Aws::String>&& value) { SetAmiTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The tags to apply to AMIs distributed to this Region. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& AddAmiTags(const Aws::String& key, const Aws::String& value) { m_amiTagsHasBeenSet = true; m_amiTags.emplace(key, value); return *this; }
|
|
|
|
/**
|
|
* <p>The tags to apply to AMIs distributed to this Region. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& AddAmiTags(Aws::String&& key, const Aws::String& value) { m_amiTagsHasBeenSet = true; m_amiTags.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p>The tags to apply to AMIs distributed to this Region. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& AddAmiTags(const Aws::String& key, Aws::String&& value) { m_amiTagsHasBeenSet = true; m_amiTags.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The tags to apply to AMIs distributed to this Region. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& AddAmiTags(Aws::String&& key, Aws::String&& value) { m_amiTagsHasBeenSet = true; m_amiTags.emplace(std::move(key), std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The tags to apply to AMIs distributed to this Region. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& AddAmiTags(const char* key, Aws::String&& value) { m_amiTagsHasBeenSet = true; m_amiTags.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The tags to apply to AMIs distributed to this Region. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& AddAmiTags(Aws::String&& key, const char* value) { m_amiTagsHasBeenSet = true; m_amiTags.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p>The tags to apply to AMIs distributed to this Region. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& AddAmiTags(const char* key, const char* value) { m_amiTagsHasBeenSet = true; m_amiTags.emplace(key, value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p> The KMS key identifier used to encrypt the distributed image. </p>
|
|
*/
|
|
inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
|
|
|
|
/**
|
|
* <p> The KMS key identifier used to encrypt the distributed image. </p>
|
|
*/
|
|
inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The KMS key identifier used to encrypt the distributed image. </p>
|
|
*/
|
|
inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
|
|
|
|
/**
|
|
* <p> The KMS key identifier used to encrypt the distributed image. </p>
|
|
*/
|
|
inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
|
|
|
|
/**
|
|
* <p> The KMS key identifier used to encrypt the distributed image. </p>
|
|
*/
|
|
inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
|
|
|
|
/**
|
|
* <p> The KMS key identifier used to encrypt the distributed image. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
|
|
|
|
/**
|
|
* <p> The KMS key identifier used to encrypt the distributed image. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The KMS key identifier used to encrypt the distributed image. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> Launch permissions can be used to configure which AWS accounts can use the
|
|
* AMI to launch instances. </p>
|
|
*/
|
|
inline const LaunchPermissionConfiguration& GetLaunchPermission() const{ return m_launchPermission; }
|
|
|
|
/**
|
|
* <p> Launch permissions can be used to configure which AWS accounts can use the
|
|
* AMI to launch instances. </p>
|
|
*/
|
|
inline bool LaunchPermissionHasBeenSet() const { return m_launchPermissionHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Launch permissions can be used to configure which AWS accounts can use the
|
|
* AMI to launch instances. </p>
|
|
*/
|
|
inline void SetLaunchPermission(const LaunchPermissionConfiguration& value) { m_launchPermissionHasBeenSet = true; m_launchPermission = value; }
|
|
|
|
/**
|
|
* <p> Launch permissions can be used to configure which AWS accounts can use the
|
|
* AMI to launch instances. </p>
|
|
*/
|
|
inline void SetLaunchPermission(LaunchPermissionConfiguration&& value) { m_launchPermissionHasBeenSet = true; m_launchPermission = std::move(value); }
|
|
|
|
/**
|
|
* <p> Launch permissions can be used to configure which AWS accounts can use the
|
|
* AMI to launch instances. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& WithLaunchPermission(const LaunchPermissionConfiguration& value) { SetLaunchPermission(value); return *this;}
|
|
|
|
/**
|
|
* <p> Launch permissions can be used to configure which AWS accounts can use the
|
|
* AMI to launch instances. </p>
|
|
*/
|
|
inline AmiDistributionConfiguration& WithLaunchPermission(LaunchPermissionConfiguration&& value) { SetLaunchPermission(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_name;
|
|
bool m_nameHasBeenSet;
|
|
|
|
Aws::String m_description;
|
|
bool m_descriptionHasBeenSet;
|
|
|
|
Aws::Map<Aws::String, Aws::String> m_amiTags;
|
|
bool m_amiTagsHasBeenSet;
|
|
|
|
Aws::String m_kmsKeyId;
|
|
bool m_kmsKeyIdHasBeenSet;
|
|
|
|
LaunchPermissionConfiguration m_launchPermission;
|
|
bool m_launchPermissionHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace imagebuilder
|
|
} // namespace Aws
|