/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace AuditManager { namespace Model { /** */ class UpdateAssessmentFrameworkShareRequest : public AuditManagerRequest { public: AWS_AUDITMANAGER_API UpdateAssessmentFrameworkShareRequest(); // 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 "UpdateAssessmentFrameworkShare"; } AWS_AUDITMANAGER_API Aws::String SerializePayload() const override; /** *

The unique identifier for the share request.

*/ inline const Aws::String& GetRequestId() const{ return m_requestId; } /** *

The unique identifier for the share request.

*/ inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } /** *

The unique identifier for the share request.

*/ inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } /** *

The unique identifier for the share request.

*/ inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } /** *

The unique identifier for the share request.

*/ inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } /** *

The unique identifier for the share request.

*/ inline UpdateAssessmentFrameworkShareRequest& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} /** *

The unique identifier for the share request.

*/ inline UpdateAssessmentFrameworkShareRequest& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} /** *

The unique identifier for the share request.

*/ inline UpdateAssessmentFrameworkShareRequest& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** *

Specifies whether the share request is a sent request or a received * request.

*/ inline const ShareRequestType& GetRequestType() const{ return m_requestType; } /** *

Specifies whether the share request is a sent request or a received * request.

*/ inline bool RequestTypeHasBeenSet() const { return m_requestTypeHasBeenSet; } /** *

Specifies whether the share request is a sent request or a received * request.

*/ inline void SetRequestType(const ShareRequestType& value) { m_requestTypeHasBeenSet = true; m_requestType = value; } /** *

Specifies whether the share request is a sent request or a received * request.

*/ inline void SetRequestType(ShareRequestType&& value) { m_requestTypeHasBeenSet = true; m_requestType = std::move(value); } /** *

Specifies whether the share request is a sent request or a received * request.

*/ inline UpdateAssessmentFrameworkShareRequest& WithRequestType(const ShareRequestType& value) { SetRequestType(value); return *this;} /** *

Specifies whether the share request is a sent request or a received * request.

*/ inline UpdateAssessmentFrameworkShareRequest& WithRequestType(ShareRequestType&& value) { SetRequestType(std::move(value)); return *this;} /** *

Specifies the update action for the share request.

*/ inline const ShareRequestAction& GetAction() const{ return m_action; } /** *

Specifies the update action for the share request.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

Specifies the update action for the share request.

*/ inline void SetAction(const ShareRequestAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *

Specifies the update action for the share request.

*/ inline void SetAction(ShareRequestAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

Specifies the update action for the share request.

*/ inline UpdateAssessmentFrameworkShareRequest& WithAction(const ShareRequestAction& value) { SetAction(value); return *this;} /** *

Specifies the update action for the share request.

*/ inline UpdateAssessmentFrameworkShareRequest& WithAction(ShareRequestAction&& value) { SetAction(std::move(value)); return *this;} private: Aws::String m_requestId; bool m_requestIdHasBeenSet = false; ShareRequestType m_requestType; bool m_requestTypeHasBeenSet = false; ShareRequestAction m_action; bool m_actionHasBeenSet = false; }; } // namespace Model } // namespace AuditManager } // namespace Aws