/** * 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 CloudHSM { namespace Model { /** */ class GetConfigRequest : public CloudHSMRequest { public: AWS_CLOUDHSM_API GetConfigRequest(); // 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 "GetConfig"; } AWS_CLOUDHSM_API Aws::String SerializePayload() const override; AWS_CLOUDHSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN of the client.

*/ inline const Aws::String& GetClientArn() const{ return m_clientArn; } /** *

The ARN of the client.

*/ inline bool ClientArnHasBeenSet() const { return m_clientArnHasBeenSet; } /** *

The ARN of the client.

*/ inline void SetClientArn(const Aws::String& value) { m_clientArnHasBeenSet = true; m_clientArn = value; } /** *

The ARN of the client.

*/ inline void SetClientArn(Aws::String&& value) { m_clientArnHasBeenSet = true; m_clientArn = std::move(value); } /** *

The ARN of the client.

*/ inline void SetClientArn(const char* value) { m_clientArnHasBeenSet = true; m_clientArn.assign(value); } /** *

The ARN of the client.

*/ inline GetConfigRequest& WithClientArn(const Aws::String& value) { SetClientArn(value); return *this;} /** *

The ARN of the client.

*/ inline GetConfigRequest& WithClientArn(Aws::String&& value) { SetClientArn(std::move(value)); return *this;} /** *

The ARN of the client.

*/ inline GetConfigRequest& WithClientArn(const char* value) { SetClientArn(value); return *this;} /** *

The client version.

*/ inline const ClientVersion& GetClientVersion() const{ return m_clientVersion; } /** *

The client version.

*/ inline bool ClientVersionHasBeenSet() const { return m_clientVersionHasBeenSet; } /** *

The client version.

*/ inline void SetClientVersion(const ClientVersion& value) { m_clientVersionHasBeenSet = true; m_clientVersion = value; } /** *

The client version.

*/ inline void SetClientVersion(ClientVersion&& value) { m_clientVersionHasBeenSet = true; m_clientVersion = std::move(value); } /** *

The client version.

*/ inline GetConfigRequest& WithClientVersion(const ClientVersion& value) { SetClientVersion(value); return *this;} /** *

The client version.

*/ inline GetConfigRequest& WithClientVersion(ClientVersion&& value) { SetClientVersion(std::move(value)); return *this;} /** *

A list of ARNs that identify the high-availability partition groups that are * associated with the client.

*/ inline const Aws::Vector& GetHapgList() const{ return m_hapgList; } /** *

A list of ARNs that identify the high-availability partition groups that are * associated with the client.

*/ inline bool HapgListHasBeenSet() const { return m_hapgListHasBeenSet; } /** *

A list of ARNs that identify the high-availability partition groups that are * associated with the client.

*/ inline void SetHapgList(const Aws::Vector& value) { m_hapgListHasBeenSet = true; m_hapgList = value; } /** *

A list of ARNs that identify the high-availability partition groups that are * associated with the client.

*/ inline void SetHapgList(Aws::Vector&& value) { m_hapgListHasBeenSet = true; m_hapgList = std::move(value); } /** *

A list of ARNs that identify the high-availability partition groups that are * associated with the client.

*/ inline GetConfigRequest& WithHapgList(const Aws::Vector& value) { SetHapgList(value); return *this;} /** *

A list of ARNs that identify the high-availability partition groups that are * associated with the client.

*/ inline GetConfigRequest& WithHapgList(Aws::Vector&& value) { SetHapgList(std::move(value)); return *this;} /** *

A list of ARNs that identify the high-availability partition groups that are * associated with the client.

*/ inline GetConfigRequest& AddHapgList(const Aws::String& value) { m_hapgListHasBeenSet = true; m_hapgList.push_back(value); return *this; } /** *

A list of ARNs that identify the high-availability partition groups that are * associated with the client.

*/ inline GetConfigRequest& AddHapgList(Aws::String&& value) { m_hapgListHasBeenSet = true; m_hapgList.push_back(std::move(value)); return *this; } /** *

A list of ARNs that identify the high-availability partition groups that are * associated with the client.

*/ inline GetConfigRequest& AddHapgList(const char* value) { m_hapgListHasBeenSet = true; m_hapgList.push_back(value); return *this; } private: Aws::String m_clientArn; bool m_clientArnHasBeenSet = false; ClientVersion m_clientVersion; bool m_clientVersionHasBeenSet = false; Aws::Vector m_hapgList; bool m_hapgListHasBeenSet = false; }; } // namespace Model } // namespace CloudHSM } // namespace Aws