1 /* 2 * Copyright 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 16 package software.amazon.awssdk.codegen.model.service; 17 18 import java.util.Collections; 19 import java.util.List; 20 import java.util.Map; 21 22 public class Shape { 23 private String type; 24 25 private Map<String, Member> members = Collections.emptyMap(); 26 27 private String documentation; 28 29 private List<String> required; 30 31 private List<String> enumValues; 32 33 private String payload; 34 35 private boolean flattened; 36 37 private boolean synthetic; 38 39 private boolean exception; 40 41 private boolean streaming; 42 43 private boolean requiresLength; 44 45 private boolean wrapper; 46 47 private Member listMember; 48 49 private Member mapKeyType; 50 51 private Member mapValueType; 52 53 private ErrorTrait error; 54 55 private long min; 56 57 private long max; 58 59 private String pattern; 60 61 private boolean fault; 62 63 private boolean deprecated; 64 65 private String deprecatedMessage; 66 67 private boolean eventstream; 68 69 private boolean event; 70 71 private String timestampFormat; 72 73 private boolean sensitive; 74 75 private XmlNamespace xmlNamespace; 76 77 private boolean document; 78 79 private boolean union; 80 isFault()81 public boolean isFault() { 82 return fault; 83 } 84 setFault(boolean fault)85 public void setFault(boolean fault) { 86 this.fault = fault; 87 } 88 getPattern()89 public String getPattern() { 90 return pattern; 91 } 92 setPattern(String pattern)93 public void setPattern(String pattern) { 94 this.pattern = pattern; 95 } 96 getType()97 public String getType() { 98 return type; 99 } 100 setType(String type)101 public void setType(String type) { 102 this.type = type; 103 } 104 getMembers()105 public Map<String, Member> getMembers() { 106 return members; 107 } 108 setMembers(Map<String, Member> members)109 public void setMembers(Map<String, Member> members) { 110 this.members = members; 111 } 112 getDocumentation()113 public String getDocumentation() { 114 return documentation; 115 } 116 setDocumentation(String documentation)117 public void setDocumentation(String documentation) { 118 this.documentation = documentation; 119 } 120 getRequired()121 public List<String> getRequired() { 122 return required; 123 } 124 setRequired(List<String> required)125 public void setRequired(List<String> required) { 126 this.required = required; 127 } 128 getEnumValues()129 public List<String> getEnumValues() { 130 return enumValues; 131 } 132 setEnumValues(List<String> enumValues)133 public void setEnumValues(List<String> enumValues) { 134 this.enumValues = enumValues; 135 } 136 137 /** 138 * The actual JSON value of "enumValues". 139 */ setEnum(List<String> enumValues)140 public void setEnum(List<String> enumValues) { 141 this.enumValues = enumValues; 142 } 143 getPayload()144 public String getPayload() { 145 return payload; 146 } 147 setPayload(String payload)148 public void setPayload(String payload) { 149 this.payload = payload; 150 } 151 isFlattened()152 public boolean isFlattened() { 153 return flattened; 154 } 155 setFlattened(boolean flattened)156 public void setFlattened(boolean flattened) { 157 this.flattened = flattened; 158 } 159 160 /** 161 * Returns flag that indicates whether this shape is a custom SDK shape. If true, this shape will be excluded from the static 162 * SdkFields, preventing it from being marshalled. 163 */ isSynthetic()164 public boolean isSynthetic() { 165 return synthetic; 166 } 167 168 /** 169 * Sets flag that indicates whether this shape is a custom SDK shape. If true, this shape will be excluded from the static 170 * SdkFields, preventing it from being marshalled. 171 */ setSynthetic(boolean synthetic)172 public void setSynthetic(boolean synthetic) { 173 this.synthetic = synthetic; 174 } 175 isException()176 public boolean isException() { 177 return exception; 178 } 179 setException(boolean exception)180 public void setException(boolean exception) { 181 this.exception = exception; 182 } 183 getMapKeyType()184 public Member getMapKeyType() { 185 return mapKeyType; 186 } 187 setMapKeyType(Member mapKeyType)188 public void setMapKeyType(Member mapKeyType) { 189 this.mapKeyType = mapKeyType; 190 } 191 192 /** 193 * The actual JSON name of "mapKeyType". 194 */ setKey(Member key)195 public void setKey(Member key) { 196 this.mapKeyType = key; 197 } 198 getMapValueType()199 public Member getMapValueType() { 200 return mapValueType; 201 } 202 setMapValueType(Member mapValueType)203 public void setMapValueType(Member mapValueType) { 204 this.mapValueType = mapValueType; 205 } 206 207 /** 208 * The actual JSON name of "mapValueType". 209 */ setValue(Member value)210 public void setValue(Member value) { 211 this.mapValueType = value; 212 } 213 getListMember()214 public Member getListMember() { 215 return listMember; 216 } 217 setListMember(Member listMember)218 public void setListMember(Member listMember) { 219 this.listMember = listMember; 220 } 221 222 /** 223 * The actual JSON name of "listMember". 224 */ setMember(Member listMember)225 public void setMember(Member listMember) { 226 this.listMember = listMember; 227 } 228 getMin()229 public long getMin() { 230 return min; 231 } 232 setMin(long min)233 public void setMin(long min) { 234 this.min = min; 235 } 236 getMax()237 public long getMax() { 238 return max; 239 } 240 setMax(long max)241 public void setMax(long max) { 242 this.max = max; 243 } 244 isStreaming()245 public boolean isStreaming() { 246 return streaming; 247 } 248 setStreaming(boolean streaming)249 public void setStreaming(boolean streaming) { 250 this.streaming = streaming; 251 } 252 isRequiresLength()253 public boolean isRequiresLength() { 254 return requiresLength; 255 } 256 setRequiresLength(boolean requiresLength)257 public void setRequiresLength(boolean requiresLength) { 258 this.requiresLength = requiresLength; 259 } 260 isWrapper()261 public boolean isWrapper() { 262 return wrapper; 263 } 264 setWrapper(boolean wrapper)265 public void setWrapper(boolean wrapper) { 266 this.wrapper = wrapper; 267 } 268 getError()269 public ErrorTrait getError() { 270 return error; 271 } 272 setError(ErrorTrait error)273 public void setError(ErrorTrait error) { 274 this.error = error; 275 } 276 isDeprecated()277 public boolean isDeprecated() { 278 return deprecated; 279 } 280 setDeprecated(boolean deprecated)281 public void setDeprecated(boolean deprecated) { 282 this.deprecated = deprecated; 283 } 284 getDeprecatedMessage()285 public String getDeprecatedMessage() { 286 return deprecatedMessage; 287 } 288 setDeprecatedMessage(String deprecatedMessage)289 public void setDeprecatedMessage(String deprecatedMessage) { 290 this.deprecatedMessage = deprecatedMessage; 291 } 292 isEventstream()293 public boolean isEventstream() { 294 return eventstream; 295 } 296 setEventstream(boolean eventstream)297 public void setEventstream(boolean eventstream) { 298 this.eventstream = eventstream; 299 } 300 isEvent()301 public boolean isEvent() { 302 return event; 303 } 304 setEvent(boolean event)305 public void setEvent(boolean event) { 306 this.event = event; 307 } 308 getTimestampFormat()309 public String getTimestampFormat() { 310 return timestampFormat; 311 } 312 setTimestampFormat(String timestampFormat)313 public void setTimestampFormat(String timestampFormat) { 314 this.timestampFormat = timestampFormat; 315 } 316 isSensitive()317 public boolean isSensitive() { 318 return sensitive; 319 } 320 setSensitive(boolean sensitive)321 public void setSensitive(boolean sensitive) { 322 this.sensitive = sensitive; 323 } 324 getXmlNamespace()325 public XmlNamespace getXmlNamespace() { 326 return xmlNamespace; 327 } 328 setXmlNamespace(XmlNamespace xmlNamespace)329 public void setXmlNamespace(XmlNamespace xmlNamespace) { 330 this.xmlNamespace = xmlNamespace; 331 } 332 isDocument()333 public boolean isDocument() { 334 return document; 335 } 336 setDocument(boolean document)337 public void setDocument(boolean document) { 338 this.document = document; 339 } 340 isUnion()341 public boolean isUnion() { 342 return union; 343 } 344 setUnion(boolean union)345 public void setUnion(boolean union) { 346 this.union = union; 347 } 348 } 349