AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLoggerDefinitionVersionRequest.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/greengrass/GreengrassRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/greengrass/model/Logger.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Greengrass
17{
18namespace 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_GREENGRASS_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
44 inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
45 inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
46 inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
47 inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
50 inline CreateLoggerDefinitionVersionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
52
54
57 inline const Aws::String& GetLoggerDefinitionId() const{ return m_loggerDefinitionId; }
58 inline bool LoggerDefinitionIdHasBeenSet() const { return m_loggerDefinitionIdHasBeenSet; }
59 inline void SetLoggerDefinitionId(const Aws::String& value) { m_loggerDefinitionIdHasBeenSet = true; m_loggerDefinitionId = value; }
60 inline void SetLoggerDefinitionId(Aws::String&& value) { m_loggerDefinitionIdHasBeenSet = true; m_loggerDefinitionId = std::move(value); }
61 inline void SetLoggerDefinitionId(const char* value) { m_loggerDefinitionIdHasBeenSet = true; m_loggerDefinitionId.assign(value); }
64 inline CreateLoggerDefinitionVersionRequest& WithLoggerDefinitionId(const char* value) { SetLoggerDefinitionId(value); return *this;}
66
68
71 inline const Aws::Vector<Logger>& GetLoggers() const{ return m_loggers; }
72 inline bool LoggersHasBeenSet() const { return m_loggersHasBeenSet; }
73 inline void SetLoggers(const Aws::Vector<Logger>& value) { m_loggersHasBeenSet = true; m_loggers = value; }
74 inline void SetLoggers(Aws::Vector<Logger>&& value) { m_loggersHasBeenSet = true; m_loggers = std::move(value); }
76 inline CreateLoggerDefinitionVersionRequest& WithLoggers(Aws::Vector<Logger>&& value) { SetLoggers(std::move(value)); return *this;}
77 inline CreateLoggerDefinitionVersionRequest& AddLoggers(const Logger& value) { m_loggersHasBeenSet = true; m_loggers.push_back(value); return *this; }
78 inline CreateLoggerDefinitionVersionRequest& AddLoggers(Logger&& value) { m_loggersHasBeenSet = true; m_loggers.push_back(std::move(value)); return *this; }
80 private:
81
82 Aws::String m_amznClientToken;
83 bool m_amznClientTokenHasBeenSet = false;
84
85 Aws::String m_loggerDefinitionId;
86 bool m_loggerDefinitionIdHasBeenSet = false;
87
88 Aws::Vector<Logger> m_loggers;
89 bool m_loggersHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Greengrass
94} // namespace Aws
CreateLoggerDefinitionVersionRequest & WithAmznClientToken(const char *value)
AWS_GREENGRASS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLoggerDefinitionVersionRequest & WithLoggers(Aws::Vector< Logger > &&value)
CreateLoggerDefinitionVersionRequest & WithLoggerDefinitionId(Aws::String &&value)
CreateLoggerDefinitionVersionRequest & WithAmznClientToken(const Aws::String &value)
AWS_GREENGRASS_API Aws::String SerializePayload() const override
CreateLoggerDefinitionVersionRequest & WithAmznClientToken(Aws::String &&value)
CreateLoggerDefinitionVersionRequest & WithLoggerDefinitionId(const char *value)
CreateLoggerDefinitionVersionRequest & AddLoggers(const Logger &value)
CreateLoggerDefinitionVersionRequest & AddLoggers(Logger &&value)
CreateLoggerDefinitionVersionRequest & WithLoggers(const Aws::Vector< Logger > &value)
CreateLoggerDefinitionVersionRequest & WithLoggerDefinitionId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector