/** * 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 SSMContacts { namespace Model { /** */ class ListRotationsRequest : public SSMContactsRequest { public: AWS_SSMCONTACTS_API ListRotationsRequest(); // 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 "ListRotations"; } AWS_SSMCONTACTS_API Aws::String SerializePayload() const override; AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A filter to include rotations in list results based on their common prefix. * For example, entering prod returns a list of all rotation names that begin with * prod, such as production and prod-1.

*/ inline const Aws::String& GetRotationNamePrefix() const{ return m_rotationNamePrefix; } /** *

A filter to include rotations in list results based on their common prefix. * For example, entering prod returns a list of all rotation names that begin with * prod, such as production and prod-1.

*/ inline bool RotationNamePrefixHasBeenSet() const { return m_rotationNamePrefixHasBeenSet; } /** *

A filter to include rotations in list results based on their common prefix. * For example, entering prod returns a list of all rotation names that begin with * prod, such as production and prod-1.

*/ inline void SetRotationNamePrefix(const Aws::String& value) { m_rotationNamePrefixHasBeenSet = true; m_rotationNamePrefix = value; } /** *

A filter to include rotations in list results based on their common prefix. * For example, entering prod returns a list of all rotation names that begin with * prod, such as production and prod-1.

*/ inline void SetRotationNamePrefix(Aws::String&& value) { m_rotationNamePrefixHasBeenSet = true; m_rotationNamePrefix = std::move(value); } /** *

A filter to include rotations in list results based on their common prefix. * For example, entering prod returns a list of all rotation names that begin with * prod, such as production and prod-1.

*/ inline void SetRotationNamePrefix(const char* value) { m_rotationNamePrefixHasBeenSet = true; m_rotationNamePrefix.assign(value); } /** *

A filter to include rotations in list results based on their common prefix. * For example, entering prod returns a list of all rotation names that begin with * prod, such as production and prod-1.

*/ inline ListRotationsRequest& WithRotationNamePrefix(const Aws::String& value) { SetRotationNamePrefix(value); return *this;} /** *

A filter to include rotations in list results based on their common prefix. * For example, entering prod returns a list of all rotation names that begin with * prod, such as production and prod-1.

*/ inline ListRotationsRequest& WithRotationNamePrefix(Aws::String&& value) { SetRotationNamePrefix(std::move(value)); return *this;} /** *

A filter to include rotations in list results based on their common prefix. * For example, entering prod returns a list of all rotation names that begin with * prod, such as production and prod-1.

*/ inline ListRotationsRequest& WithRotationNamePrefix(const char* value) { SetRotationNamePrefix(value); return *this;} /** *

A token to start the list. Use this token to get the next set of results.

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

A token to start the list. Use this token to get the next set of results.

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

A token to start the list. Use this token to get the next set of results.

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

A token to start the list. Use this token to get the next set of results.

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

A token to start the list. Use this token to get the next set of results.

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

A token to start the list. Use this token to get the next set of results.

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

A token to start the list. Use this token to get the next set of results.

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

A token to start the list. Use this token to get the next set of results.

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

The maximum number of items to return for this call. The call also returns a * token that you can specify in a subsequent call to get the next set of * results.

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

The maximum number of items to return for this call. The call also returns a * token that you can specify in a subsequent call to get the next set of * results.

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

The maximum number of items to return for this call. The call also returns a * token that you can specify in a subsequent call to get the next set of * results.

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

The maximum number of items to return for this call. The call also returns a * token that you can specify in a subsequent call to get the next set of * results.

*/ inline ListRotationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_rotationNamePrefix; bool m_rotationNamePrefixHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace SSMContacts } // namespace Aws