/** * 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 signer { namespace Model { /** *

Information about the S3 bucket where you saved your unsigned * code.

See Also:

AWS API * Reference

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

Name of the S3 bucket.

*/ inline const Aws::String& GetBucketName() const{ return m_bucketName; } /** *

Name of the S3 bucket.

*/ inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; } /** *

Name of the S3 bucket.

*/ inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; } /** *

Name of the S3 bucket.

*/ inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); } /** *

Name of the S3 bucket.

*/ inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); } /** *

Name of the S3 bucket.

*/ inline S3Source& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;} /** *

Name of the S3 bucket.

*/ inline S3Source& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;} /** *

Name of the S3 bucket.

*/ inline S3Source& WithBucketName(const char* value) { SetBucketName(value); return *this;} /** *

Key name of the bucket object that contains your unsigned code.

*/ inline const Aws::String& GetKey() const{ return m_key; } /** *

Key name of the bucket object that contains your unsigned code.

*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *

Key name of the bucket object that contains your unsigned code.

*/ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } /** *

Key name of the bucket object that contains your unsigned code.

*/ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *

Key name of the bucket object that contains your unsigned code.

*/ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } /** *

Key name of the bucket object that contains your unsigned code.

*/ inline S3Source& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *

Key name of the bucket object that contains your unsigned code.

*/ inline S3Source& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *

Key name of the bucket object that contains your unsigned code.

*/ inline S3Source& WithKey(const char* value) { SetKey(value); return *this;} /** *

Version of your source image in your version enabled S3 bucket.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

Version of your source image in your version enabled S3 bucket.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

Version of your source image in your version enabled S3 bucket.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

Version of your source image in your version enabled S3 bucket.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

Version of your source image in your version enabled S3 bucket.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

Version of your source image in your version enabled S3 bucket.

*/ inline S3Source& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

Version of your source image in your version enabled S3 bucket.

*/ inline S3Source& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

Version of your source image in your version enabled S3 bucket.

*/ inline S3Source& WithVersion(const char* value) { SetVersion(value); return *this;} private: Aws::String m_bucketName; bool m_bucketNameHasBeenSet = false; Aws::String m_key; bool m_keyHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; }; } // namespace Model } // namespace signer } // namespace Aws