/** * 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 MigrationHubConfig { namespace Model { /** */ class DescribeHomeRegionControlsRequest : public MigrationHubConfigRequest { public: AWS_MIGRATIONHUBCONFIG_API DescribeHomeRegionControlsRequest(); // 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 "DescribeHomeRegionControls"; } AWS_MIGRATIONHUBCONFIG_API Aws::String SerializePayload() const override; AWS_MIGRATIONHUBCONFIG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ControlID is a unique identifier string of your * HomeRegionControl object.

*/ inline const Aws::String& GetControlId() const{ return m_controlId; } /** *

The ControlID is a unique identifier string of your * HomeRegionControl object.

*/ inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; } /** *

The ControlID is a unique identifier string of your * HomeRegionControl object.

*/ inline void SetControlId(const Aws::String& value) { m_controlIdHasBeenSet = true; m_controlId = value; } /** *

The ControlID is a unique identifier string of your * HomeRegionControl object.

*/ inline void SetControlId(Aws::String&& value) { m_controlIdHasBeenSet = true; m_controlId = std::move(value); } /** *

The ControlID is a unique identifier string of your * HomeRegionControl object.

*/ inline void SetControlId(const char* value) { m_controlIdHasBeenSet = true; m_controlId.assign(value); } /** *

The ControlID is a unique identifier string of your * HomeRegionControl object.

*/ inline DescribeHomeRegionControlsRequest& WithControlId(const Aws::String& value) { SetControlId(value); return *this;} /** *

The ControlID is a unique identifier string of your * HomeRegionControl object.

*/ inline DescribeHomeRegionControlsRequest& WithControlId(Aws::String&& value) { SetControlId(std::move(value)); return *this;} /** *

The ControlID is a unique identifier string of your * HomeRegionControl object.

*/ inline DescribeHomeRegionControlsRequest& WithControlId(const char* value) { SetControlId(value); return *this;} /** *

The name of the home region you'd like to view.

*/ inline const Aws::String& GetHomeRegion() const{ return m_homeRegion; } /** *

The name of the home region you'd like to view.

*/ inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; } /** *

The name of the home region you'd like to view.

*/ inline void SetHomeRegion(const Aws::String& value) { m_homeRegionHasBeenSet = true; m_homeRegion = value; } /** *

The name of the home region you'd like to view.

*/ inline void SetHomeRegion(Aws::String&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::move(value); } /** *

The name of the home region you'd like to view.

*/ inline void SetHomeRegion(const char* value) { m_homeRegionHasBeenSet = true; m_homeRegion.assign(value); } /** *

The name of the home region you'd like to view.

*/ inline DescribeHomeRegionControlsRequest& WithHomeRegion(const Aws::String& value) { SetHomeRegion(value); return *this;} /** *

The name of the home region you'd like to view.

*/ inline DescribeHomeRegionControlsRequest& WithHomeRegion(Aws::String&& value) { SetHomeRegion(std::move(value)); return *this;} /** *

The name of the home region you'd like to view.

*/ inline DescribeHomeRegionControlsRequest& WithHomeRegion(const char* value) { SetHomeRegion(value); return *this;} /** *

The target parameter specifies the identifier to which the home region is * applied, which is always of type ACCOUNT. It applies the home * region to the current ACCOUNT.

*/ inline const Target& GetTarget() const{ return m_target; } /** *

The target parameter specifies the identifier to which the home region is * applied, which is always of type ACCOUNT. It applies the home * region to the current ACCOUNT.

*/ inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; } /** *

The target parameter specifies the identifier to which the home region is * applied, which is always of type ACCOUNT. It applies the home * region to the current ACCOUNT.

*/ inline void SetTarget(const Target& value) { m_targetHasBeenSet = true; m_target = value; } /** *

The target parameter specifies the identifier to which the home region is * applied, which is always of type ACCOUNT. It applies the home * region to the current ACCOUNT.

*/ inline void SetTarget(Target&& value) { m_targetHasBeenSet = true; m_target = std::move(value); } /** *

The target parameter specifies the identifier to which the home region is * applied, which is always of type ACCOUNT. It applies the home * region to the current ACCOUNT.

*/ inline DescribeHomeRegionControlsRequest& WithTarget(const Target& value) { SetTarget(value); return *this;} /** *

The target parameter specifies the identifier to which the home region is * applied, which is always of type ACCOUNT. It applies the home * region to the current ACCOUNT.

*/ inline DescribeHomeRegionControlsRequest& WithTarget(Target&& value) { SetTarget(std::move(value)); return *this;} /** *

The maximum number of filtering results to display per page.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of filtering results to display per page.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of filtering results to display per page.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of filtering results to display per page.

*/ inline DescribeHomeRegionControlsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

If a NextToken was returned by a previous call, more results are * available. To retrieve the next page of results, make the call again using the * returned token in NextToken.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

If a NextToken was returned by a previous call, more results are * available. To retrieve the next page of results, make the call again using the * returned token in NextToken.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

If a NextToken was returned by a previous call, more results are * available. To retrieve the next page of results, make the call again using the * returned token in NextToken.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

If a NextToken was returned by a previous call, more results are * available. To retrieve the next page of results, make the call again using the * returned token in NextToken.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

If a NextToken was returned by a previous call, more results are * available. To retrieve the next page of results, make the call again using the * returned token in NextToken.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

If a NextToken was returned by a previous call, more results are * available. To retrieve the next page of results, make the call again using the * returned token in NextToken.

*/ inline DescribeHomeRegionControlsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

If a NextToken was returned by a previous call, more results are * available. To retrieve the next page of results, make the call again using the * returned token in NextToken.

*/ inline DescribeHomeRegionControlsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

If a NextToken was returned by a previous call, more results are * available. To retrieve the next page of results, make the call again using the * returned token in NextToken.

*/ inline DescribeHomeRegionControlsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_controlId; bool m_controlIdHasBeenSet = false; Aws::String m_homeRegion; bool m_homeRegionHasBeenSet = false; Target m_target; bool m_targetHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace MigrationHubConfig } // namespace Aws