1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/codestar-connections/CodeStarconnections_EXPORTS.h> 8 #include <aws/codestar-connections/CodeStarconnectionsRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace CodeStarconnections 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_CODESTARCONNECTIONS_API ListHostsRequest : public CodeStarconnectionsRequest 22 { 23 public: 24 ListHostsRequest(); 25 26 // Service request name is the Operation name which will send this request out, 27 // each operation should has unique request name, so that we can get operation's name from this request. 28 // Note: this is not true for response, multiple operations may have the same response name, 29 // so we can not get operation's name from response. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "ListHosts"; } 31 32 Aws::String SerializePayload() const override; 33 34 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 35 36 37 /** 38 * <p>The maximum number of results to return in a single call. To retrieve the 39 * remaining results, make another call with the returned <code>nextToken</code> 40 * value.</p> 41 */ GetMaxResults()42 inline int GetMaxResults() const{ return m_maxResults; } 43 44 /** 45 * <p>The maximum number of results to return in a single call. To retrieve the 46 * remaining results, make another call with the returned <code>nextToken</code> 47 * value.</p> 48 */ MaxResultsHasBeenSet()49 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } 50 51 /** 52 * <p>The maximum number of results to return in a single call. To retrieve the 53 * remaining results, make another call with the returned <code>nextToken</code> 54 * value.</p> 55 */ SetMaxResults(int value)56 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } 57 58 /** 59 * <p>The maximum number of results to return in a single call. To retrieve the 60 * remaining results, make another call with the returned <code>nextToken</code> 61 * value.</p> 62 */ WithMaxResults(int value)63 inline ListHostsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} 64 65 66 /** 67 * <p>The token that was returned from the previous <code>ListHosts</code> call, 68 * which can be used to return the next set of hosts in the list.</p> 69 */ GetNextToken()70 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 71 72 /** 73 * <p>The token that was returned from the previous <code>ListHosts</code> call, 74 * which can be used to return the next set of hosts in the list.</p> 75 */ NextTokenHasBeenSet()76 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } 77 78 /** 79 * <p>The token that was returned from the previous <code>ListHosts</code> call, 80 * which can be used to return the next set of hosts in the list.</p> 81 */ SetNextToken(const Aws::String & value)82 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } 83 84 /** 85 * <p>The token that was returned from the previous <code>ListHosts</code> call, 86 * which can be used to return the next set of hosts in the list.</p> 87 */ SetNextToken(Aws::String && value)88 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } 89 90 /** 91 * <p>The token that was returned from the previous <code>ListHosts</code> call, 92 * which can be used to return the next set of hosts in the list.</p> 93 */ SetNextToken(const char * value)94 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } 95 96 /** 97 * <p>The token that was returned from the previous <code>ListHosts</code> call, 98 * which can be used to return the next set of hosts in the list.</p> 99 */ WithNextToken(const Aws::String & value)100 inline ListHostsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 101 102 /** 103 * <p>The token that was returned from the previous <code>ListHosts</code> call, 104 * which can be used to return the next set of hosts in the list.</p> 105 */ WithNextToken(Aws::String && value)106 inline ListHostsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 107 108 /** 109 * <p>The token that was returned from the previous <code>ListHosts</code> call, 110 * which can be used to return the next set of hosts in the list.</p> 111 */ WithNextToken(const char * value)112 inline ListHostsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} 113 114 private: 115 116 int m_maxResults; 117 bool m_maxResultsHasBeenSet; 118 119 Aws::String m_nextToken; 120 bool m_nextTokenHasBeenSet; 121 }; 122 123 } // namespace Model 124 } // namespace CodeStarconnections 125 } // namespace Aws 126