AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAddonSubscriptionRequest.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/MailManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mailmanager/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace MailManager
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_MAILMANAGER_API CreateAddonSubscriptionRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAddonSubscription"; }
34
35 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
36
37 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetAddonName() const{ return m_addonName; }
46 inline bool AddonNameHasBeenSet() const { return m_addonNameHasBeenSet; }
47 inline void SetAddonName(const Aws::String& value) { m_addonNameHasBeenSet = true; m_addonName = value; }
48 inline void SetAddonName(Aws::String&& value) { m_addonNameHasBeenSet = true; m_addonName = std::move(value); }
49 inline void SetAddonName(const char* value) { m_addonNameHasBeenSet = true; m_addonName.assign(value); }
50 inline CreateAddonSubscriptionRequest& WithAddonName(const Aws::String& value) { SetAddonName(value); return *this;}
51 inline CreateAddonSubscriptionRequest& WithAddonName(Aws::String&& value) { SetAddonName(std::move(value)); return *this;}
52 inline CreateAddonSubscriptionRequest& WithAddonName(const char* value) { SetAddonName(value); return *this;}
54
56
60 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
61 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
62 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
63 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
64 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
65 inline CreateAddonSubscriptionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
66 inline CreateAddonSubscriptionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
67 inline CreateAddonSubscriptionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
69
71
75 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
76 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
77 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
78 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
79 inline CreateAddonSubscriptionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
80 inline CreateAddonSubscriptionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
81 inline CreateAddonSubscriptionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
82 inline CreateAddonSubscriptionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
84 private:
85
86 Aws::String m_addonName;
87 bool m_addonNameHasBeenSet = false;
88
89 Aws::String m_clientToken;
90 bool m_clientTokenHasBeenSet = false;
91
92 Aws::Vector<Tag> m_tags;
93 bool m_tagsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace MailManager
98} // namespace Aws
CreateAddonSubscriptionRequest & WithClientToken(Aws::String &&value)
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAddonSubscriptionRequest & WithAddonName(const Aws::String &value)
CreateAddonSubscriptionRequest & WithAddonName(const char *value)
CreateAddonSubscriptionRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
CreateAddonSubscriptionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateAddonSubscriptionRequest & AddTags(const Tag &value)
CreateAddonSubscriptionRequest & WithClientToken(const Aws::String &value)
CreateAddonSubscriptionRequest & WithClientToken(const char *value)
CreateAddonSubscriptionRequest & WithAddonName(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