/** * 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 OpsWorksCM { namespace Model { /** */ class DescribeEventsRequest : public OpsWorksCMRequest { public: AWS_OPSWORKSCM_API DescribeEventsRequest(); // 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 "DescribeEvents"; } AWS_OPSWORKSCM_API Aws::String SerializePayload() const override; AWS_OPSWORKSCM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the server for which you want to view events.

*/ inline const Aws::String& GetServerName() const{ return m_serverName; } /** *

The name of the server for which you want to view events.

*/ inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; } /** *

The name of the server for which you want to view events.

*/ inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; } /** *

The name of the server for which you want to view events.

*/ inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); } /** *

The name of the server for which you want to view events.

*/ inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); } /** *

The name of the server for which you want to view events.

*/ inline DescribeEventsRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;} /** *

The name of the server for which you want to view events.

*/ inline DescribeEventsRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;} /** *

The name of the server for which you want to view events.

*/ inline DescribeEventsRequest& WithServerName(const char* value) { SetServerName(value); return *this;} /** *

NextToken is a string that is returned in some command responses. It * indicates that not all entries have been returned, and that you must run at * least one more request to get remaining items. To get remaining results, call * DescribeEvents again, and assign the token from the previous * results as the value of the nextToken parameter. If there are no * more results, the response object's nextToken parameter value is * null. Setting a nextToken value that was not returned * in your previous results causes an InvalidNextTokenException to * occur.

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

NextToken is a string that is returned in some command responses. It * indicates that not all entries have been returned, and that you must run at * least one more request to get remaining items. To get remaining results, call * DescribeEvents again, and assign the token from the previous * results as the value of the nextToken parameter. If there are no * more results, the response object's nextToken parameter value is * null. Setting a nextToken value that was not returned * in your previous results causes an InvalidNextTokenException to * occur.

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

NextToken is a string that is returned in some command responses. It * indicates that not all entries have been returned, and that you must run at * least one more request to get remaining items. To get remaining results, call * DescribeEvents again, and assign the token from the previous * results as the value of the nextToken parameter. If there are no * more results, the response object's nextToken parameter value is * null. Setting a nextToken value that was not returned * in your previous results causes an InvalidNextTokenException to * occur.

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

NextToken is a string that is returned in some command responses. It * indicates that not all entries have been returned, and that you must run at * least one more request to get remaining items. To get remaining results, call * DescribeEvents again, and assign the token from the previous * results as the value of the nextToken parameter. If there are no * more results, the response object's nextToken parameter value is * null. Setting a nextToken value that was not returned * in your previous results causes an InvalidNextTokenException to * occur.

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

NextToken is a string that is returned in some command responses. It * indicates that not all entries have been returned, and that you must run at * least one more request to get remaining items. To get remaining results, call * DescribeEvents again, and assign the token from the previous * results as the value of the nextToken parameter. If there are no * more results, the response object's nextToken parameter value is * null. Setting a nextToken value that was not returned * in your previous results causes an InvalidNextTokenException to * occur.

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

NextToken is a string that is returned in some command responses. It * indicates that not all entries have been returned, and that you must run at * least one more request to get remaining items. To get remaining results, call * DescribeEvents again, and assign the token from the previous * results as the value of the nextToken parameter. If there are no * more results, the response object's nextToken parameter value is * null. Setting a nextToken value that was not returned * in your previous results causes an InvalidNextTokenException to * occur.

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

NextToken is a string that is returned in some command responses. It * indicates that not all entries have been returned, and that you must run at * least one more request to get remaining items. To get remaining results, call * DescribeEvents again, and assign the token from the previous * results as the value of the nextToken parameter. If there are no * more results, the response object's nextToken parameter value is * null. Setting a nextToken value that was not returned * in your previous results causes an InvalidNextTokenException to * occur.

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

NextToken is a string that is returned in some command responses. It * indicates that not all entries have been returned, and that you must run at * least one more request to get remaining items. To get remaining results, call * DescribeEvents again, and assign the token from the previous * results as the value of the nextToken parameter. If there are no * more results, the response object's nextToken parameter value is * null. Setting a nextToken value that was not returned * in your previous results causes an InvalidNextTokenException to * occur.

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

To receive a paginated response, use this parameter to specify the maximum * number of results to be returned with a single call. If the number of available * results exceeds this maximum, the response includes a NextToken * value that you can assign to the NextToken request parameter to get * the next set of results.

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

To receive a paginated response, use this parameter to specify the maximum * number of results to be returned with a single call. If the number of available * results exceeds this maximum, the response includes a NextToken * value that you can assign to the NextToken request parameter to get * the next set of results.

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

To receive a paginated response, use this parameter to specify the maximum * number of results to be returned with a single call. If the number of available * results exceeds this maximum, the response includes a NextToken * value that you can assign to the NextToken request parameter to get * the next set of results.

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

To receive a paginated response, use this parameter to specify the maximum * number of results to be returned with a single call. If the number of available * results exceeds this maximum, the response includes a NextToken * value that you can assign to the NextToken request parameter to get * the next set of results.

*/ inline DescribeEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_serverName; bool m_serverNameHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace OpsWorksCM } // namespace Aws