AWS SDK for C++  1.9.109
AWS SDK for C++
GetAutoSnapshotsResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace Lightsail
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
42 
46  inline void SetResourceName(const Aws::String& value) { m_resourceName = value; }
47 
51  inline void SetResourceName(Aws::String&& value) { m_resourceName = std::move(value); }
52 
56  inline void SetResourceName(const char* value) { m_resourceName.assign(value); }
57 
61  inline GetAutoSnapshotsResult& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
62 
66  inline GetAutoSnapshotsResult& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
67 
71  inline GetAutoSnapshotsResult& WithResourceName(const char* value) { SetResourceName(value); return *this;}
72 
73 
77  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
78 
82  inline void SetResourceType(const ResourceType& value) { m_resourceType = value; }
83 
87  inline void SetResourceType(ResourceType&& value) { m_resourceType = std::move(value); }
88 
92  inline GetAutoSnapshotsResult& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
93 
97  inline GetAutoSnapshotsResult& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
98 
99 
104  inline const Aws::Vector<AutoSnapshotDetails>& GetAutoSnapshots() const{ return m_autoSnapshots; }
105 
110  inline void SetAutoSnapshots(const Aws::Vector<AutoSnapshotDetails>& value) { m_autoSnapshots = value; }
111 
116  inline void SetAutoSnapshots(Aws::Vector<AutoSnapshotDetails>&& value) { m_autoSnapshots = std::move(value); }
117 
122  inline GetAutoSnapshotsResult& WithAutoSnapshots(const Aws::Vector<AutoSnapshotDetails>& value) { SetAutoSnapshots(value); return *this;}
123 
128  inline GetAutoSnapshotsResult& WithAutoSnapshots(Aws::Vector<AutoSnapshotDetails>&& value) { SetAutoSnapshots(std::move(value)); return *this;}
129 
134  inline GetAutoSnapshotsResult& AddAutoSnapshots(const AutoSnapshotDetails& value) { m_autoSnapshots.push_back(value); return *this; }
135 
140  inline GetAutoSnapshotsResult& AddAutoSnapshots(AutoSnapshotDetails&& value) { m_autoSnapshots.push_back(std::move(value)); return *this; }
141 
142  private:
143 
144  Aws::String m_resourceName;
145 
146  ResourceType m_resourceType;
147 
148  Aws::Vector<AutoSnapshotDetails> m_autoSnapshots;
149  };
150 
151 } // namespace Model
152 } // namespace Lightsail
153 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
ResourceType.h
Aws::Lightsail::Model::GetAutoSnapshotsResult::WithAutoSnapshots
GetAutoSnapshotsResult & WithAutoSnapshots(Aws::Vector< AutoSnapshotDetails > &&value)
Definition: GetAutoSnapshotsResult.h:128
Aws::Lightsail::Model::GetAutoSnapshotsResult::GetResourceType
const ResourceType & GetResourceType() const
Definition: GetAutoSnapshotsResult.h:77
Aws::Lightsail::Model::AutoSnapshotDetails
Definition: AutoSnapshotDetails.h:36
Aws::Lightsail::Model::GetAutoSnapshotsResult::WithAutoSnapshots
GetAutoSnapshotsResult & WithAutoSnapshots(const Aws::Vector< AutoSnapshotDetails > &value)
Definition: GetAutoSnapshotsResult.h:122
Aws::Lightsail::Model::GetAutoSnapshotsResult::WithResourceName
GetAutoSnapshotsResult & WithResourceName(Aws::String &&value)
Definition: GetAutoSnapshotsResult.h:66
Aws::Lightsail::Model::GetAutoSnapshotsResult::GetAutoSnapshots
const Aws::Vector< AutoSnapshotDetails > & GetAutoSnapshots() const
Definition: GetAutoSnapshotsResult.h:104
Aws::Lightsail::Model::GetAutoSnapshotsResult
Definition: GetAutoSnapshotsResult.h:31
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::GetAutoSnapshotsResult::SetAutoSnapshots
void SetAutoSnapshots(const Aws::Vector< AutoSnapshotDetails > &value)
Definition: GetAutoSnapshotsResult.h:110
AWSVector.h
Aws::Lightsail::Model::GetAutoSnapshotsResult::AddAutoSnapshots
GetAutoSnapshotsResult & AddAutoSnapshots(const AutoSnapshotDetails &value)
Definition: GetAutoSnapshotsResult.h:134
AutoSnapshotDetails.h
Aws::Lightsail::Model::GetAutoSnapshotsResult::WithResourceName
GetAutoSnapshotsResult & WithResourceName(const char *value)
Definition: GetAutoSnapshotsResult.h:71
Aws::Lightsail::Model::GetAutoSnapshotsResult::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: GetAutoSnapshotsResult.h:82
AWSString.h
Aws::Lightsail::Model::GetAutoSnapshotsResult::SetResourceName
void SetResourceName(const char *value)
Definition: GetAutoSnapshotsResult.h:56
Aws::Lightsail::Model::GetAutoSnapshotsResult::WithResourceName
GetAutoSnapshotsResult & WithResourceName(const Aws::String &value)
Definition: GetAutoSnapshotsResult.h:61
Aws::Lightsail::Model::GetAutoSnapshotsResult::SetResourceName
void SetResourceName(const Aws::String &value)
Definition: GetAutoSnapshotsResult.h:46
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetAutoSnapshotsResult::GetAutoSnapshotsResult
GetAutoSnapshotsResult()
Aws::Lightsail::Model::GetAutoSnapshotsResult::WithResourceType
GetAutoSnapshotsResult & WithResourceType(ResourceType &&value)
Definition: GetAutoSnapshotsResult.h:97
Aws::Lightsail::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetAutoSnapshotsResult::SetResourceName
void SetResourceName(Aws::String &&value)
Definition: GetAutoSnapshotsResult.h:51
Aws::Lightsail::Model::GetAutoSnapshotsResult::SetAutoSnapshots
void SetAutoSnapshots(Aws::Vector< AutoSnapshotDetails > &&value)
Definition: GetAutoSnapshotsResult.h:116
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetAutoSnapshotsResult::WithResourceType
GetAutoSnapshotsResult & WithResourceType(const ResourceType &value)
Definition: GetAutoSnapshotsResult.h:92
Aws::Lightsail::Model::GetAutoSnapshotsResult::operator=
GetAutoSnapshotsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::GetAutoSnapshotsResult::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: GetAutoSnapshotsResult.h:87
Aws::Lightsail::Model::GetAutoSnapshotsResult::GetAutoSnapshotsResult
GetAutoSnapshotsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::GetAutoSnapshotsResult::GetResourceName
const Aws::String & GetResourceName() const
Definition: GetAutoSnapshotsResult.h:41
Aws::Lightsail::Model::GetAutoSnapshotsResult::AddAutoSnapshots
GetAutoSnapshotsResult & AddAutoSnapshots(AutoSnapshotDetails &&value)
Definition: GetAutoSnapshotsResult.h:140