AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityagent/SecurityAgentRequest.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SecurityAgent {
16namespace Model {
17
21 public:
22 AWS_SECURITYAGENT_API CreateApplicationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
29
30 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetIdcInstanceArn() const { return m_idcInstanceArn; }
38 inline bool IdcInstanceArnHasBeenSet() const { return m_idcInstanceArnHasBeenSet; }
39 template <typename IdcInstanceArnT = Aws::String>
40 void SetIdcInstanceArn(IdcInstanceArnT&& value) {
41 m_idcInstanceArnHasBeenSet = true;
42 m_idcInstanceArn = std::forward<IdcInstanceArnT>(value);
43 }
44 template <typename IdcInstanceArnT = Aws::String>
45 CreateApplicationRequest& WithIdcInstanceArn(IdcInstanceArnT&& value) {
46 SetIdcInstanceArn(std::forward<IdcInstanceArnT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
57 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
58 template <typename RoleArnT = Aws::String>
59 void SetRoleArn(RoleArnT&& value) {
60 m_roleArnHasBeenSet = true;
61 m_roleArn = std::forward<RoleArnT>(value);
62 }
63 template <typename RoleArnT = Aws::String>
65 SetRoleArn(std::forward<RoleArnT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDefaultKmsKeyId() const { return m_defaultKmsKeyId; }
75 inline bool DefaultKmsKeyIdHasBeenSet() const { return m_defaultKmsKeyIdHasBeenSet; }
76 template <typename DefaultKmsKeyIdT = Aws::String>
77 void SetDefaultKmsKeyId(DefaultKmsKeyIdT&& value) {
78 m_defaultKmsKeyIdHasBeenSet = true;
79 m_defaultKmsKeyId = std::forward<DefaultKmsKeyIdT>(value);
80 }
81 template <typename DefaultKmsKeyIdT = Aws::String>
82 CreateApplicationRequest& WithDefaultKmsKeyId(DefaultKmsKeyIdT&& value) {
83 SetDefaultKmsKeyId(std::forward<DefaultKmsKeyIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
95 void SetTags(TagsT&& value) {
96 m_tagsHasBeenSet = true;
97 m_tags = std::forward<TagsT>(value);
98 }
99 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
101 SetTags(std::forward<TagsT>(value));
102 return *this;
103 }
104 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
105 CreateApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
106 m_tagsHasBeenSet = true;
107 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_idcInstanceArn;
113
114 Aws::String m_roleArn;
115
116 Aws::String m_defaultKmsKeyId;
117
119 bool m_idcInstanceArnHasBeenSet = false;
120 bool m_roleArnHasBeenSet = false;
121 bool m_defaultKmsKeyIdHasBeenSet = false;
122 bool m_tagsHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace SecurityAgent
127} // namespace Aws
CreateApplicationRequest & WithRoleArn(RoleArnT &&value)
CreateApplicationRequest & WithDefaultKmsKeyId(DefaultKmsKeyIdT &&value)
AWS_SECURITYAGENT_API CreateApplicationRequest()=default
CreateApplicationRequest & WithTags(TagsT &&value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateApplicationRequest & WithIdcInstanceArn(IdcInstanceArnT &&value)
CreateApplicationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
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