AWS SDK for C++  1.9.67
AWS SDK for C++
CopySnapshotResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <aws/ec2/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
42 
46  inline void SetSnapshotId(const Aws::String& value) { m_snapshotId = value; }
47 
51  inline void SetSnapshotId(Aws::String&& value) { m_snapshotId = std::move(value); }
52 
56  inline void SetSnapshotId(const char* value) { m_snapshotId.assign(value); }
57 
61  inline CopySnapshotResponse& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
62 
66  inline CopySnapshotResponse& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
67 
71  inline CopySnapshotResponse& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
72 
73 
77  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
78 
82  inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
83 
87  inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
88 
92  inline CopySnapshotResponse& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
93 
97  inline CopySnapshotResponse& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
98 
102  inline CopySnapshotResponse& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
103 
107  inline CopySnapshotResponse& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
108 
109 
110 
111  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
112 
113 
114  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
115 
116 
117  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
118 
119 
120  inline CopySnapshotResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
121 
122 
123  inline CopySnapshotResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
124 
125  private:
126 
127  Aws::String m_snapshotId;
128 
129  Aws::Vector<Tag> m_tags;
130 
131  ResponseMetadata m_responseMetadata;
132  };
133 
134 } // namespace Model
135 } // namespace EC2
136 } // namespace Aws
Aws::EC2::Model::CopySnapshotResponse::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: CopySnapshotResponse.h:56
Aws::EC2::Model::CopySnapshotResponse
Definition: CopySnapshotResponse.h:31
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::CopySnapshotResponse::WithTags
CopySnapshotResponse & WithTags(const Aws::Vector< Tag > &value)
Definition: CopySnapshotResponse.h:92
Aws::EC2::Model::CopySnapshotResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: CopySnapshotResponse.h:117
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::CopySnapshotResponse::operator=
CopySnapshotResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CopySnapshotResponse::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: CopySnapshotResponse.h:41
Aws::EC2::Model::CopySnapshotResponse::WithResponseMetadata
CopySnapshotResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: CopySnapshotResponse.h:120
AWSVector.h
Tag.h
Aws::EC2::Model::CopySnapshotResponse::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CopySnapshotResponse.h:77
Aws::EC2::Model::CopySnapshotResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: CopySnapshotResponse.h:111
Aws::EC2::Model::CopySnapshotResponse::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CopySnapshotResponse.h:87
Aws::EC2::Model::CopySnapshotResponse::CopySnapshotResponse
CopySnapshotResponse()
Aws::EC2::Model::CopySnapshotResponse::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: CopySnapshotResponse.h:51
Aws::EC2::Model::CopySnapshotResponse::CopySnapshotResponse
CopySnapshotResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CopySnapshotResponse::WithSnapshotId
CopySnapshotResponse & WithSnapshotId(Aws::String &&value)
Definition: CopySnapshotResponse.h:66
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::CopySnapshotResponse::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: CopySnapshotResponse.h:46
Aws::EC2::Model::CopySnapshotResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: CopySnapshotResponse.h:114
Aws::EC2::Model::CopySnapshotResponse::WithTags
CopySnapshotResponse & WithTags(Aws::Vector< Tag > &&value)
Definition: CopySnapshotResponse.h:97
Aws::EC2::Model::CopySnapshotResponse::AddTags
CopySnapshotResponse & AddTags(Tag &&value)
Definition: CopySnapshotResponse.h:107
Aws::EC2::Model::CopySnapshotResponse::WithSnapshotId
CopySnapshotResponse & WithSnapshotId(const char *value)
Definition: CopySnapshotResponse.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CopySnapshotResponse::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CopySnapshotResponse.h:82
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CopySnapshotResponse::AddTags
CopySnapshotResponse & AddTags(const Tag &value)
Definition: CopySnapshotResponse.h:102
Aws::EC2::Model::CopySnapshotResponse::WithResponseMetadata
CopySnapshotResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: CopySnapshotResponse.h:123
EC2_EXPORTS.h
Aws::EC2::Model::CopySnapshotResponse::WithSnapshotId
CopySnapshotResponse & WithSnapshotId(const Aws::String &value)
Definition: CopySnapshotResponse.h:61