/** * 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 { /** *

The name and prefix of the S3 bucket where code signing saves your signed * objects.

See Also:

AWS * API Reference

*/ class S3Destination { public: AWS_SIGNER_API S3Destination(); AWS_SIGNER_API S3Destination(Aws::Utils::Json::JsonView jsonValue); AWS_SIGNER_API S3Destination& 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 S3Destination& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;} /** *

Name of the S3 bucket.

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

Name of the S3 bucket.

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

An Amazon S3 prefix that you can use to limit responses to those that begin * with the specified prefix.

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

An Amazon S3 prefix that you can use to limit responses to those that begin * with the specified prefix.

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

An Amazon S3 prefix that you can use to limit responses to those that begin * with the specified prefix.

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

An Amazon S3 prefix that you can use to limit responses to those that begin * with the specified prefix.

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

An Amazon S3 prefix that you can use to limit responses to those that begin * with the specified prefix.

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

An Amazon S3 prefix that you can use to limit responses to those that begin * with the specified prefix.

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

An Amazon S3 prefix that you can use to limit responses to those that begin * with the specified prefix.

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

An Amazon S3 prefix that you can use to limit responses to those that begin * with the specified prefix.

*/ inline S3Destination& WithPrefix(const char* value) { SetPrefix(value); return *this;} private: Aws::String m_bucketName; bool m_bucketNameHasBeenSet = false; Aws::String m_prefix; bool m_prefixHasBeenSet = false; }; } // namespace Model } // namespace signer } // namespace Aws