1414
1515import java .util .Objects ;
1616import java .util .Arrays ;
17+ import com .google .gson .TypeAdapter ;
18+ import com .google .gson .annotations .JsonAdapter ;
19+ import com .google .gson .annotations .SerializedName ;
20+ import com .google .gson .stream .JsonReader ;
21+ import com .google .gson .stream .JsonWriter ;
22+ import io .swagger .v3 .oas .annotations .media .Schema ;
23+ import java .io .IOException ;
1724import javax .validation .constraints .*;
1825import javax .validation .Valid ;
1926/**
2330
2431
2532public class ModifyDBEndpointDNSRequest {
33+ @ SerializedName ("DNSVisibility" )
34+ private Boolean dnSVisibility = null ;
35+
36+ @ SerializedName ("EndpointId" )
37+ private String endpointId = null ;
38+
39+ @ SerializedName ("InstanceId" )
40+ private String instanceId = null ;
41+
42+ /**
43+ * Gets or Sets networkType
44+ */
45+ @ JsonAdapter (NetworkTypeEnum .Adapter .class )
46+ public enum NetworkTypeEnum {
47+ @ SerializedName ("Private" )
48+ PRIVATE ("Private" );
49+
50+ private String value ;
51+
52+ NetworkTypeEnum (String value ) {
53+ this .value = value ;
54+ }
55+ public String getValue () {
56+ return value ;
57+ }
58+
59+ @ Override
60+ public String toString () {
61+ return String .valueOf (value );
62+ }
63+ public static NetworkTypeEnum fromValue (String input ) {
64+ for (NetworkTypeEnum b : NetworkTypeEnum .values ()) {
65+ if (b .value .equals (input )) {
66+ return b ;
67+ }
68+ }
69+ return null ;
70+ }
71+ public static class Adapter extends TypeAdapter <NetworkTypeEnum > {
72+ @ Override
73+ public void write (final JsonWriter jsonWriter , final NetworkTypeEnum enumeration ) throws IOException {
74+ jsonWriter .value (String .valueOf (enumeration .getValue ()));
75+ }
76+
77+ @ Override
78+ public NetworkTypeEnum read (final JsonReader jsonReader ) throws IOException {
79+ Object value = jsonReader .nextString ();
80+ return NetworkTypeEnum .fromValue ((String )(value ));
81+ }
82+ }
83+ } @ SerializedName ("NetworkType" )
84+ private NetworkTypeEnum networkType = null ;
85+
86+ public ModifyDBEndpointDNSRequest dnSVisibility (Boolean dnSVisibility ) {
87+ this .dnSVisibility = dnSVisibility ;
88+ return this ;
89+ }
90+
91+ /**
92+ * Get dnSVisibility
93+ * @return dnSVisibility
94+ **/
95+ @ NotNull
96+ @ Schema (required = true , description = "" )
97+ public Boolean isDnSVisibility () {
98+ return dnSVisibility ;
99+ }
100+
101+ public void setDnSVisibility (Boolean dnSVisibility ) {
102+ this .dnSVisibility = dnSVisibility ;
103+ }
104+
105+ public ModifyDBEndpointDNSRequest endpointId (String endpointId ) {
106+ this .endpointId = endpointId ;
107+ return this ;
108+ }
109+
110+ /**
111+ * Get endpointId
112+ * @return endpointId
113+ **/
114+ @ NotNull
115+ @ Schema (required = true , description = "" )
116+ public String getEndpointId () {
117+ return endpointId ;
118+ }
119+
120+ public void setEndpointId (String endpointId ) {
121+ this .endpointId = endpointId ;
122+ }
123+
124+ public ModifyDBEndpointDNSRequest instanceId (String instanceId ) {
125+ this .instanceId = instanceId ;
126+ return this ;
127+ }
128+
129+ /**
130+ * Get instanceId
131+ * @return instanceId
132+ **/
133+ @ NotNull
134+ @ Schema (required = true , description = "" )
135+ public String getInstanceId () {
136+ return instanceId ;
137+ }
138+
139+ public void setInstanceId (String instanceId ) {
140+ this .instanceId = instanceId ;
141+ }
142+
143+ public ModifyDBEndpointDNSRequest networkType (NetworkTypeEnum networkType ) {
144+ this .networkType = networkType ;
145+ return this ;
146+ }
147+
148+ /**
149+ * Get networkType
150+ * @return networkType
151+ **/
152+ @ NotNull
153+ @ Schema (required = true , description = "" )
154+ public NetworkTypeEnum getNetworkType () {
155+ return networkType ;
156+ }
157+
158+ public void setNetworkType (NetworkTypeEnum networkType ) {
159+ this .networkType = networkType ;
160+ }
161+
26162
27163 @ Override
28164 public boolean equals (java .lang .Object o ) {
@@ -32,12 +168,16 @@ public boolean equals(java.lang.Object o) {
32168 if (o == null || getClass () != o .getClass ()) {
33169 return false ;
34170 }
35- return true ;
171+ ModifyDBEndpointDNSRequest modifyDBEndpointDNSRequest = (ModifyDBEndpointDNSRequest ) o ;
172+ return Objects .equals (this .dnSVisibility , modifyDBEndpointDNSRequest .dnSVisibility ) &&
173+ Objects .equals (this .endpointId , modifyDBEndpointDNSRequest .endpointId ) &&
174+ Objects .equals (this .instanceId , modifyDBEndpointDNSRequest .instanceId ) &&
175+ Objects .equals (this .networkType , modifyDBEndpointDNSRequest .networkType );
36176 }
37177
38178 @ Override
39179 public int hashCode () {
40- return Objects .hash ();
180+ return Objects .hash (dnSVisibility , endpointId , instanceId , networkType );
41181 }
42182
43183
@@ -46,6 +186,10 @@ public String toString() {
46186 StringBuilder sb = new StringBuilder ();
47187 sb .append ("class ModifyDBEndpointDNSRequest {\n " );
48188
189+ sb .append (" dnSVisibility: " ).append (toIndentedString (dnSVisibility )).append ("\n " );
190+ sb .append (" endpointId: " ).append (toIndentedString (endpointId )).append ("\n " );
191+ sb .append (" instanceId: " ).append (toIndentedString (instanceId )).append ("\n " );
192+ sb .append (" networkType: " ).append (toIndentedString (networkType )).append ("\n " );
49193 sb .append ("}" );
50194 return sb .toString ();
51195 }
0 commit comments