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

The S3 location.

See Also:

AWS API * Reference

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

The S3 bucket.

*/ inline const Aws::String& GetBucket() const{ return m_bucket; } /** *

The S3 bucket.

*/ inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } /** *

The S3 bucket.

*/ inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } /** *

The S3 bucket.

*/ inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } /** *

The S3 bucket.

*/ inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } /** *

The S3 bucket.

*/ inline S3Location& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} /** *

The S3 bucket.

*/ inline S3Location& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} /** *

The S3 bucket.

*/ inline S3Location& WithBucket(const char* value) { SetBucket(value); return *this;} /** *

The S3 key.

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

The S3 key.

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

The S3 key.

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

The S3 key.

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

The S3 key.

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

The S3 key.

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

The S3 key.

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

The S3 key.

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

The S3 bucket version.

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

The S3 bucket version.

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

The S3 bucket version.

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

The S3 bucket version.

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

The S3 bucket version.

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

The S3 bucket version.

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

The S3 bucket version.

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

The S3 bucket version.

*/ inline S3Location& WithVersion(const char* value) { SetVersion(value); return *this;} private: Aws::String m_bucket; bool m_bucketHasBeenSet = false; Aws::String m_key; bool m_keyHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws