AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSubscriptionDefinitionRequest.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/SubscriptionDefinitionVersion.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 CreateSubscriptionDefinitionRequest() = default;
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 "CreateSubscriptionDefinition"; }
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 template<typename AmznClientTokenT = Aws::String>
46 void SetAmznClientToken(AmznClientTokenT&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::forward<AmznClientTokenT>(value); }
47 template<typename AmznClientTokenT = Aws::String>
48 CreateSubscriptionDefinitionRequest& WithAmznClientToken(AmznClientTokenT&& value) { SetAmznClientToken(std::forward<AmznClientTokenT>(value)); return *this;}
50
52
55 inline const SubscriptionDefinitionVersion& GetInitialVersion() const { return m_initialVersion; }
56 inline bool InitialVersionHasBeenSet() const { return m_initialVersionHasBeenSet; }
57 template<typename InitialVersionT = SubscriptionDefinitionVersion>
58 void SetInitialVersion(InitialVersionT&& value) { m_initialVersionHasBeenSet = true; m_initialVersion = std::forward<InitialVersionT>(value); }
59 template<typename InitialVersionT = SubscriptionDefinitionVersion>
60 CreateSubscriptionDefinitionRequest& WithInitialVersion(InitialVersionT&& value) { SetInitialVersion(std::forward<InitialVersionT>(value)); return *this;}
62
64
67 inline const Aws::String& GetName() const { return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 template<typename NameT = Aws::String>
70 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
71 template<typename NameT = Aws::String>
72 CreateSubscriptionDefinitionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
74
76
79 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
82 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
83 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 CreateSubscriptionDefinitionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
85 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
86 CreateSubscriptionDefinitionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
87 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
88 }
90 private:
91
92 Aws::String m_amznClientToken;
93 bool m_amznClientTokenHasBeenSet = false;
94
95 SubscriptionDefinitionVersion m_initialVersion;
96 bool m_initialVersionHasBeenSet = false;
97
98 Aws::String m_name;
99 bool m_nameHasBeenSet = false;
100
102 bool m_tagsHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace Greengrass
107} // namespace Aws
CreateSubscriptionDefinitionRequest & WithAmznClientToken(AmznClientTokenT &&value)
AWS_GREENGRASS_API CreateSubscriptionDefinitionRequest()=default
AWS_GREENGRASS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GREENGRASS_API Aws::String SerializePayload() const override
CreateSubscriptionDefinitionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateSubscriptionDefinitionRequest & WithInitialVersion(InitialVersionT &&value)
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