/src/main/java/com/amazonaws/services/elasticache/model/DescribeEngineDefaultParametersRequest.java

https://github.com/akon-dey/aws-sdk-for-java · Java · 241 lines · 51 code · 21 blank · 169 comment · 0 complexity · 4ff4390636da46a5bf86f9e9afbfdbc3 MD5 · raw file

  1. /*
  2. * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License").
  5. * You may not use this file except in compliance with the License.
  6. * A copy of the License is located at
  7. *
  8. * http://aws.amazon.com/apache2.0
  9. *
  10. * or in the "license" file accompanying this file. This file is distributed
  11. * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  12. * express or implied. See the License for the specific language governing
  13. * permissions and limitations under the License.
  14. */
  15. package com.amazonaws.services.elasticache.model;
  16. import com.amazonaws.AmazonWebServiceRequest;
  17. /**
  18. * Container for the parameters to the {@link com.amazonaws.services.elasticache.AmazonElastiCache#describeEngineDefaultParameters(DescribeEngineDefaultParametersRequest) DescribeEngineDefaultParameters operation}.
  19. * <p>
  20. * Returns the default engine and system parameter information for the
  21. * specified cache engine.
  22. * </p>
  23. *
  24. * @see com.amazonaws.services.elasticache.AmazonElastiCache#describeEngineDefaultParameters(DescribeEngineDefaultParametersRequest)
  25. */
  26. public class DescribeEngineDefaultParametersRequest extends AmazonWebServiceRequest {
  27. /**
  28. * The name of the Cache Parameter Group Family. <note>Currently,
  29. * <i>memcached1.4</i> is the only cache parameter group family supported
  30. * by the service.</note>
  31. */
  32. private String cacheParameterGroupFamily;
  33. /**
  34. * The maximum number of records to include in the response. If more
  35. * records exist than the specified <i>MaxRecords</i> value, a marker is
  36. * included in the response so that the remaining results may be
  37. * retrieved.
  38. */
  39. private Integer maxRecords;
  40. /**
  41. * An optional marker provided in the previous DescribeCacheClusters
  42. * request. If this parameter is specified, the response includes only
  43. * records beyond the marker, up to the value specified by
  44. * <i>MaxRecords</i>.
  45. */
  46. private String marker;
  47. /**
  48. * Default constructor for a new DescribeEngineDefaultParametersRequest object. Callers should use the
  49. * setter or fluent setter (with...) methods to initialize this object after creating it.
  50. */
  51. public DescribeEngineDefaultParametersRequest() {}
  52. /**
  53. * Constructs a new DescribeEngineDefaultParametersRequest object.
  54. * Callers should use the setter or fluent setter (with...) methods to
  55. * initialize any additional object members.
  56. *
  57. * @param cacheParameterGroupFamily The name of the Cache Parameter Group
  58. * Family. <note>Currently, <i>memcached1.4</i> is the only cache
  59. * parameter group family supported by the service.</note>
  60. */
  61. public DescribeEngineDefaultParametersRequest(String cacheParameterGroupFamily) {
  62. this.cacheParameterGroupFamily = cacheParameterGroupFamily;
  63. }
  64. /**
  65. * The name of the Cache Parameter Group Family. <note>Currently,
  66. * <i>memcached1.4</i> is the only cache parameter group family supported
  67. * by the service.</note>
  68. *
  69. * @return The name of the Cache Parameter Group Family. <note>Currently,
  70. * <i>memcached1.4</i> is the only cache parameter group family supported
  71. * by the service.</note>
  72. */
  73. public String getCacheParameterGroupFamily() {
  74. return cacheParameterGroupFamily;
  75. }
  76. /**
  77. * The name of the Cache Parameter Group Family. <note>Currently,
  78. * <i>memcached1.4</i> is the only cache parameter group family supported
  79. * by the service.</note>
  80. *
  81. * @param cacheParameterGroupFamily The name of the Cache Parameter Group Family. <note>Currently,
  82. * <i>memcached1.4</i> is the only cache parameter group family supported
  83. * by the service.</note>
  84. */
  85. public void setCacheParameterGroupFamily(String cacheParameterGroupFamily) {
  86. this.cacheParameterGroupFamily = cacheParameterGroupFamily;
  87. }
  88. /**
  89. * The name of the Cache Parameter Group Family. <note>Currently,
  90. * <i>memcached1.4</i> is the only cache parameter group family supported
  91. * by the service.</note>
  92. * <p>
  93. * Returns a reference to this object so that method calls can be chained together.
  94. *
  95. * @param cacheParameterGroupFamily The name of the Cache Parameter Group Family. <note>Currently,
  96. * <i>memcached1.4</i> is the only cache parameter group family supported
  97. * by the service.</note>
  98. *
  99. * @return A reference to this updated object so that method calls can be chained
  100. * together.
  101. */
  102. public DescribeEngineDefaultParametersRequest withCacheParameterGroupFamily(String cacheParameterGroupFamily) {
  103. this.cacheParameterGroupFamily = cacheParameterGroupFamily;
  104. return this;
  105. }
  106. /**
  107. * The maximum number of records to include in the response. If more
  108. * records exist than the specified <i>MaxRecords</i> value, a marker is
  109. * included in the response so that the remaining results may be
  110. * retrieved.
  111. *
  112. * @return The maximum number of records to include in the response. If more
  113. * records exist than the specified <i>MaxRecords</i> value, a marker is
  114. * included in the response so that the remaining results may be
  115. * retrieved.
  116. */
  117. public Integer getMaxRecords() {
  118. return maxRecords;
  119. }
  120. /**
  121. * The maximum number of records to include in the response. If more
  122. * records exist than the specified <i>MaxRecords</i> value, a marker is
  123. * included in the response so that the remaining results may be
  124. * retrieved.
  125. *
  126. * @param maxRecords The maximum number of records to include in the response. If more
  127. * records exist than the specified <i>MaxRecords</i> value, a marker is
  128. * included in the response so that the remaining results may be
  129. * retrieved.
  130. */
  131. public void setMaxRecords(Integer maxRecords) {
  132. this.maxRecords = maxRecords;
  133. }
  134. /**
  135. * The maximum number of records to include in the response. If more
  136. * records exist than the specified <i>MaxRecords</i> value, a marker is
  137. * included in the response so that the remaining results may be
  138. * retrieved.
  139. * <p>
  140. * Returns a reference to this object so that method calls can be chained together.
  141. *
  142. * @param maxRecords The maximum number of records to include in the response. If more
  143. * records exist than the specified <i>MaxRecords</i> value, a marker is
  144. * included in the response so that the remaining results may be
  145. * retrieved.
  146. *
  147. * @return A reference to this updated object so that method calls can be chained
  148. * together.
  149. */
  150. public DescribeEngineDefaultParametersRequest withMaxRecords(Integer maxRecords) {
  151. this.maxRecords = maxRecords;
  152. return this;
  153. }
  154. /**
  155. * An optional marker provided in the previous DescribeCacheClusters
  156. * request. If this parameter is specified, the response includes only
  157. * records beyond the marker, up to the value specified by
  158. * <i>MaxRecords</i>.
  159. *
  160. * @return An optional marker provided in the previous DescribeCacheClusters
  161. * request. If this parameter is specified, the response includes only
  162. * records beyond the marker, up to the value specified by
  163. * <i>MaxRecords</i>.
  164. */
  165. public String getMarker() {
  166. return marker;
  167. }
  168. /**
  169. * An optional marker provided in the previous DescribeCacheClusters
  170. * request. If this parameter is specified, the response includes only
  171. * records beyond the marker, up to the value specified by
  172. * <i>MaxRecords</i>.
  173. *
  174. * @param marker An optional marker provided in the previous DescribeCacheClusters
  175. * request. If this parameter is specified, the response includes only
  176. * records beyond the marker, up to the value specified by
  177. * <i>MaxRecords</i>.
  178. */
  179. public void setMarker(String marker) {
  180. this.marker = marker;
  181. }
  182. /**
  183. * An optional marker provided in the previous DescribeCacheClusters
  184. * request. If this parameter is specified, the response includes only
  185. * records beyond the marker, up to the value specified by
  186. * <i>MaxRecords</i>.
  187. * <p>
  188. * Returns a reference to this object so that method calls can be chained together.
  189. *
  190. * @param marker An optional marker provided in the previous DescribeCacheClusters
  191. * request. If this parameter is specified, the response includes only
  192. * records beyond the marker, up to the value specified by
  193. * <i>MaxRecords</i>.
  194. *
  195. * @return A reference to this updated object so that method calls can be chained
  196. * together.
  197. */
  198. public DescribeEngineDefaultParametersRequest withMarker(String marker) {
  199. this.marker = marker;
  200. return this;
  201. }
  202. /**
  203. * Returns a string representation of this object; useful for testing and
  204. * debugging.
  205. *
  206. * @return A string representation of this object.
  207. *
  208. * @see java.lang.Object#toString()
  209. */
  210. @Override
  211. public String toString() {
  212. StringBuilder sb = new StringBuilder();
  213. sb.append("{");
  214. sb.append("CacheParameterGroupFamily: " + cacheParameterGroupFamily + ", ");
  215. sb.append("MaxRecords: " + maxRecords + ", ");
  216. sb.append("Marker: " + marker + ", ");
  217. sb.append("}");
  218. return sb.toString();
  219. }
  220. }