/** * 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 AppRegistry { namespace Model { /** */ class DisassociateResourceRequest : public AppRegistryRequest { public: AWS_APPREGISTRY_API DisassociateResourceRequest(); // 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 "DisassociateResource"; } AWS_APPREGISTRY_API Aws::String SerializePayload() const override; /** *

The name or ID of the application.

*/ inline const Aws::String& GetApplication() const{ return m_application; } /** *

The name or ID of the application.

*/ inline bool ApplicationHasBeenSet() const { return m_applicationHasBeenSet; } /** *

The name or ID of the application.

*/ inline void SetApplication(const Aws::String& value) { m_applicationHasBeenSet = true; m_application = value; } /** *

The name or ID of the application.

*/ inline void SetApplication(Aws::String&& value) { m_applicationHasBeenSet = true; m_application = std::move(value); } /** *

The name or ID of the application.

*/ inline void SetApplication(const char* value) { m_applicationHasBeenSet = true; m_application.assign(value); } /** *

The name or ID of the application.

*/ inline DisassociateResourceRequest& WithApplication(const Aws::String& value) { SetApplication(value); return *this;} /** *

The name or ID of the application.

*/ inline DisassociateResourceRequest& WithApplication(Aws::String&& value) { SetApplication(std::move(value)); return *this;} /** *

The name or ID of the application.

*/ inline DisassociateResourceRequest& WithApplication(const char* value) { SetApplication(value); return *this;} /** *

The type of the resource that is being disassociated.

*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *

The type of the resource that is being disassociated.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The type of the resource that is being disassociated.

*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The type of the resource that is being disassociated.

*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The type of the resource that is being disassociated.

*/ inline DisassociateResourceRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *

The type of the resource that is being disassociated.

*/ inline DisassociateResourceRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

The name or ID of the resource.

*/ inline const Aws::String& GetResource() const{ return m_resource; } /** *

The name or ID of the resource.

*/ inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; } /** *

The name or ID of the resource.

*/ inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; } /** *

The name or ID of the resource.

*/ inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); } /** *

The name or ID of the resource.

*/ inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); } /** *

The name or ID of the resource.

*/ inline DisassociateResourceRequest& WithResource(const Aws::String& value) { SetResource(value); return *this;} /** *

The name or ID of the resource.

*/ inline DisassociateResourceRequest& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;} /** *

The name or ID of the resource.

*/ inline DisassociateResourceRequest& WithResource(const char* value) { SetResource(value); return *this;} private: Aws::String m_application; bool m_applicationHasBeenSet = false; ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_resource; bool m_resourceHasBeenSet = false; }; } // namespace Model } // namespace AppRegistry } // namespace Aws