AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLoggerDefinitionRequest.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/greengrass/model/LoggerDefinitionVersion.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Greengrass
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GREENGRASS_API CreateLoggerDefinitionRequest();
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 "CreateLoggerDefinition"; }
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); }
49 inline CreateLoggerDefinitionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
50 inline CreateLoggerDefinitionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
52
54
57 inline const LoggerDefinitionVersion& GetInitialVersion() const{ return m_initialVersion; }
58 inline bool InitialVersionHasBeenSet() const { return m_initialVersionHasBeenSet; }
59 inline void SetInitialVersion(const LoggerDefinitionVersion& value) { m_initialVersionHasBeenSet = true; m_initialVersion = value; }
60 inline void SetInitialVersion(LoggerDefinitionVersion&& value) { m_initialVersionHasBeenSet = true; m_initialVersion = std::move(value); }
64
66
69 inline const Aws::String& GetName() const{ return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
72 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 inline CreateLoggerDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
75 inline CreateLoggerDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 inline CreateLoggerDefinitionRequest& WithName(const char* value) { SetName(value); return *this;}
78
80
83 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
86 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
88 inline CreateLoggerDefinitionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
89 inline CreateLoggerDefinitionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
90 inline CreateLoggerDefinitionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
91 inline CreateLoggerDefinitionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
92 inline CreateLoggerDefinitionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
93 inline CreateLoggerDefinitionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
94 inline CreateLoggerDefinitionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
95 inline CreateLoggerDefinitionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
97 private:
98
99 Aws::String m_amznClientToken;
100 bool m_amznClientTokenHasBeenSet = false;
101
102 LoggerDefinitionVersion m_initialVersion;
103 bool m_initialVersionHasBeenSet = false;
104
105 Aws::String m_name;
106 bool m_nameHasBeenSet = false;
107
109 bool m_tagsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Greengrass
114} // namespace Aws
CreateLoggerDefinitionRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateLoggerDefinitionRequest & WithAmznClientToken(const Aws::String &value)
CreateLoggerDefinitionRequest & WithInitialVersion(const LoggerDefinitionVersion &value)
CreateLoggerDefinitionRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateLoggerDefinitionRequest & WithAmznClientToken(const char *value)
CreateLoggerDefinitionRequest & WithAmznClientToken(Aws::String &&value)
CreateLoggerDefinitionRequest & WithInitialVersion(LoggerDefinitionVersion &&value)
CreateLoggerDefinitionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateLoggerDefinitionRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateLoggerDefinitionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateLoggerDefinitionRequest & WithName(const Aws::String &value)
AWS_GREENGRASS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLoggerDefinitionRequest & AddTags(const char *key, const char *value)
CreateLoggerDefinitionRequest & AddTags(Aws::String &&key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateLoggerDefinitionRequest & WithName(Aws::String &&value)
CreateLoggerDefinitionRequest & WithName(const char *value)
void SetInitialVersion(const LoggerDefinitionVersion &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateLoggerDefinitionRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateLoggerDefinitionRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_GREENGRASS_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String