AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateResourceRequest.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/BookingOptions.h>
11#include <aws/workmail/model/ResourceType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WorkMail
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WORKMAIL_API UpdateResourceRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateResource"; }
33
34 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
45 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
46 inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
47 inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
48 inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
49 inline UpdateResourceRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
50 inline UpdateResourceRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
51 inline UpdateResourceRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
53
55
62 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
63 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
64 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
65 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
66 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
67 inline UpdateResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
68 inline UpdateResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
69 inline UpdateResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
71
73
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline UpdateResourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline UpdateResourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline UpdateResourceRequest& WithName(const char* value) { SetName(value); return *this;}
85
87
90 inline const BookingOptions& GetBookingOptions() const{ return m_bookingOptions; }
91 inline bool BookingOptionsHasBeenSet() const { return m_bookingOptionsHasBeenSet; }
92 inline void SetBookingOptions(const BookingOptions& value) { m_bookingOptionsHasBeenSet = true; m_bookingOptions = value; }
93 inline void SetBookingOptions(BookingOptions&& value) { m_bookingOptionsHasBeenSet = true; m_bookingOptions = std::move(value); }
94 inline UpdateResourceRequest& WithBookingOptions(const BookingOptions& value) { SetBookingOptions(value); return *this;}
95 inline UpdateResourceRequest& WithBookingOptions(BookingOptions&& value) { SetBookingOptions(std::move(value)); return *this;}
97
99
102 inline const Aws::String& GetDescription() const{ return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
105 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
106 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
107 inline UpdateResourceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
108 inline UpdateResourceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
109 inline UpdateResourceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
111
113
116 inline const ResourceType& GetType() const{ return m_type; }
117 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
118 inline void SetType(const ResourceType& value) { m_typeHasBeenSet = true; m_type = value; }
119 inline void SetType(ResourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
120 inline UpdateResourceRequest& WithType(const ResourceType& value) { SetType(value); return *this;}
121 inline UpdateResourceRequest& WithType(ResourceType&& value) { SetType(std::move(value)); return *this;}
123
125
128 inline bool GetHiddenFromGlobalAddressList() const{ return m_hiddenFromGlobalAddressList; }
129 inline bool HiddenFromGlobalAddressListHasBeenSet() const { return m_hiddenFromGlobalAddressListHasBeenSet; }
130 inline void SetHiddenFromGlobalAddressList(bool value) { m_hiddenFromGlobalAddressListHasBeenSet = true; m_hiddenFromGlobalAddressList = value; }
133 private:
134
135 Aws::String m_organizationId;
136 bool m_organizationIdHasBeenSet = false;
137
138 Aws::String m_resourceId;
139 bool m_resourceIdHasBeenSet = false;
140
141 Aws::String m_name;
142 bool m_nameHasBeenSet = false;
143
144 BookingOptions m_bookingOptions;
145 bool m_bookingOptionsHasBeenSet = false;
146
147 Aws::String m_description;
148 bool m_descriptionHasBeenSet = false;
149
150 ResourceType m_type;
151 bool m_typeHasBeenSet = false;
152
153 bool m_hiddenFromGlobalAddressList;
154 bool m_hiddenFromGlobalAddressListHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace WorkMail
159} // namespace Aws
void SetOrganizationId(const Aws::String &value)
UpdateResourceRequest & WithResourceId(const Aws::String &value)
UpdateResourceRequest & WithBookingOptions(BookingOptions &&value)
UpdateResourceRequest & WithDescription(const Aws::String &value)
UpdateResourceRequest & WithOrganizationId(const char *value)
UpdateResourceRequest & WithName(Aws::String &&value)
UpdateResourceRequest & WithType(const ResourceType &value)
virtual const char * GetServiceRequestName() const override
UpdateResourceRequest & WithOrganizationId(Aws::String &&value)
UpdateResourceRequest & WithName(const char *value)
UpdateResourceRequest & WithResourceId(const char *value)
UpdateResourceRequest & WithBookingOptions(const BookingOptions &value)
UpdateResourceRequest & WithDescription(const char *value)
UpdateResourceRequest & WithType(ResourceType &&value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const BookingOptions & GetBookingOptions() const
UpdateResourceRequest & WithOrganizationId(const Aws::String &value)
UpdateResourceRequest & WithDescription(Aws::String &&value)
AWS_WORKMAIL_API Aws::String SerializePayload() const override
UpdateResourceRequest & WithName(const Aws::String &value)
void SetBookingOptions(const BookingOptions &value)
UpdateResourceRequest & WithResourceId(Aws::String &&value)
UpdateResourceRequest & WithHiddenFromGlobalAddressList(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String