AWS SDK for C++  1.9.110
AWS SDK for C++
GetConfigurationResult.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 AppConfig
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& GetContent() { return m_content.GetUnderlyingStream(); }
44 
48  inline void ReplaceBody(Aws::IOStream* body) { m_content = Aws::Utils::Stream::ResponseStream(body); }
49 
50 
54  inline const Aws::String& GetConfigurationVersion() const{ return m_configurationVersion; }
55 
59  inline void SetConfigurationVersion(const Aws::String& value) { m_configurationVersion = value; }
60 
64  inline void SetConfigurationVersion(Aws::String&& value) { m_configurationVersion = std::move(value); }
65 
69  inline void SetConfigurationVersion(const char* value) { m_configurationVersion.assign(value); }
70 
74  inline GetConfigurationResult& WithConfigurationVersion(const Aws::String& value) { SetConfigurationVersion(value); return *this;}
75 
79  inline GetConfigurationResult& WithConfigurationVersion(Aws::String&& value) { SetConfigurationVersion(std::move(value)); return *this;}
80 
84  inline GetConfigurationResult& WithConfigurationVersion(const char* value) { SetConfigurationVersion(value); return *this;}
85 
86 
92  inline const Aws::String& GetContentType() const{ return m_contentType; }
93 
99  inline void SetContentType(const Aws::String& value) { m_contentType = value; }
100 
106  inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
107 
113  inline void SetContentType(const char* value) { m_contentType.assign(value); }
114 
120  inline GetConfigurationResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
121 
127  inline GetConfigurationResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
128 
134  inline GetConfigurationResult& WithContentType(const char* value) { SetContentType(value); return *this;}
135 
136  private:
137 
139 
140  Aws::String m_configurationVersion;
141 
142  Aws::String m_contentType;
143  };
144 
145 } // namespace Model
146 } // namespace AppConfig
147 } // namespace Aws
Aws::AppConfig::Model::GetConfigurationResult
Definition: GetConfigurationResult.h:23
Aws::IOStream
std::basic_iostream< char, std::char_traits< char > > IOStream
Definition: AWSStreamFwd.h:22
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Utils::Stream::ResponseStream
Definition: ResponseStream.h:22
Aws::AppConfig::Model::GetConfigurationResult::ReplaceBody
void ReplaceBody(Aws::IOStream *body)
Definition: GetConfigurationResult.h:48
Aws::AppConfig::Model::GetConfigurationResult::GetConfigurationResult
GetConfigurationResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::AppConfig::Model::GetConfigurationResult::GetConfigurationResult
GetConfigurationResult(const GetConfigurationResult &)=delete
Aws::AppConfig::Model::GetConfigurationResult::SetConfigurationVersion
void SetConfigurationVersion(const char *value)
Definition: GetConfigurationResult.h:69
Aws::AppConfig::Model::GetConfigurationResult::WithConfigurationVersion
GetConfigurationResult & WithConfigurationVersion(const char *value)
Definition: GetConfigurationResult.h:84
Aws::AppConfig::Model::GetConfigurationResult::SetContentType
void SetContentType(const char *value)
Definition: GetConfigurationResult.h:113
Aws::AppConfig::Model::GetConfigurationResult::operator=
GetConfigurationResult & operator=(GetConfigurationResult &&)
AppConfig_EXPORTS.h
Aws::AppConfig::Model::GetConfigurationResult::WithContentType
GetConfigurationResult & WithContentType(Aws::String &&value)
Definition: GetConfigurationResult.h:127
Aws::AppConfig::Model::GetConfigurationResult::WithConfigurationVersion
GetConfigurationResult & WithConfigurationVersion(const Aws::String &value)
Definition: GetConfigurationResult.h:74
Aws::AppConfig::Model::GetConfigurationResult::GetContentType
const Aws::String & GetContentType() const
Definition: GetConfigurationResult.h:92
Aws::AppConfig::Model::GetConfigurationResult::GetConfigurationResult
GetConfigurationResult(GetConfigurationResult &&)
Aws::AppConfig::Model::GetConfigurationResult::WithContentType
GetConfigurationResult & WithContentType(const Aws::String &value)
Definition: GetConfigurationResult.h:120
Aws::AppConfig::Model::GetConfigurationResult::WithContentType
GetConfigurationResult & WithContentType(const char *value)
Definition: GetConfigurationResult.h:134
AWSString.h
Aws::AppConfig::Model::GetConfigurationResult::GetConfigurationVersion
const Aws::String & GetConfigurationVersion() const
Definition: GetConfigurationResult.h:54
Aws::AppConfig::Model::GetConfigurationResult::GetConfigurationResult
GetConfigurationResult()
Aws::AppConfig::Model::GetConfigurationResult::SetContentType
void SetContentType(Aws::String &&value)
Definition: GetConfigurationResult.h:106
Aws::AppConfig::Model::GetConfigurationResult::operator=
GetConfigurationResult & operator=(const GetConfigurationResult &)=delete
Aws
Definition: AccessManagementClient.h:15
Aws::AppConfig::Model::GetConfigurationResult::SetConfigurationVersion
void SetConfigurationVersion(Aws::String &&value)
Definition: GetConfigurationResult.h:64
Aws::AppConfig::Model::GetConfigurationResult::WithConfigurationVersion
GetConfigurationResult & WithConfigurationVersion(Aws::String &&value)
Definition: GetConfigurationResult.h:79
Array.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppConfig::Model::GetConfigurationResult::GetContent
Aws::IOStream & GetContent()
Definition: GetConfigurationResult.h:43
AWS_APPCONFIG_API
#define AWS_APPCONFIG_API
Definition: AppConfig_EXPORTS.h:28
ResponseStream.h
Aws::AppConfig::Model::GetConfigurationResult::SetContentType
void SetContentType(const Aws::String &value)
Definition: GetConfigurationResult.h:99
Aws::AppConfig::Model::GetConfigurationResult::SetConfigurationVersion
void SetConfigurationVersion(const Aws::String &value)
Definition: GetConfigurationResult.h:59
Aws::AppConfig::Model::GetConfigurationResult::operator=
GetConfigurationResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)