AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
GetAutoSnapshotsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/AutoSnapshotDetails.h>
11#include <aws/lightsail/model/ResourceType.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail {
25namespace Model {
27 public:
28 AWS_LIGHTSAIL_API GetAutoSnapshotsResult() = default;
31
33
36 inline const Aws::String& GetResourceName() const { return m_resourceName; }
37 template <typename ResourceNameT = Aws::String>
38 void SetResourceName(ResourceNameT&& value) {
39 m_resourceNameHasBeenSet = true;
40 m_resourceName = std::forward<ResourceNameT>(value);
41 }
42 template <typename ResourceNameT = Aws::String>
43 GetAutoSnapshotsResult& WithResourceName(ResourceNameT&& value) {
44 SetResourceName(std::forward<ResourceNameT>(value));
45 return *this;
46 }
48
50
54 inline ResourceType GetResourceType() const { return m_resourceType; }
55 inline void SetResourceType(ResourceType value) {
56 m_resourceTypeHasBeenSet = true;
57 m_resourceType = value;
58 }
60 SetResourceType(value);
61 return *this;
62 }
64
66
70 inline const Aws::Vector<AutoSnapshotDetails>& GetAutoSnapshots() const { return m_autoSnapshots; }
71 template <typename AutoSnapshotsT = Aws::Vector<AutoSnapshotDetails>>
72 void SetAutoSnapshots(AutoSnapshotsT&& value) {
73 m_autoSnapshotsHasBeenSet = true;
74 m_autoSnapshots = std::forward<AutoSnapshotsT>(value);
75 }
76 template <typename AutoSnapshotsT = Aws::Vector<AutoSnapshotDetails>>
77 GetAutoSnapshotsResult& WithAutoSnapshots(AutoSnapshotsT&& value) {
78 SetAutoSnapshots(std::forward<AutoSnapshotsT>(value));
79 return *this;
80 }
81 template <typename AutoSnapshotsT = AutoSnapshotDetails>
82 GetAutoSnapshotsResult& AddAutoSnapshots(AutoSnapshotsT&& value) {
83 m_autoSnapshotsHasBeenSet = true;
84 m_autoSnapshots.emplace_back(std::forward<AutoSnapshotsT>(value));
85 return *this;
86 }
88
90
91 inline const Aws::String& GetRequestId() const { return m_requestId; }
92 template <typename RequestIdT = Aws::String>
93 void SetRequestId(RequestIdT&& value) {
94 m_requestIdHasBeenSet = true;
95 m_requestId = std::forward<RequestIdT>(value);
96 }
97 template <typename RequestIdT = Aws::String>
99 SetRequestId(std::forward<RequestIdT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_resourceName;
105 bool m_resourceNameHasBeenSet = false;
106
107 ResourceType m_resourceType{ResourceType::NOT_SET};
108 bool m_resourceTypeHasBeenSet = false;
109
110 Aws::Vector<AutoSnapshotDetails> m_autoSnapshots;
111 bool m_autoSnapshotsHasBeenSet = false;
112
113 Aws::String m_requestId;
114 bool m_requestIdHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace Lightsail
119} // namespace Aws
AWS_LIGHTSAIL_API GetAutoSnapshotsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAutoSnapshotsResult & WithAutoSnapshots(AutoSnapshotsT &&value)
GetAutoSnapshotsResult & WithResourceType(ResourceType value)
GetAutoSnapshotsResult & WithResourceName(ResourceNameT &&value)
AWS_LIGHTSAIL_API GetAutoSnapshotsResult()=default
const Aws::Vector< AutoSnapshotDetails > & GetAutoSnapshots() const
GetAutoSnapshotsResult & AddAutoSnapshots(AutoSnapshotsT &&value)
GetAutoSnapshotsResult & WithRequestId(RequestIdT &&value)
AWS_LIGHTSAIL_API GetAutoSnapshotsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue