AWS SDK for C++  1.9.129
AWS SDK for C++
CreateLoggerDefinitionVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Greengrass
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateLoggerDefinitionVersion"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
43 
47  inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
48 
52  inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
53 
57  inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
58 
62  inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
63 
67  inline CreateLoggerDefinitionVersionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
68 
72  inline CreateLoggerDefinitionVersionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
73 
77  inline CreateLoggerDefinitionVersionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
78 
79 
83  inline const Aws::String& GetLoggerDefinitionId() const{ return m_loggerDefinitionId; }
84 
88  inline bool LoggerDefinitionIdHasBeenSet() const { return m_loggerDefinitionIdHasBeenSet; }
89 
93  inline void SetLoggerDefinitionId(const Aws::String& value) { m_loggerDefinitionIdHasBeenSet = true; m_loggerDefinitionId = value; }
94 
98  inline void SetLoggerDefinitionId(Aws::String&& value) { m_loggerDefinitionIdHasBeenSet = true; m_loggerDefinitionId = std::move(value); }
99 
103  inline void SetLoggerDefinitionId(const char* value) { m_loggerDefinitionIdHasBeenSet = true; m_loggerDefinitionId.assign(value); }
104 
108  inline CreateLoggerDefinitionVersionRequest& WithLoggerDefinitionId(const Aws::String& value) { SetLoggerDefinitionId(value); return *this;}
109 
113  inline CreateLoggerDefinitionVersionRequest& WithLoggerDefinitionId(Aws::String&& value) { SetLoggerDefinitionId(std::move(value)); return *this;}
114 
118  inline CreateLoggerDefinitionVersionRequest& WithLoggerDefinitionId(const char* value) { SetLoggerDefinitionId(value); return *this;}
119 
120 
124  inline const Aws::Vector<Logger>& GetLoggers() const{ return m_loggers; }
125 
129  inline bool LoggersHasBeenSet() const { return m_loggersHasBeenSet; }
130 
134  inline void SetLoggers(const Aws::Vector<Logger>& value) { m_loggersHasBeenSet = true; m_loggers = value; }
135 
139  inline void SetLoggers(Aws::Vector<Logger>&& value) { m_loggersHasBeenSet = true; m_loggers = std::move(value); }
140 
144  inline CreateLoggerDefinitionVersionRequest& WithLoggers(const Aws::Vector<Logger>& value) { SetLoggers(value); return *this;}
145 
149  inline CreateLoggerDefinitionVersionRequest& WithLoggers(Aws::Vector<Logger>&& value) { SetLoggers(std::move(value)); return *this;}
150 
154  inline CreateLoggerDefinitionVersionRequest& AddLoggers(const Logger& value) { m_loggersHasBeenSet = true; m_loggers.push_back(value); return *this; }
155 
159  inline CreateLoggerDefinitionVersionRequest& AddLoggers(Logger&& value) { m_loggersHasBeenSet = true; m_loggers.push_back(std::move(value)); return *this; }
160 
161  private:
162 
163  Aws::String m_amznClientToken;
164  bool m_amznClientTokenHasBeenSet;
165 
166  Aws::String m_loggerDefinitionId;
167  bool m_loggerDefinitionIdHasBeenSet;
168 
169  Aws::Vector<Logger> m_loggers;
170  bool m_loggersHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace Greengrass
175 } // namespace Aws
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::GetAmznClientToken
const Aws::String & GetAmznClientToken() const
Definition: CreateLoggerDefinitionVersionRequest.h:42
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::AmznClientTokenHasBeenSet
bool AmznClientTokenHasBeenSet() const
Definition: CreateLoggerDefinitionVersionRequest.h:47
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateLoggerDefinitionVersionRequest.h:32
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::GetLoggerDefinitionId
const Aws::String & GetLoggerDefinitionId() const
Definition: CreateLoggerDefinitionVersionRequest.h:83
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::SetAmznClientToken
void SetAmznClientToken(Aws::String &&value)
Definition: CreateLoggerDefinitionVersionRequest.h:57
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::WithLoggerDefinitionId
CreateLoggerDefinitionVersionRequest & WithLoggerDefinitionId(const Aws::String &value)
Definition: CreateLoggerDefinitionVersionRequest.h:108
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::SetAmznClientToken
void SetAmznClientToken(const char *value)
Definition: CreateLoggerDefinitionVersionRequest.h:62
Greengrass_EXPORTS.h
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::WithAmznClientToken
CreateLoggerDefinitionVersionRequest & WithAmznClientToken(const Aws::String &value)
Definition: CreateLoggerDefinitionVersionRequest.h:67
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::LoggerDefinitionIdHasBeenSet
bool LoggerDefinitionIdHasBeenSet() const
Definition: CreateLoggerDefinitionVersionRequest.h:88
AWS_GREENGRASS_API
#define AWS_GREENGRASS_API
Definition: Greengrass_EXPORTS.h:28
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::SetLoggerDefinitionId
void SetLoggerDefinitionId(const char *value)
Definition: CreateLoggerDefinitionVersionRequest.h:103
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::WithLoggers
CreateLoggerDefinitionVersionRequest & WithLoggers(Aws::Vector< Logger > &&value)
Definition: CreateLoggerDefinitionVersionRequest.h:149
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::SetLoggerDefinitionId
void SetLoggerDefinitionId(const Aws::String &value)
Definition: CreateLoggerDefinitionVersionRequest.h:93
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::SetLoggers
void SetLoggers(Aws::Vector< Logger > &&value)
Definition: CreateLoggerDefinitionVersionRequest.h:139
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
GreengrassRequest.h
AWSVector.h
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::WithLoggerDefinitionId
CreateLoggerDefinitionVersionRequest & WithLoggerDefinitionId(Aws::String &&value)
Definition: CreateLoggerDefinitionVersionRequest.h:113
Logger.h
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::AddLoggers
CreateLoggerDefinitionVersionRequest & AddLoggers(const Logger &value)
Definition: CreateLoggerDefinitionVersionRequest.h:154
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::SetLoggers
void SetLoggers(const Aws::Vector< Logger > &value)
Definition: CreateLoggerDefinitionVersionRequest.h:134
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::LoggersHasBeenSet
bool LoggersHasBeenSet() const
Definition: CreateLoggerDefinitionVersionRequest.h:129
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::SetLoggerDefinitionId
void SetLoggerDefinitionId(Aws::String &&value)
Definition: CreateLoggerDefinitionVersionRequest.h:98
AWSString.h
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::WithAmznClientToken
CreateLoggerDefinitionVersionRequest & WithAmznClientToken(Aws::String &&value)
Definition: CreateLoggerDefinitionVersionRequest.h:72
Aws::Greengrass::GreengrassRequest
Definition: GreengrassRequest.h:17
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::AddLoggers
CreateLoggerDefinitionVersionRequest & AddLoggers(Logger &&value)
Definition: CreateLoggerDefinitionVersionRequest.h:159
Aws
Definition: AccessManagementClient.h:15
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::SetAmznClientToken
void SetAmznClientToken(const Aws::String &value)
Definition: CreateLoggerDefinitionVersionRequest.h:52
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::GetLoggers
const Aws::Vector< Logger > & GetLoggers() const
Definition: CreateLoggerDefinitionVersionRequest.h:124
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::WithLoggers
CreateLoggerDefinitionVersionRequest & WithLoggers(const Aws::Vector< Logger > &value)
Definition: CreateLoggerDefinitionVersionRequest.h:144
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::WithAmznClientToken
CreateLoggerDefinitionVersionRequest & WithAmznClientToken(const char *value)
Definition: CreateLoggerDefinitionVersionRequest.h:77
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::CreateLoggerDefinitionVersionRequest
CreateLoggerDefinitionVersionRequest()
Aws::Greengrass::Model::Logger
Definition: Logger.h:35
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest::WithLoggerDefinitionId
CreateLoggerDefinitionVersionRequest & WithLoggerDefinitionId(const char *value)
Definition: CreateLoggerDefinitionVersionRequest.h:118
Aws::Greengrass::Model::CreateLoggerDefinitionVersionRequest
Definition: CreateLoggerDefinitionVersionRequest.h:24