8
8
package software .amazon .awssdk .aws .greengrass .model ;
9
9
10
10
import com .google .gson .annotations .Expose ;
11
+ import java .lang .Boolean ;
11
12
import java .lang .Object ;
12
13
import java .lang .Override ;
13
14
import java .lang .String ;
@@ -47,10 +48,17 @@ public boolean isVoid() {
47
48
)
48
49
private Optional <String > versionStage ;
49
50
51
+ @ Expose (
52
+ serialize = true ,
53
+ deserialize = true
54
+ )
55
+ private Optional <Boolean > refresh ;
56
+
50
57
public GetSecretValueRequest () {
51
58
this .secretId = Optional .empty ();
52
59
this .versionId = Optional .empty ();
53
60
this .versionStage = Optional .empty ();
61
+ this .refresh = Optional .empty ();
54
62
}
55
63
56
64
/**
@@ -128,6 +136,31 @@ public GetSecretValueRequest withVersionStage(final String versionStage) {
128
136
return this ;
129
137
}
130
138
139
+ /**
140
+ * (Optional) Whether to fetch the latest secret from cloud when the request is handled. Defaults to false.
141
+ */
142
+ public Boolean isRefresh () {
143
+ if (refresh .isPresent ()) {
144
+ return refresh .get ();
145
+ }
146
+ return null ;
147
+ }
148
+
149
+ /**
150
+ * (Optional) Whether to fetch the latest secret from cloud when the request is handled. Defaults to false.
151
+ */
152
+ public void setRefresh (final Boolean refresh ) {
153
+ this .refresh = Optional .ofNullable (refresh );
154
+ }
155
+
156
+ /**
157
+ * (Optional) Whether to fetch the latest secret from cloud when the request is handled. Defaults to false.
158
+ */
159
+ public GetSecretValueRequest withRefresh (final Boolean refresh ) {
160
+ setRefresh (refresh );
161
+ return this ;
162
+ }
163
+
131
164
@ Override
132
165
public String getApplicationModelType () {
133
166
return APPLICATION_MODEL_TYPE ;
@@ -143,11 +176,12 @@ public boolean equals(Object rhs) {
143
176
isEquals = isEquals && this .secretId .equals (other .secretId );
144
177
isEquals = isEquals && this .versionId .equals (other .versionId );
145
178
isEquals = isEquals && this .versionStage .equals (other .versionStage );
179
+ isEquals = isEquals && this .refresh .equals (other .refresh );
146
180
return isEquals ;
147
181
}
148
182
149
183
@ Override
150
184
public int hashCode () {
151
- return Objects .hash (secretId , versionId , versionStage );
185
+ return Objects .hash (secretId , versionId , versionStage , refresh );
152
186
}
153
187
}
0 commit comments