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.List; 19 import java.util.Map; 20 import software.amazon.awssdk.codegen.checksum.HttpChecksum; 21 import software.amazon.awssdk.codegen.compression.RequestCompression; 22 import software.amazon.awssdk.codegen.model.intermediate.EndpointDiscovery; 23 24 public class Operation { 25 26 private String name; 27 28 private boolean deprecated; 29 30 private String deprecatedMessage; 31 32 private Http http; 33 34 private Input input; 35 36 private Output output; 37 38 private String documentation; 39 40 private String authorizer; 41 42 private List<ErrorMap> errors; 43 44 private EndpointDiscovery endpointdiscovery; 45 46 private boolean endpointoperation; 47 48 private EndpointTrait endpoint; 49 50 private AuthType authtype; 51 52 private List<String> auth; 53 54 private boolean httpChecksumRequired; 55 56 private HttpChecksum httpChecksum; 57 58 private RequestCompression requestcompression; 59 60 private Map<String, StaticContextParam> staticContextParams; 61 getName()62 public String getName() { 63 return name; 64 } 65 setName(String name)66 public void setName(String name) { 67 this.name = name; 68 } 69 withName(String name)70 public Operation withName(String name) { 71 this.name = name; 72 return this; 73 } 74 isDeprecated()75 public boolean isDeprecated() { 76 return deprecated; 77 } 78 setDeprecated(boolean deprecated)79 public void setDeprecated(boolean deprecated) { 80 this.deprecated = deprecated; 81 } 82 getDeprecatedMessage()83 public String getDeprecatedMessage() { 84 return deprecatedMessage; 85 } 86 setDeprecatedMessage(String deprecatedMessage)87 public void setDeprecatedMessage(String deprecatedMessage) { 88 this.deprecatedMessage = deprecatedMessage; 89 } 90 getHttp()91 public Http getHttp() { 92 return http; 93 } 94 setHttp(Http http)95 public void setHttp(Http http) { 96 this.http = http; 97 } 98 withHttp(Http http)99 public Operation withHttp(Http http) { 100 this.http = http; 101 return this; 102 } 103 getInput()104 public Input getInput() { 105 return input; 106 } 107 setInput(Input input)108 public void setInput(Input input) { 109 this.input = input; 110 } 111 withInput(Input input)112 public Operation withInput(Input input) { 113 this.input = input; 114 return this; 115 } 116 getOutput()117 public Output getOutput() { 118 return output; 119 } 120 setOutput(Output output)121 public void setOutput(Output output) { 122 this.output = output; 123 } 124 getDocumentation()125 public String getDocumentation() { 126 return documentation; 127 } 128 setDocumentation(String documentation)129 public void setDocumentation(String documentation) { 130 this.documentation = documentation; 131 } 132 getErrors()133 public List<ErrorMap> getErrors() { 134 return errors; 135 } 136 setErrors(List<ErrorMap> errors)137 public void setErrors(List<ErrorMap> errors) { 138 this.errors = errors; 139 } 140 getAuthtype()141 public AuthType getAuthtype() { 142 return authtype; 143 } 144 setAuthtype(String authtype)145 public void setAuthtype(String authtype) { 146 this.authtype = AuthType.fromValue(authtype); 147 } 148 getAuth()149 public List<String> getAuth() { 150 return auth; 151 } 152 setAuth(List<String> auth)153 public void setAuth(List<String> auth) { 154 this.auth = auth; 155 } 156 getAuthorizer()157 public String getAuthorizer() { 158 return authorizer; 159 } 160 setAuthorizer(String authorizer)161 public void setAuthorizer(String authorizer) { 162 this.authorizer = authorizer; 163 } 164 getEndpointdiscovery()165 public EndpointDiscovery getEndpointdiscovery() { 166 return endpointdiscovery; 167 } 168 setEndpointdiscovery(EndpointDiscovery endpointdiscovery)169 public void setEndpointdiscovery(EndpointDiscovery endpointdiscovery) { 170 this.endpointdiscovery = endpointdiscovery; 171 } 172 isEndpointoperation()173 public boolean isEndpointoperation() { 174 return endpointoperation; 175 } 176 setEndpointoperation(boolean endpointoperation)177 public void setEndpointoperation(boolean endpointoperation) { 178 this.endpointoperation = endpointoperation; 179 } 180 getEndpoint()181 public EndpointTrait getEndpoint() { 182 return endpoint; 183 } 184 setEndpoint(EndpointTrait endpoint)185 public void setEndpoint(EndpointTrait endpoint) { 186 this.endpoint = endpoint; 187 } 188 isHttpChecksumRequired()189 public boolean isHttpChecksumRequired() { 190 return httpChecksumRequired; 191 } 192 setHttpChecksumRequired(boolean httpChecksumRequired)193 public void setHttpChecksumRequired(boolean httpChecksumRequired) { 194 this.httpChecksumRequired = httpChecksumRequired; 195 } 196 getHttpChecksum()197 public HttpChecksum getHttpChecksum() { 198 return httpChecksum; 199 } 200 setHttpChecksum(HttpChecksum httpChecksum)201 public void setHttpChecksum(HttpChecksum httpChecksum) { 202 this.httpChecksum = httpChecksum; 203 } 204 getRequestcompression()205 public RequestCompression getRequestcompression() { 206 return requestcompression; 207 } 208 setRequestcompression(RequestCompression requestcompression)209 public void setRequestcompression(RequestCompression requestcompression) { 210 this.requestcompression = requestcompression; 211 } 212 getStaticContextParams()213 public Map<String, StaticContextParam> getStaticContextParams() { 214 return staticContextParams; 215 } 216 setStaticContextParams(Map<String, StaticContextParam> staticContextParams)217 public void setStaticContextParams(Map<String, StaticContextParam> staticContextParams) { 218 this.staticContextParams = staticContextParams; 219 } 220 } 221