2828 */
2929
3030
31+
3132public class AttachFileSystemForDescribeMountServicesOutput {
3233 @ SerializedName ("AccountId" )
3334 private String accountId = null ;
@@ -41,11 +42,57 @@ public class AttachFileSystemForDescribeMountServicesOutput {
4142 @ SerializedName ("FileSystemName" )
4243 private String fileSystemName = null ;
4344
44- @ SerializedName ("Status" )
45- private String status = null ;
45+ /**
46+ * Gets or Sets status
47+ */
48+ @ JsonAdapter (StatusEnum .Adapter .class )
49+ public enum StatusEnum {
50+ @ SerializedName ("Attaching" )
51+ ATTACHING ("Attaching" ),
52+ @ SerializedName ("AttachError" )
53+ ATTACHERROR ("AttachError" ),
54+ @ SerializedName ("Attached" )
55+ ATTACHED ("Attached" ),
56+ @ SerializedName ("Detaching" )
57+ DETACHING ("Detaching" ),
58+ @ SerializedName ("DetachError" )
59+ DETACHERROR ("DetachError" );
60+
61+ private String value ;
62+
63+ StatusEnum (String value ) {
64+ this .value = value ;
65+ }
66+ public String getValue () {
67+ return value ;
68+ }
4669
47- @ SerializedName ("Type" )
48- private String type = null ;
70+ @ Override
71+ public String toString () {
72+ return String .valueOf (value );
73+ }
74+ public static StatusEnum fromValue (String input ) {
75+ for (StatusEnum b : StatusEnum .values ()) {
76+ if (b .value .equals (input )) {
77+ return b ;
78+ }
79+ }
80+ return null ;
81+ }
82+ public static class Adapter extends TypeAdapter <StatusEnum > {
83+ @ Override
84+ public void write (final JsonWriter jsonWriter , final StatusEnum enumeration ) throws IOException {
85+ jsonWriter .value (String .valueOf (enumeration .getValue ()));
86+ }
87+
88+ @ Override
89+ public StatusEnum read (final JsonReader jsonReader ) throws IOException {
90+ Object value = jsonReader .nextString ();
91+ return StatusEnum .fromValue ((String )(value ));
92+ }
93+ }
94+ } @ SerializedName ("Status" )
95+ private StatusEnum status = null ;
4996
5097 public AttachFileSystemForDescribeMountServicesOutput accountId (String accountId ) {
5198 this .accountId = accountId ;
@@ -119,7 +166,7 @@ public void setFileSystemName(String fileSystemName) {
119166 this .fileSystemName = fileSystemName ;
120167 }
121168
122- public AttachFileSystemForDescribeMountServicesOutput status (String status ) {
169+ public AttachFileSystemForDescribeMountServicesOutput status (StatusEnum status ) {
123170 this .status = status ;
124171 return this ;
125172 }
@@ -129,32 +176,14 @@ public AttachFileSystemForDescribeMountServicesOutput status(String status) {
129176 * @return status
130177 **/
131178 @ Schema (description = "" )
132- public String getStatus () {
179+ public StatusEnum getStatus () {
133180 return status ;
134181 }
135182
136- public void setStatus (String status ) {
183+ public void setStatus (StatusEnum status ) {
137184 this .status = status ;
138185 }
139186
140- public AttachFileSystemForDescribeMountServicesOutput type (String type ) {
141- this .type = type ;
142- return this ;
143- }
144-
145- /**
146- * Get type
147- * @return type
148- **/
149- @ Schema (description = "" )
150- public String getType () {
151- return type ;
152- }
153-
154- public void setType (String type ) {
155- this .type = type ;
156- }
157-
158187
159188 @ Override
160189 public boolean equals (java .lang .Object o ) {
@@ -169,13 +198,12 @@ public boolean equals(java.lang.Object o) {
169198 Objects .equals (this .customerPath , attachFileSystemForDescribeMountServicesOutput .customerPath ) &&
170199 Objects .equals (this .fileSystemId , attachFileSystemForDescribeMountServicesOutput .fileSystemId ) &&
171200 Objects .equals (this .fileSystemName , attachFileSystemForDescribeMountServicesOutput .fileSystemName ) &&
172- Objects .equals (this .status , attachFileSystemForDescribeMountServicesOutput .status ) &&
173- Objects .equals (this .type , attachFileSystemForDescribeMountServicesOutput .type );
201+ Objects .equals (this .status , attachFileSystemForDescribeMountServicesOutput .status );
174202 }
175203
176204 @ Override
177205 public int hashCode () {
178- return Objects .hash (accountId , customerPath , fileSystemId , fileSystemName , status , type );
206+ return Objects .hash (accountId , customerPath , fileSystemId , fileSystemName , status );
179207 }
180208
181209
@@ -189,7 +217,6 @@ public String toString() {
189217 sb .append (" fileSystemId: " ).append (toIndentedString (fileSystemId )).append ("\n " );
190218 sb .append (" fileSystemName: " ).append (toIndentedString (fileSystemName )).append ("\n " );
191219 sb .append (" status: " ).append (toIndentedString (status )).append ("\n " );
192- sb .append (" type: " ).append (toIndentedString (type )).append ("\n " );
193220 sb .append ("}" );
194221 return sb .toString ();
195222 }
0 commit comments