/** * 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 mgn { namespace Model { /** */ class ListSourceServerActionsRequest : public MgnRequest { public: AWS_MGN_API ListSourceServerActionsRequest(); // 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 "ListSourceServerActions"; } AWS_MGN_API Aws::String SerializePayload() const override; /** *

Account ID to return when listing source server post migration custom * actions.

*/ inline const Aws::String& GetAccountID() const{ return m_accountID; } /** *

Account ID to return when listing source server post migration custom * actions.

*/ inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; } /** *

Account ID to return when listing source server post migration custom * actions.

*/ inline void SetAccountID(const Aws::String& value) { m_accountIDHasBeenSet = true; m_accountID = value; } /** *

Account ID to return when listing source server post migration custom * actions.

*/ inline void SetAccountID(Aws::String&& value) { m_accountIDHasBeenSet = true; m_accountID = std::move(value); } /** *

Account ID to return when listing source server post migration custom * actions.

*/ inline void SetAccountID(const char* value) { m_accountIDHasBeenSet = true; m_accountID.assign(value); } /** *

Account ID to return when listing source server post migration custom * actions.

*/ inline ListSourceServerActionsRequest& WithAccountID(const Aws::String& value) { SetAccountID(value); return *this;} /** *

Account ID to return when listing source server post migration custom * actions.

*/ inline ListSourceServerActionsRequest& WithAccountID(Aws::String&& value) { SetAccountID(std::move(value)); return *this;} /** *

Account ID to return when listing source server post migration custom * actions.

*/ inline ListSourceServerActionsRequest& WithAccountID(const char* value) { SetAccountID(value); return *this;} /** *

Filters to apply when listing source server post migration custom * actions.

*/ inline const SourceServerActionsRequestFilters& GetFilters() const{ return m_filters; } /** *

Filters to apply when listing source server post migration custom * actions.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

Filters to apply when listing source server post migration custom * actions.

*/ inline void SetFilters(const SourceServerActionsRequestFilters& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

Filters to apply when listing source server post migration custom * actions.

*/ inline void SetFilters(SourceServerActionsRequestFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

Filters to apply when listing source server post migration custom * actions.

*/ inline ListSourceServerActionsRequest& WithFilters(const SourceServerActionsRequestFilters& value) { SetFilters(value); return *this;} /** *

Filters to apply when listing source server post migration custom * actions.

*/ inline ListSourceServerActionsRequest& WithFilters(SourceServerActionsRequestFilters&& value) { SetFilters(std::move(value)); return *this;} /** *

Maximum amount of items to return when listing source server post migration * custom actions.

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

Maximum amount of items to return when listing source server post migration * custom actions.

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

Maximum amount of items to return when listing source server post migration * custom actions.

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

Maximum amount of items to return when listing source server post migration * custom actions.

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

Next token to use when listing source server post migration custom * actions.

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

Next token to use when listing source server post migration custom * actions.

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

Next token to use when listing source server post migration custom * actions.

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

Next token to use when listing source server post migration custom * actions.

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

Next token to use when listing source server post migration custom * actions.

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

Next token to use when listing source server post migration custom * actions.

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

Next token to use when listing source server post migration custom * actions.

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

Next token to use when listing source server post migration custom * actions.

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

Source server ID.

*/ inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; } /** *

Source server ID.

*/ inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; } /** *

Source server ID.

*/ inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; } /** *

Source server ID.

*/ inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); } /** *

Source server ID.

*/ inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); } /** *

Source server ID.

*/ inline ListSourceServerActionsRequest& WithSourceServerID(const Aws::String& value) { SetSourceServerID(value); return *this;} /** *

Source server ID.

*/ inline ListSourceServerActionsRequest& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;} /** *

Source server ID.

*/ inline ListSourceServerActionsRequest& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;} private: Aws::String m_accountID; bool m_accountIDHasBeenSet = false; SourceServerActionsRequestFilters m_filters; bool m_filtersHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_sourceServerID; bool m_sourceServerIDHasBeenSet = false; }; } // namespace Model } // namespace mgn } // namespace Aws