AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
46 inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
47 inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
48 inline CreateResourceRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
49 inline CreateResourceRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
50 inline CreateResourceRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
52
54
57 inline const Aws::String& GetName() const{ return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 inline CreateResourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
63 inline CreateResourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
64 inline CreateResourceRequest& WithName(const char* value) { SetName(value); return *this;}
66
68
72 inline const ResourceType& GetType() const{ return m_type; }
73 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
74 inline void SetType(const ResourceType& value) { m_typeHasBeenSet = true; m_type = value; }
75 inline void SetType(ResourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
76 inline CreateResourceRequest& WithType(const ResourceType& value) { SetType(value); return *this;}
77 inline CreateResourceRequest& WithType(ResourceType&& value) { SetType(std::move(value)); return *this;}
79
81
84 inline const Aws::String& GetDescription() const{ return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
87 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
88 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
89 inline CreateResourceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
90 inline CreateResourceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
91 inline CreateResourceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
93
95
99 inline bool GetHiddenFromGlobalAddressList() const{ return m_hiddenFromGlobalAddressList; }
100 inline bool HiddenFromGlobalAddressListHasBeenSet() const { return m_hiddenFromGlobalAddressListHasBeenSet; }
101 inline void SetHiddenFromGlobalAddressList(bool value) { m_hiddenFromGlobalAddressListHasBeenSet = true; m_hiddenFromGlobalAddressList = value; }
104 private:
105
106 Aws::String m_organizationId;
107 bool m_organizationIdHasBeenSet = false;
108
109 Aws::String m_name;
110 bool m_nameHasBeenSet = false;
111
112 ResourceType m_type;
113 bool m_typeHasBeenSet = false;
114
115 Aws::String m_description;
116 bool m_descriptionHasBeenSet = false;
117
118 bool m_hiddenFromGlobalAddressList;
119 bool m_hiddenFromGlobalAddressListHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace WorkMail
124} // namespace Aws
CreateResourceRequest & WithDescription(Aws::String &&value)
CreateResourceRequest & WithOrganizationId(Aws::String &&value)
void SetOrganizationId(const Aws::String &value)
CreateResourceRequest & WithName(const char *value)
CreateResourceRequest & WithType(const ResourceType &value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateResourceRequest & WithOrganizationId(const char *value)
CreateResourceRequest & WithDescription(const char *value)
virtual const char * GetServiceRequestName() const override
AWS_WORKMAIL_API Aws::String SerializePayload() const override
CreateResourceRequest & WithType(ResourceType &&value)
CreateResourceRequest & WithOrganizationId(const Aws::String &value)
CreateResourceRequest & WithHiddenFromGlobalAddressList(bool value)
CreateResourceRequest & WithName(const Aws::String &value)
CreateResourceRequest & WithDescription(const Aws::String &value)
CreateResourceRequest & WithName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String