AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateResourceRequest.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/workmail/WorkMailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workmail/model/ResourceType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace WorkMail
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WORKMAIL_API CreateResourceRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateResource"; }
32
33 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
44 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
45 template<typename OrganizationIdT = Aws::String>
46 void SetOrganizationId(OrganizationIdT&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::forward<OrganizationIdT>(value); }
47 template<typename OrganizationIdT = Aws::String>
48 CreateResourceRequest& WithOrganizationId(OrganizationIdT&& value) { SetOrganizationId(std::forward<OrganizationIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template<typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 CreateResourceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
62
64
68 inline ResourceType GetType() const { return m_type; }
69 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
70 inline void SetType(ResourceType value) { m_typeHasBeenSet = true; m_type = value; }
71 inline CreateResourceRequest& WithType(ResourceType value) { SetType(value); return *this;}
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template<typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
82 template<typename DescriptionT = Aws::String>
83 CreateResourceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
85
87
91 inline bool GetHiddenFromGlobalAddressList() const { return m_hiddenFromGlobalAddressList; }
92 inline bool HiddenFromGlobalAddressListHasBeenSet() const { return m_hiddenFromGlobalAddressListHasBeenSet; }
93 inline void SetHiddenFromGlobalAddressList(bool value) { m_hiddenFromGlobalAddressListHasBeenSet = true; m_hiddenFromGlobalAddressList = value; }
96 private:
97
98 Aws::String m_organizationId;
99 bool m_organizationIdHasBeenSet = false;
100
101 Aws::String m_name;
102 bool m_nameHasBeenSet = false;
103
105 bool m_typeHasBeenSet = false;
106
107 Aws::String m_description;
108 bool m_descriptionHasBeenSet = false;
109
110 bool m_hiddenFromGlobalAddressList{false};
111 bool m_hiddenFromGlobalAddressListHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace WorkMail
116} // 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