AWS SDK for C++  1.9.153
AWS SDK for C++
GetPackageVersionAssetResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <aws/core/utils/Array.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace CodeArtifact
19 {
20 namespace Model
21 {
23  {
24  public:
26  //We have to define these because Microsoft doesn't auto generate them
29  //we delete these because Microsoft doesn't handle move generation correctly
30  //and we therefore don't trust them to get it right here either.
33 
34 
37 
38 
39 
43  inline Aws::IOStream& GetAsset() { return m_asset.GetUnderlyingStream(); }
44 
48  inline void ReplaceBody(Aws::IOStream* body) { m_asset = Aws::Utils::Stream::ResponseStream(body); }
49 
50 
54  inline const Aws::String& GetAssetName() const{ return m_assetName; }
55 
59  inline void SetAssetName(const Aws::String& value) { m_assetName = value; }
60 
64  inline void SetAssetName(Aws::String&& value) { m_assetName = std::move(value); }
65 
69  inline void SetAssetName(const char* value) { m_assetName.assign(value); }
70 
74  inline GetPackageVersionAssetResult& WithAssetName(const Aws::String& value) { SetAssetName(value); return *this;}
75 
79  inline GetPackageVersionAssetResult& WithAssetName(Aws::String&& value) { SetAssetName(std::move(value)); return *this;}
80 
84  inline GetPackageVersionAssetResult& WithAssetName(const char* value) { SetAssetName(value); return *this;}
85 
86 
91  inline const Aws::String& GetPackageVersion() const{ return m_packageVersion; }
92 
97  inline void SetPackageVersion(const Aws::String& value) { m_packageVersion = value; }
98 
103  inline void SetPackageVersion(Aws::String&& value) { m_packageVersion = std::move(value); }
104 
109  inline void SetPackageVersion(const char* value) { m_packageVersion.assign(value); }
110 
115  inline GetPackageVersionAssetResult& WithPackageVersion(const Aws::String& value) { SetPackageVersion(value); return *this;}
116 
121  inline GetPackageVersionAssetResult& WithPackageVersion(Aws::String&& value) { SetPackageVersion(std::move(value)); return *this;}
122 
127  inline GetPackageVersionAssetResult& WithPackageVersion(const char* value) { SetPackageVersion(value); return *this;}
128 
129 
134  inline const Aws::String& GetPackageVersionRevision() const{ return m_packageVersionRevision; }
135 
140  inline void SetPackageVersionRevision(const Aws::String& value) { m_packageVersionRevision = value; }
141 
146  inline void SetPackageVersionRevision(Aws::String&& value) { m_packageVersionRevision = std::move(value); }
147 
152  inline void SetPackageVersionRevision(const char* value) { m_packageVersionRevision.assign(value); }
153 
158  inline GetPackageVersionAssetResult& WithPackageVersionRevision(const Aws::String& value) { SetPackageVersionRevision(value); return *this;}
159 
164  inline GetPackageVersionAssetResult& WithPackageVersionRevision(Aws::String&& value) { SetPackageVersionRevision(std::move(value)); return *this;}
165 
170  inline GetPackageVersionAssetResult& WithPackageVersionRevision(const char* value) { SetPackageVersionRevision(value); return *this;}
171 
172  private:
173 
175 
176  Aws::String m_assetName;
177 
178  Aws::String m_packageVersion;
179 
180  Aws::String m_packageVersionRevision;
181  };
182 
183 } // namespace Model
184 } // namespace CodeArtifact
185 } // namespace Aws
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::operator=
GetPackageVersionAssetResult & operator=(GetPackageVersionAssetResult &&)
Aws::IOStream
std::basic_iostream< char, std::char_traits< char > > IOStream
Definition: AWSStreamFwd.h:22
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::SetAssetName
void SetAssetName(const Aws::String &value)
Definition: GetPackageVersionAssetResult.h:59
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Utils::Stream::ResponseStream
Definition: ResponseStream.h:22
CodeArtifact_EXPORTS.h
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::SetPackageVersionRevision
void SetPackageVersionRevision(const Aws::String &value)
Definition: GetPackageVersionAssetResult.h:140
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::GetPackageVersionRevision
const Aws::String & GetPackageVersionRevision() const
Definition: GetPackageVersionAssetResult.h:134
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::GetAsset
Aws::IOStream & GetAsset()
Definition: GetPackageVersionAssetResult.h:43
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::WithPackageVersionRevision
GetPackageVersionAssetResult & WithPackageVersionRevision(const Aws::String &value)
Definition: GetPackageVersionAssetResult.h:158
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::WithAssetName
GetPackageVersionAssetResult & WithAssetName(const Aws::String &value)
Definition: GetPackageVersionAssetResult.h:74
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::WithPackageVersionRevision
GetPackageVersionAssetResult & WithPackageVersionRevision(const char *value)
Definition: GetPackageVersionAssetResult.h:170
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::operator=
GetPackageVersionAssetResult & operator=(const GetPackageVersionAssetResult &)=delete
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::SetAssetName
void SetAssetName(Aws::String &&value)
Definition: GetPackageVersionAssetResult.h:64
Aws::CodeArtifact::Model::GetPackageVersionAssetResult
Definition: GetPackageVersionAssetResult.h:23
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::SetPackageVersion
void SetPackageVersion(const char *value)
Definition: GetPackageVersionAssetResult.h:109
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::WithPackageVersion
GetPackageVersionAssetResult & WithPackageVersion(const Aws::String &value)
Definition: GetPackageVersionAssetResult.h:115
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::GetPackageVersionAssetResult
GetPackageVersionAssetResult(const GetPackageVersionAssetResult &)=delete
AWSString.h
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::ReplaceBody
void ReplaceBody(Aws::IOStream *body)
Definition: GetPackageVersionAssetResult.h:48
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::GetAssetName
const Aws::String & GetAssetName() const
Definition: GetPackageVersionAssetResult.h:54
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::SetPackageVersionRevision
void SetPackageVersionRevision(Aws::String &&value)
Definition: GetPackageVersionAssetResult.h:146
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::SetAssetName
void SetAssetName(const char *value)
Definition: GetPackageVersionAssetResult.h:69
AWS_CODEARTIFACT_API
#define AWS_CODEARTIFACT_API
Definition: CodeArtifact_EXPORTS.h:28
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::SetPackageVersion
void SetPackageVersion(const Aws::String &value)
Definition: GetPackageVersionAssetResult.h:97
Aws
Definition: AccessManagementClient.h:15
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::WithAssetName
GetPackageVersionAssetResult & WithAssetName(Aws::String &&value)
Definition: GetPackageVersionAssetResult.h:79
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::WithPackageVersionRevision
GetPackageVersionAssetResult & WithPackageVersionRevision(Aws::String &&value)
Definition: GetPackageVersionAssetResult.h:164
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::GetPackageVersionAssetResult
GetPackageVersionAssetResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Array.h
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::WithPackageVersion
GetPackageVersionAssetResult & WithPackageVersion(const char *value)
Definition: GetPackageVersionAssetResult.h:127
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::GetPackageVersionAssetResult
GetPackageVersionAssetResult()
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::SetPackageVersion
void SetPackageVersion(Aws::String &&value)
Definition: GetPackageVersionAssetResult.h:103
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::operator=
GetPackageVersionAssetResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::GetPackageVersionAssetResult
GetPackageVersionAssetResult(GetPackageVersionAssetResult &&)
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::WithPackageVersion
GetPackageVersionAssetResult & WithPackageVersion(Aws::String &&value)
Definition: GetPackageVersionAssetResult.h:121
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::SetPackageVersionRevision
void SetPackageVersionRevision(const char *value)
Definition: GetPackageVersionAssetResult.h:152
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::GetPackageVersion
const Aws::String & GetPackageVersion() const
Definition: GetPackageVersionAssetResult.h:91
Aws::CodeArtifact::Model::GetPackageVersionAssetResult::WithAssetName
GetPackageVersionAssetResult & WithAssetName(const char *value)
Definition: GetPackageVersionAssetResult.h:84
ResponseStream.h