/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT { namespace Model { /** *

The location of the OTA update.

See Also:

AWS * API Reference

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

The stream that contains the OTA update.

*/ inline const Stream& GetStream() const{ return m_stream; } /** *

The stream that contains the OTA update.

*/ inline bool StreamHasBeenSet() const { return m_streamHasBeenSet; } /** *

The stream that contains the OTA update.

*/ inline void SetStream(const Stream& value) { m_streamHasBeenSet = true; m_stream = value; } /** *

The stream that contains the OTA update.

*/ inline void SetStream(Stream&& value) { m_streamHasBeenSet = true; m_stream = std::move(value); } /** *

The stream that contains the OTA update.

*/ inline FileLocation& WithStream(const Stream& value) { SetStream(value); return *this;} /** *

The stream that contains the OTA update.

*/ inline FileLocation& WithStream(Stream&& value) { SetStream(std::move(value)); return *this;} /** *

The location of the updated firmware in S3.

*/ inline const S3Location& GetS3Location() const{ return m_s3Location; } /** *

The location of the updated firmware in S3.

*/ inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; } /** *

The location of the updated firmware in S3.

*/ inline void SetS3Location(const S3Location& value) { m_s3LocationHasBeenSet = true; m_s3Location = value; } /** *

The location of the updated firmware in S3.

*/ inline void SetS3Location(S3Location&& value) { m_s3LocationHasBeenSet = true; m_s3Location = std::move(value); } /** *

The location of the updated firmware in S3.

*/ inline FileLocation& WithS3Location(const S3Location& value) { SetS3Location(value); return *this;} /** *

The location of the updated firmware in S3.

*/ inline FileLocation& WithS3Location(S3Location&& value) { SetS3Location(std::move(value)); return *this;} private: Stream m_stream; bool m_streamHasBeenSet = false; S3Location m_s3Location; bool m_s3LocationHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws