/** * 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 Personalize { namespace Model { /** */ class ListCampaignsRequest : public PersonalizeRequest { public: AWS_PERSONALIZE_API ListCampaignsRequest(); // 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 "ListCampaigns"; } AWS_PERSONALIZE_API Aws::String SerializePayload() const override; AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the solution to list the campaigns for. * When a solution is not specified, all the campaigns associated with the account * are listed.

*/ inline const Aws::String& GetSolutionArn() const{ return m_solutionArn; } /** *

The Amazon Resource Name (ARN) of the solution to list the campaigns for. * When a solution is not specified, all the campaigns associated with the account * are listed.

*/ inline bool SolutionArnHasBeenSet() const { return m_solutionArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the solution to list the campaigns for. * When a solution is not specified, all the campaigns associated with the account * are listed.

*/ inline void SetSolutionArn(const Aws::String& value) { m_solutionArnHasBeenSet = true; m_solutionArn = value; } /** *

The Amazon Resource Name (ARN) of the solution to list the campaigns for. * When a solution is not specified, all the campaigns associated with the account * are listed.

*/ inline void SetSolutionArn(Aws::String&& value) { m_solutionArnHasBeenSet = true; m_solutionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the solution to list the campaigns for. * When a solution is not specified, all the campaigns associated with the account * are listed.

*/ inline void SetSolutionArn(const char* value) { m_solutionArnHasBeenSet = true; m_solutionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the solution to list the campaigns for. * When a solution is not specified, all the campaigns associated with the account * are listed.

*/ inline ListCampaignsRequest& WithSolutionArn(const Aws::String& value) { SetSolutionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the solution to list the campaigns for. * When a solution is not specified, all the campaigns associated with the account * are listed.

*/ inline ListCampaignsRequest& WithSolutionArn(Aws::String&& value) { SetSolutionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the solution to list the campaigns for. * When a solution is not specified, all the campaigns associated with the account * are listed.

*/ inline ListCampaignsRequest& WithSolutionArn(const char* value) { SetSolutionArn(value); return *this;} /** *

A token returned from the previous call to ListCampaigns * for getting the next set of campaigns (if they exist).

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

A token returned from the previous call to ListCampaigns * for getting the next set of campaigns (if they exist).

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

A token returned from the previous call to ListCampaigns * for getting the next set of campaigns (if they exist).

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

A token returned from the previous call to ListCampaigns * for getting the next set of campaigns (if they exist).

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

A token returned from the previous call to ListCampaigns * for getting the next set of campaigns (if they exist).

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

A token returned from the previous call to ListCampaigns * for getting the next set of campaigns (if they exist).

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

A token returned from the previous call to ListCampaigns * for getting the next set of campaigns (if they exist).

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

A token returned from the previous call to ListCampaigns * for getting the next set of campaigns (if they exist).

*/ inline ListCampaignsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of campaigns to return.

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

The maximum number of campaigns to return.

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

The maximum number of campaigns to return.

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

The maximum number of campaigns to return.

*/ inline ListCampaignsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_solutionArn; bool m_solutionArnHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws