2020@ JsonPropertyOrder ({
2121 SyntheticsTestRequestBodyFile .JSON_PROPERTY_BUCKET_KEY ,
2222 SyntheticsTestRequestBodyFile .JSON_PROPERTY_CONTENT ,
23+ SyntheticsTestRequestBodyFile .JSON_PROPERTY_ENCODING ,
2324 SyntheticsTestRequestBodyFile .JSON_PROPERTY_NAME ,
2425 SyntheticsTestRequestBodyFile .JSON_PROPERTY_ORIGINAL_FILE_NAME ,
2526 SyntheticsTestRequestBodyFile .JSON_PROPERTY_SIZE ,
@@ -35,6 +36,9 @@ public class SyntheticsTestRequestBodyFile {
3536 public static final String JSON_PROPERTY_CONTENT = "content" ;
3637 private String content ;
3738
39+ public static final String JSON_PROPERTY_ENCODING = "encoding" ;
40+ private String encoding ;
41+
3842 public static final String JSON_PROPERTY_NAME = "name" ;
3943 private String name ;
4044
@@ -89,6 +93,28 @@ public void setContent(String content) {
8993 this .content = content ;
9094 }
9195
96+ public SyntheticsTestRequestBodyFile encoding (String encoding ) {
97+ this .encoding = encoding ;
98+ return this ;
99+ }
100+
101+ /**
102+ * Encoding of the file content. The only supported value is <code>base64</code>, indicating the
103+ * <code>content</code> field contains base64-encoded data.
104+ *
105+ * @return encoding
106+ */
107+ @ jakarta .annotation .Nullable
108+ @ JsonProperty (JSON_PROPERTY_ENCODING )
109+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
110+ public String getEncoding () {
111+ return encoding ;
112+ }
113+
114+ public void setEncoding (String encoding ) {
115+ this .encoding = encoding ;
116+ }
117+
92118 public SyntheticsTestRequestBodyFile name (String name ) {
93119 this .name = name ;
94120 return this ;
@@ -231,6 +257,7 @@ public boolean equals(Object o) {
231257 SyntheticsTestRequestBodyFile syntheticsTestRequestBodyFile = (SyntheticsTestRequestBodyFile ) o ;
232258 return Objects .equals (this .bucketKey , syntheticsTestRequestBodyFile .bucketKey )
233259 && Objects .equals (this .content , syntheticsTestRequestBodyFile .content )
260+ && Objects .equals (this .encoding , syntheticsTestRequestBodyFile .encoding )
234261 && Objects .equals (this .name , syntheticsTestRequestBodyFile .name )
235262 && Objects .equals (this .originalFileName , syntheticsTestRequestBodyFile .originalFileName )
236263 && Objects .equals (this .size , syntheticsTestRequestBodyFile .size )
@@ -242,7 +269,7 @@ public boolean equals(Object o) {
242269 @ Override
243270 public int hashCode () {
244271 return Objects .hash (
245- bucketKey , content , name , originalFileName , size , type , additionalProperties );
272+ bucketKey , content , encoding , name , originalFileName , size , type , additionalProperties );
246273 }
247274
248275 @ Override
@@ -251,6 +278,7 @@ public String toString() {
251278 sb .append ("class SyntheticsTestRequestBodyFile {\n " );
252279 sb .append (" bucketKey: " ).append (toIndentedString (bucketKey )).append ("\n " );
253280 sb .append (" content: " ).append (toIndentedString (content )).append ("\n " );
281+ sb .append (" encoding: " ).append (toIndentedString (encoding )).append ("\n " );
254282 sb .append (" name: " ).append (toIndentedString (name )).append ("\n " );
255283 sb .append (" originalFileName: " ).append (toIndentedString (originalFileName )).append ("\n " );
256284 sb .append (" size: " ).append (toIndentedString (size )).append ("\n " );
0 commit comments