AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename OrganizationIdT = Aws::String>
47 void SetOrganizationId(OrganizationIdT&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::forward<OrganizationIdT>(value); }
48 template<typename OrganizationIdT = Aws::String>
49 UpdateResourceRequest& WithOrganizationId(OrganizationIdT&& value) { SetOrganizationId(std::forward<OrganizationIdT>(value)); return *this;}
51
53
60 inline const Aws::String& GetResourceId() const { return m_resourceId; }
61 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
62 template<typename ResourceIdT = Aws::String>
63 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
64 template<typename ResourceIdT = Aws::String>
65 UpdateResourceRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template<typename NameT = Aws::String>
75 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
76 template<typename NameT = Aws::String>
77 UpdateResourceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
79
81
84 inline const BookingOptions& GetBookingOptions() const { return m_bookingOptions; }
85 inline bool BookingOptionsHasBeenSet() const { return m_bookingOptionsHasBeenSet; }
86 template<typename BookingOptionsT = BookingOptions>
87 void SetBookingOptions(BookingOptionsT&& value) { m_bookingOptionsHasBeenSet = true; m_bookingOptions = std::forward<BookingOptionsT>(value); }
88 template<typename BookingOptionsT = BookingOptions>
89 UpdateResourceRequest& WithBookingOptions(BookingOptionsT&& value) { SetBookingOptions(std::forward<BookingOptionsT>(value)); return *this;}
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template<typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
100 template<typename DescriptionT = Aws::String>
101 UpdateResourceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
103
105
108 inline ResourceType GetType() const { return m_type; }
109 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
110 inline void SetType(ResourceType value) { m_typeHasBeenSet = true; m_type = value; }
111 inline UpdateResourceRequest& WithType(ResourceType value) { SetType(value); return *this;}
113
115
118 inline bool GetHiddenFromGlobalAddressList() const { return m_hiddenFromGlobalAddressList; }
119 inline bool HiddenFromGlobalAddressListHasBeenSet() const { return m_hiddenFromGlobalAddressListHasBeenSet; }
120 inline void SetHiddenFromGlobalAddressList(bool value) { m_hiddenFromGlobalAddressListHasBeenSet = true; m_hiddenFromGlobalAddressList = value; }
123 private:
124
125 Aws::String m_organizationId;
126 bool m_organizationIdHasBeenSet = false;
127
128 Aws::String m_resourceId;
129 bool m_resourceIdHasBeenSet = false;
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
134 BookingOptions m_bookingOptions;
135 bool m_bookingOptionsHasBeenSet = false;
136
137 Aws::String m_description;
138 bool m_descriptionHasBeenSet = false;
139
141 bool m_typeHasBeenSet = false;
142
143 bool m_hiddenFromGlobalAddressList{false};
144 bool m_hiddenFromGlobalAddressListHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace WorkMail
149} // namespace Aws
UpdateResourceRequest & WithOrganizationId(OrganizationIdT &&value)
UpdateResourceRequest & WithBookingOptions(BookingOptionsT &&value)
virtual const char * GetServiceRequestName() const override
UpdateResourceRequest & WithName(NameT &&value)
UpdateResourceRequest & WithResourceId(ResourceIdT &&value)
UpdateResourceRequest & WithType(ResourceType value)
UpdateResourceRequest & WithDescription(DescriptionT &&value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const BookingOptions & GetBookingOptions() const
AWS_WORKMAIL_API Aws::String SerializePayload() const override
AWS_WORKMAIL_API UpdateResourceRequest()=default
UpdateResourceRequest & WithHiddenFromGlobalAddressList(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String