AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
FileLocation.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/model/S3Location.h>
9#include <aws/iot/model/Stream.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
29 public:
30 AWS_IOT_API FileLocation() = default;
34
36
39 inline const Stream& GetStream() const { return m_stream; }
40 inline bool StreamHasBeenSet() const { return m_streamHasBeenSet; }
41 template <typename StreamT = Stream>
42 void SetStream(StreamT&& value) {
43 m_streamHasBeenSet = true;
44 m_stream = std::forward<StreamT>(value);
45 }
46 template <typename StreamT = Stream>
47 FileLocation& WithStream(StreamT&& value) {
48 SetStream(std::forward<StreamT>(value));
49 return *this;
50 }
52
54
57 inline const S3Location& GetS3Location() const { return m_s3Location; }
58 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
59 template <typename S3LocationT = S3Location>
60 void SetS3Location(S3LocationT&& value) {
61 m_s3LocationHasBeenSet = true;
62 m_s3Location = std::forward<S3LocationT>(value);
63 }
64 template <typename S3LocationT = S3Location>
65 FileLocation& WithS3Location(S3LocationT&& value) {
66 SetS3Location(std::forward<S3LocationT>(value));
67 return *this;
68 }
70 private:
71 Stream m_stream;
72
73 S3Location m_s3Location;
74 bool m_streamHasBeenSet = false;
75 bool m_s3LocationHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace IoT
80} // namespace Aws
FileLocation & WithStream(StreamT &&value)
void SetStream(StreamT &&value)
AWS_IOT_API FileLocation(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API FileLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetS3Location(S3LocationT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
FileLocation & WithS3Location(S3LocationT &&value)
AWS_IOT_API FileLocation()=default
const Stream & GetStream() const
const S3Location & GetS3Location() const
Aws::Utils::Json::JsonValue JsonValue