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/servicecatalog/ServiceCatalog_EXPORTS.h> 8 #include <aws/servicecatalog/ServiceCatalogRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/servicecatalog/model/AccessLevelFilter.h> 11 #include <aws/servicecatalog/model/ListRecordHistorySearchFilter.h> 12 #include <utility> 13 14 namespace Aws 15 { 16 namespace ServiceCatalog 17 { 18 namespace Model 19 { 20 21 /** 22 */ 23 class AWS_SERVICECATALOG_API ListRecordHistoryRequest : public ServiceCatalogRequest 24 { 25 public: 26 ListRecordHistoryRequest(); 27 28 // Service request name is the Operation name which will send this request out, 29 // each operation should has unique request name, so that we can get operation's name from this request. 30 // Note: this is not true for response, multiple operations may have the same response name, 31 // so we can not get operation's name from response. GetServiceRequestName()32 inline virtual const char* GetServiceRequestName() const override { return "ListRecordHistory"; } 33 34 Aws::String SerializePayload() const override; 35 36 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 37 38 39 /** 40 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 41 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 42 * Chinese</p> </li> </ul> 43 */ GetAcceptLanguage()44 inline const Aws::String& GetAcceptLanguage() const{ return m_acceptLanguage; } 45 46 /** 47 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 48 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 49 * Chinese</p> </li> </ul> 50 */ AcceptLanguageHasBeenSet()51 inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; } 52 53 /** 54 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 55 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 56 * Chinese</p> </li> </ul> 57 */ SetAcceptLanguage(const Aws::String & value)58 inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; } 59 60 /** 61 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 62 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 63 * Chinese</p> </li> </ul> 64 */ SetAcceptLanguage(Aws::String && value)65 inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); } 66 67 /** 68 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 69 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 70 * Chinese</p> </li> </ul> 71 */ SetAcceptLanguage(const char * value)72 inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); } 73 74 /** 75 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 76 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 77 * Chinese</p> </li> </ul> 78 */ WithAcceptLanguage(const Aws::String & value)79 inline ListRecordHistoryRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;} 80 81 /** 82 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 83 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 84 * Chinese</p> </li> </ul> 85 */ WithAcceptLanguage(Aws::String && value)86 inline ListRecordHistoryRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;} 87 88 /** 89 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 90 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 91 * Chinese</p> </li> </ul> 92 */ WithAcceptLanguage(const char * value)93 inline ListRecordHistoryRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;} 94 95 96 /** 97 * <p>The access level to use to obtain results. The default is 98 * <code>User</code>.</p> 99 */ GetAccessLevelFilter()100 inline const AccessLevelFilter& GetAccessLevelFilter() const{ return m_accessLevelFilter; } 101 102 /** 103 * <p>The access level to use to obtain results. The default is 104 * <code>User</code>.</p> 105 */ AccessLevelFilterHasBeenSet()106 inline bool AccessLevelFilterHasBeenSet() const { return m_accessLevelFilterHasBeenSet; } 107 108 /** 109 * <p>The access level to use to obtain results. The default is 110 * <code>User</code>.</p> 111 */ SetAccessLevelFilter(const AccessLevelFilter & value)112 inline void SetAccessLevelFilter(const AccessLevelFilter& value) { m_accessLevelFilterHasBeenSet = true; m_accessLevelFilter = value; } 113 114 /** 115 * <p>The access level to use to obtain results. The default is 116 * <code>User</code>.</p> 117 */ SetAccessLevelFilter(AccessLevelFilter && value)118 inline void SetAccessLevelFilter(AccessLevelFilter&& value) { m_accessLevelFilterHasBeenSet = true; m_accessLevelFilter = std::move(value); } 119 120 /** 121 * <p>The access level to use to obtain results. The default is 122 * <code>User</code>.</p> 123 */ WithAccessLevelFilter(const AccessLevelFilter & value)124 inline ListRecordHistoryRequest& WithAccessLevelFilter(const AccessLevelFilter& value) { SetAccessLevelFilter(value); return *this;} 125 126 /** 127 * <p>The access level to use to obtain results. The default is 128 * <code>User</code>.</p> 129 */ WithAccessLevelFilter(AccessLevelFilter && value)130 inline ListRecordHistoryRequest& WithAccessLevelFilter(AccessLevelFilter&& value) { SetAccessLevelFilter(std::move(value)); return *this;} 131 132 133 /** 134 * <p>The search filter to scope the results.</p> 135 */ GetSearchFilter()136 inline const ListRecordHistorySearchFilter& GetSearchFilter() const{ return m_searchFilter; } 137 138 /** 139 * <p>The search filter to scope the results.</p> 140 */ SearchFilterHasBeenSet()141 inline bool SearchFilterHasBeenSet() const { return m_searchFilterHasBeenSet; } 142 143 /** 144 * <p>The search filter to scope the results.</p> 145 */ SetSearchFilter(const ListRecordHistorySearchFilter & value)146 inline void SetSearchFilter(const ListRecordHistorySearchFilter& value) { m_searchFilterHasBeenSet = true; m_searchFilter = value; } 147 148 /** 149 * <p>The search filter to scope the results.</p> 150 */ SetSearchFilter(ListRecordHistorySearchFilter && value)151 inline void SetSearchFilter(ListRecordHistorySearchFilter&& value) { m_searchFilterHasBeenSet = true; m_searchFilter = std::move(value); } 152 153 /** 154 * <p>The search filter to scope the results.</p> 155 */ WithSearchFilter(const ListRecordHistorySearchFilter & value)156 inline ListRecordHistoryRequest& WithSearchFilter(const ListRecordHistorySearchFilter& value) { SetSearchFilter(value); return *this;} 157 158 /** 159 * <p>The search filter to scope the results.</p> 160 */ WithSearchFilter(ListRecordHistorySearchFilter && value)161 inline ListRecordHistoryRequest& WithSearchFilter(ListRecordHistorySearchFilter&& value) { SetSearchFilter(std::move(value)); return *this;} 162 163 164 /** 165 * <p>The maximum number of items to return with this call.</p> 166 */ GetPageSize()167 inline int GetPageSize() const{ return m_pageSize; } 168 169 /** 170 * <p>The maximum number of items to return with this call.</p> 171 */ PageSizeHasBeenSet()172 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; } 173 174 /** 175 * <p>The maximum number of items to return with this call.</p> 176 */ SetPageSize(int value)177 inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } 178 179 /** 180 * <p>The maximum number of items to return with this call.</p> 181 */ WithPageSize(int value)182 inline ListRecordHistoryRequest& WithPageSize(int value) { SetPageSize(value); return *this;} 183 184 185 /** 186 * <p>The page token for the next set of results. To retrieve the first set of 187 * results, use null.</p> 188 */ GetPageToken()189 inline const Aws::String& GetPageToken() const{ return m_pageToken; } 190 191 /** 192 * <p>The page token for the next set of results. To retrieve the first set of 193 * results, use null.</p> 194 */ PageTokenHasBeenSet()195 inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; } 196 197 /** 198 * <p>The page token for the next set of results. To retrieve the first set of 199 * results, use null.</p> 200 */ SetPageToken(const Aws::String & value)201 inline void SetPageToken(const Aws::String& value) { m_pageTokenHasBeenSet = true; m_pageToken = value; } 202 203 /** 204 * <p>The page token for the next set of results. To retrieve the first set of 205 * results, use null.</p> 206 */ SetPageToken(Aws::String && value)207 inline void SetPageToken(Aws::String&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::move(value); } 208 209 /** 210 * <p>The page token for the next set of results. To retrieve the first set of 211 * results, use null.</p> 212 */ SetPageToken(const char * value)213 inline void SetPageToken(const char* value) { m_pageTokenHasBeenSet = true; m_pageToken.assign(value); } 214 215 /** 216 * <p>The page token for the next set of results. To retrieve the first set of 217 * results, use null.</p> 218 */ WithPageToken(const Aws::String & value)219 inline ListRecordHistoryRequest& WithPageToken(const Aws::String& value) { SetPageToken(value); return *this;} 220 221 /** 222 * <p>The page token for the next set of results. To retrieve the first set of 223 * results, use null.</p> 224 */ WithPageToken(Aws::String && value)225 inline ListRecordHistoryRequest& WithPageToken(Aws::String&& value) { SetPageToken(std::move(value)); return *this;} 226 227 /** 228 * <p>The page token for the next set of results. To retrieve the first set of 229 * results, use null.</p> 230 */ WithPageToken(const char * value)231 inline ListRecordHistoryRequest& WithPageToken(const char* value) { SetPageToken(value); return *this;} 232 233 private: 234 235 Aws::String m_acceptLanguage; 236 bool m_acceptLanguageHasBeenSet; 237 238 AccessLevelFilter m_accessLevelFilter; 239 bool m_accessLevelFilterHasBeenSet; 240 241 ListRecordHistorySearchFilter m_searchFilter; 242 bool m_searchFilterHasBeenSet; 243 244 int m_pageSize; 245 bool m_pageSizeHasBeenSet; 246 247 Aws::String m_pageToken; 248 bool m_pageTokenHasBeenSet; 249 }; 250 251 } // namespace Model 252 } // namespace ServiceCatalog 253 } // namespace Aws 254