/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace SSM { namespace Model { /** */ class GetOpsItemRequest : public SSMRequest { public: AWS_SSM_API GetOpsItemRequest(); // 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 "GetOpsItem"; } AWS_SSM_API Aws::String SerializePayload() const override; AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the OpsItem that you want to get.

*/ inline const Aws::String& GetOpsItemId() const{ return m_opsItemId; } /** *

The ID of the OpsItem that you want to get.

*/ inline bool OpsItemIdHasBeenSet() const { return m_opsItemIdHasBeenSet; } /** *

The ID of the OpsItem that you want to get.

*/ inline void SetOpsItemId(const Aws::String& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = value; } /** *

The ID of the OpsItem that you want to get.

*/ inline void SetOpsItemId(Aws::String&& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = std::move(value); } /** *

The ID of the OpsItem that you want to get.

*/ inline void SetOpsItemId(const char* value) { m_opsItemIdHasBeenSet = true; m_opsItemId.assign(value); } /** *

The ID of the OpsItem that you want to get.

*/ inline GetOpsItemRequest& WithOpsItemId(const Aws::String& value) { SetOpsItemId(value); return *this;} /** *

The ID of the OpsItem that you want to get.

*/ inline GetOpsItemRequest& WithOpsItemId(Aws::String&& value) { SetOpsItemId(std::move(value)); return *this;} /** *

The ID of the OpsItem that you want to get.

*/ inline GetOpsItemRequest& WithOpsItemId(const char* value) { SetOpsItemId(value); return *this;} /** *

The OpsItem Amazon Resource Name (ARN).

*/ inline const Aws::String& GetOpsItemArn() const{ return m_opsItemArn; } /** *

The OpsItem Amazon Resource Name (ARN).

*/ inline bool OpsItemArnHasBeenSet() const { return m_opsItemArnHasBeenSet; } /** *

The OpsItem Amazon Resource Name (ARN).

*/ inline void SetOpsItemArn(const Aws::String& value) { m_opsItemArnHasBeenSet = true; m_opsItemArn = value; } /** *

The OpsItem Amazon Resource Name (ARN).

*/ inline void SetOpsItemArn(Aws::String&& value) { m_opsItemArnHasBeenSet = true; m_opsItemArn = std::move(value); } /** *

The OpsItem Amazon Resource Name (ARN).

*/ inline void SetOpsItemArn(const char* value) { m_opsItemArnHasBeenSet = true; m_opsItemArn.assign(value); } /** *

The OpsItem Amazon Resource Name (ARN).

*/ inline GetOpsItemRequest& WithOpsItemArn(const Aws::String& value) { SetOpsItemArn(value); return *this;} /** *

The OpsItem Amazon Resource Name (ARN).

*/ inline GetOpsItemRequest& WithOpsItemArn(Aws::String&& value) { SetOpsItemArn(std::move(value)); return *this;} /** *

The OpsItem Amazon Resource Name (ARN).

*/ inline GetOpsItemRequest& WithOpsItemArn(const char* value) { SetOpsItemArn(value); return *this;} private: Aws::String m_opsItemId; bool m_opsItemIdHasBeenSet = false; Aws::String m_opsItemArn; bool m_opsItemArnHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws