AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/iotfleethub/IoTFleetHub_EXPORTS.h>
8#include <aws/iotfleethub/IoTFleetHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace IoTFleetHub
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOTFLEETHUB_API CreateApplicationRequest() = 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 "CreateApplication"; }
33
34 AWS_IOTFLEETHUB_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
42 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
43 template<typename ApplicationNameT = Aws::String>
44 void SetApplicationName(ApplicationNameT&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::forward<ApplicationNameT>(value); }
45 template<typename ApplicationNameT = Aws::String>
46 CreateApplicationRequest& WithApplicationName(ApplicationNameT&& value) { SetApplicationName(std::forward<ApplicationNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetApplicationDescription() const { return m_applicationDescription; }
54 inline bool ApplicationDescriptionHasBeenSet() const { return m_applicationDescriptionHasBeenSet; }
55 template<typename ApplicationDescriptionT = Aws::String>
56 void SetApplicationDescription(ApplicationDescriptionT&& value) { m_applicationDescriptionHasBeenSet = true; m_applicationDescription = std::forward<ApplicationDescriptionT>(value); }
57 template<typename ApplicationDescriptionT = Aws::String>
58 CreateApplicationRequest& WithApplicationDescription(ApplicationDescriptionT&& value) { SetApplicationDescription(std::forward<ApplicationDescriptionT>(value)); return *this;}
60
62
67 inline const Aws::String& GetClientToken() const { return m_clientToken; }
68 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
69 template<typename ClientTokenT = Aws::String>
70 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
71 template<typename ClientTokenT = Aws::String>
72 CreateApplicationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
74
76
81 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
82 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
83 template<typename RoleArnT = Aws::String>
84 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
85 template<typename RoleArnT = Aws::String>
86 CreateApplicationRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
88
90
94 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
98 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
99 CreateApplicationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
100 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
101 CreateApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
102 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
103 }
105 private:
106
107 Aws::String m_applicationName;
108 bool m_applicationNameHasBeenSet = false;
109
110 Aws::String m_applicationDescription;
111 bool m_applicationDescriptionHasBeenSet = false;
112
114 bool m_clientTokenHasBeenSet = true;
115
116 Aws::String m_roleArn;
117 bool m_roleArnHasBeenSet = false;
118
120 bool m_tagsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace IoTFleetHub
125} // namespace Aws
AWS_IOTFLEETHUB_API CreateApplicationRequest()=default
AWS_IOTFLEETHUB_API Aws::String SerializePayload() const override
CreateApplicationRequest & WithApplicationDescription(ApplicationDescriptionT &&value)
CreateApplicationRequest & WithTags(TagsT &&value)
CreateApplicationRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
void SetApplicationDescription(ApplicationDescriptionT &&value)
CreateApplicationRequest & WithRoleArn(RoleArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateApplicationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateApplicationRequest & WithApplicationName(ApplicationNameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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