AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateResourceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workmail/WorkMailRequest.h>
9#include <aws/workmail/WorkMail_EXPORTS.h>
10#include <aws/workmail/model/ResourceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WorkMail {
16namespace Model {
17
21 public:
22 AWS_WORKMAIL_API CreateResourceRequest() = 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 "CreateResource"; }
29
30 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
40 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
41 template <typename OrganizationIdT = Aws::String>
42 void SetOrganizationId(OrganizationIdT&& value) {
43 m_organizationIdHasBeenSet = true;
44 m_organizationId = std::forward<OrganizationIdT>(value);
45 }
46 template <typename OrganizationIdT = Aws::String>
47 CreateResourceRequest& WithOrganizationId(OrganizationIdT&& value) {
48 SetOrganizationId(std::forward<OrganizationIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
76 inline ResourceType GetType() const { return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(ResourceType value) {
79 m_typeHasBeenSet = true;
80 m_type = value;
81 }
83 SetType(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template <typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) {
96 m_descriptionHasBeenSet = true;
97 m_description = std::forward<DescriptionT>(value);
98 }
99 template <typename DescriptionT = Aws::String>
100 CreateResourceRequest& WithDescription(DescriptionT&& value) {
101 SetDescription(std::forward<DescriptionT>(value));
102 return *this;
103 }
105
107
111 inline bool GetHiddenFromGlobalAddressList() const { return m_hiddenFromGlobalAddressList; }
112 inline bool HiddenFromGlobalAddressListHasBeenSet() const { return m_hiddenFromGlobalAddressListHasBeenSet; }
113 inline void SetHiddenFromGlobalAddressList(bool value) {
114 m_hiddenFromGlobalAddressListHasBeenSet = true;
115 m_hiddenFromGlobalAddressList = value;
116 }
119 return *this;
120 }
122 private:
123 Aws::String m_organizationId;
124
125 Aws::String m_name;
126
128
129 Aws::String m_description;
130
131 bool m_hiddenFromGlobalAddressList{false};
132 bool m_organizationIdHasBeenSet = false;
133 bool m_nameHasBeenSet = false;
134 bool m_typeHasBeenSet = false;
135 bool m_descriptionHasBeenSet = false;
136 bool m_hiddenFromGlobalAddressListHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace WorkMail
141} // namespace Aws
AWS_WORKMAIL_API CreateResourceRequest()=default
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_WORKMAIL_API Aws::String SerializePayload() const override
CreateResourceRequest & WithHiddenFromGlobalAddressList(bool value)
CreateResourceRequest & WithName(NameT &&value)
CreateResourceRequest & WithDescription(DescriptionT &&value)
CreateResourceRequest & WithOrganizationId(OrganizationIdT &&value)
CreateResourceRequest & WithType(ResourceType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String