/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace WorkMail { namespace Model { /** */ class UpdateResourceRequest : public WorkMailRequest { public: AWS_WORKMAIL_API UpdateResourceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateResource"; } AWS_WORKMAIL_API Aws::String SerializePayload() const override; AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier associated with the organization for which the resource is * updated.

*/ inline const Aws::String& GetOrganizationId() const{ return m_organizationId; } /** *

The identifier associated with the organization for which the resource is * updated.

*/ inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; } /** *

The identifier associated with the organization for which the resource is * updated.

*/ inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; } /** *

The identifier associated with the organization for which the resource is * updated.

*/ inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); } /** *

The identifier associated with the organization for which the resource is * updated.

*/ inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); } /** *

The identifier associated with the organization for which the resource is * updated.

*/ inline UpdateResourceRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;} /** *

The identifier associated with the organization for which the resource is * updated.

*/ inline UpdateResourceRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;} /** *

The identifier associated with the organization for which the resource is * updated.

*/ inline UpdateResourceRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;} /** *

The identifier of the resource to be updated.

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The identifier of the resource to be updated.

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The identifier of the resource to be updated.

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The identifier of the resource to be updated.

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The identifier of the resource to be updated.

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The identifier of the resource to be updated.

*/ inline UpdateResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

The identifier of the resource to be updated.

*/ inline UpdateResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

The identifier of the resource to be updated.

*/ inline UpdateResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *

The name of the resource to be updated.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the resource to be updated.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the resource to be updated.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the resource to be updated.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the resource to be updated.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the resource to be updated.

*/ inline UpdateResourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the resource to be updated.

*/ inline UpdateResourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the resource to be updated.

*/ inline UpdateResourceRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The resource's booking options to be updated.

*/ inline const BookingOptions& GetBookingOptions() const{ return m_bookingOptions; } /** *

The resource's booking options to be updated.

*/ inline bool BookingOptionsHasBeenSet() const { return m_bookingOptionsHasBeenSet; } /** *

The resource's booking options to be updated.

*/ inline void SetBookingOptions(const BookingOptions& value) { m_bookingOptionsHasBeenSet = true; m_bookingOptions = value; } /** *

The resource's booking options to be updated.

*/ inline void SetBookingOptions(BookingOptions&& value) { m_bookingOptionsHasBeenSet = true; m_bookingOptions = std::move(value); } /** *

The resource's booking options to be updated.

*/ inline UpdateResourceRequest& WithBookingOptions(const BookingOptions& value) { SetBookingOptions(value); return *this;} /** *

The resource's booking options to be updated.

*/ inline UpdateResourceRequest& WithBookingOptions(BookingOptions&& value) { SetBookingOptions(std::move(value)); return *this;} private: Aws::String m_organizationId; bool m_organizationIdHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; BookingOptions m_bookingOptions; bool m_bookingOptionsHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws