AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/account-access/AccountAccessRequest.h>
8#include <aws/account-access/AccountAccess_EXPORTS.h>
9#include <aws/account-access/model/IdentitySource.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AccountAccess {
17namespace Model {
18
22 public:
23 AWS_ACCOUNTACCESS_API CreateApplicationRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
30
31 AWS_ACCOUNTACCESS_API Aws::String SerializePayload() const override;
32
34
39 inline const IdentitySource& GetIdentitySource() const { return m_identitySource; }
40 inline bool IdentitySourceHasBeenSet() const { return m_identitySourceHasBeenSet; }
41 template <typename IdentitySourceT = IdentitySource>
42 void SetIdentitySource(IdentitySourceT&& value) {
43 m_identitySourceHasBeenSet = true;
44 m_identitySource = std::forward<IdentitySourceT>(value);
45 }
46 template <typename IdentitySourceT = IdentitySource>
47 CreateApplicationRequest& WithIdentitySource(IdentitySourceT&& value) {
48 SetIdentitySource(std::forward<IdentitySourceT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
58 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
59 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
60 void SetTags(TagsT&& value) {
61 m_tagsHasBeenSet = true;
62 m_tags = std::forward<TagsT>(value);
63 }
64 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
66 SetTags(std::forward<TagsT>(value));
67 return *this;
68 }
69 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
70 CreateApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
71 m_tagsHasBeenSet = true;
72 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
73 return *this;
74 }
76 private:
77 IdentitySource m_identitySource;
78
80 bool m_identitySourceHasBeenSet = false;
81 bool m_tagsHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace AccountAccess
86} // namespace Aws
AWS_ACCOUNTACCESS_API Aws::String SerializePayload() const override
CreateApplicationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateApplicationRequest & WithIdentitySource(IdentitySourceT &&value)
AWS_ACCOUNTACCESS_API CreateApplicationRequest()=default
CreateApplicationRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
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