Skip to content

Commit 7e488cf

Browse files
author
BitsAdmin
committed
Merge 'kms-Java-2021-02-18-online-1950-2025_12_17_16_38_05' into 'integration_2025-12-22_1095874065666'
feat: [development task] kms-1950-Java (1958918) See merge request: !809
2 parents 3a4048f + 1474055 commit 7e488cf

File tree

2 files changed

+53
-3
lines changed

2 files changed

+53
-3
lines changed

volcengine-java-sdk-kms/src/main/java/com/volcengine/kms/model/CreateKeyRequest.java

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ public class CreateKeyRequest {
6060
@SerializedName("ProtectionLevel")
6161
private String protectionLevel = null;
6262

63+
@SerializedName("RotateInterval")
64+
private Integer rotateInterval = null;
65+
6366
@SerializedName("RotateState")
6467
private String rotateState = null;
6568

@@ -233,6 +236,26 @@ public void setProtectionLevel(String protectionLevel) {
233236
this.protectionLevel = protectionLevel;
234237
}
235238

239+
public CreateKeyRequest rotateInterval(Integer rotateInterval) {
240+
this.rotateInterval = rotateInterval;
241+
return this;
242+
}
243+
244+
/**
245+
* Get rotateInterval
246+
* minimum: 90
247+
* maximum: 2560
248+
* @return rotateInterval
249+
**/
250+
@Min(90) @Max(2560) @Schema(description = "")
251+
public Integer getRotateInterval() {
252+
return rotateInterval;
253+
}
254+
255+
public void setRotateInterval(Integer rotateInterval) {
256+
this.rotateInterval = rotateInterval;
257+
}
258+
236259
public CreateKeyRequest rotateState(String rotateState) {
237260
this.rotateState = rotateState;
238261
return this;
@@ -315,14 +338,15 @@ public boolean equals(java.lang.Object o) {
315338
Objects.equals(this.multiRegion, createKeyRequest.multiRegion) &&
316339
Objects.equals(this.origin, createKeyRequest.origin) &&
317340
Objects.equals(this.protectionLevel, createKeyRequest.protectionLevel) &&
341+
Objects.equals(this.rotateInterval, createKeyRequest.rotateInterval) &&
318342
Objects.equals(this.rotateState, createKeyRequest.rotateState) &&
319343
Objects.equals(this.tags, createKeyRequest.tags) &&
320344
Objects.equals(this.xksKeyID, createKeyRequest.xksKeyID);
321345
}
322346

323347
@Override
324348
public int hashCode() {
325-
return Objects.hash(customKeyStoreID, description, keyName, keySpec, keyUsage, keyringName, multiRegion, origin, protectionLevel, rotateState, tags, xksKeyID);
349+
return Objects.hash(customKeyStoreID, description, keyName, keySpec, keyUsage, keyringName, multiRegion, origin, protectionLevel, rotateInterval, rotateState, tags, xksKeyID);
326350
}
327351

328352

@@ -340,6 +364,7 @@ public String toString() {
340364
sb.append(" multiRegion: ").append(toIndentedString(multiRegion)).append("\n");
341365
sb.append(" origin: ").append(toIndentedString(origin)).append("\n");
342366
sb.append(" protectionLevel: ").append(toIndentedString(protectionLevel)).append("\n");
367+
sb.append(" rotateInterval: ").append(toIndentedString(rotateInterval)).append("\n");
343368
sb.append(" rotateState: ").append(toIndentedString(rotateState)).append("\n");
344369
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
345370
sb.append(" xksKeyID: ").append(toIndentedString(xksKeyID)).append("\n");

volcengine-java-sdk-kms/src/main/java/com/volcengine/kms/model/EnableKeyRotationRequest.java

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public class EnableKeyRotationRequest {
3939
@SerializedName("KeyringName")
4040
private String keyringName = null;
4141

42+
@SerializedName("RotateInterval")
43+
private Integer rotateInterval = null;
44+
4245
public EnableKeyRotationRequest keyID(String keyID) {
4346
this.keyID = keyID;
4447
return this;
@@ -93,6 +96,26 @@ public void setKeyringName(String keyringName) {
9396
this.keyringName = keyringName;
9497
}
9598

99+
public EnableKeyRotationRequest rotateInterval(Integer rotateInterval) {
100+
this.rotateInterval = rotateInterval;
101+
return this;
102+
}
103+
104+
/**
105+
* Get rotateInterval
106+
* minimum: 90
107+
* maximum: 2560
108+
* @return rotateInterval
109+
**/
110+
@Min(90) @Max(2560) @Schema(description = "")
111+
public Integer getRotateInterval() {
112+
return rotateInterval;
113+
}
114+
115+
public void setRotateInterval(Integer rotateInterval) {
116+
this.rotateInterval = rotateInterval;
117+
}
118+
96119

97120
@Override
98121
public boolean equals(java.lang.Object o) {
@@ -105,12 +128,13 @@ public boolean equals(java.lang.Object o) {
105128
EnableKeyRotationRequest enableKeyRotationRequest = (EnableKeyRotationRequest) o;
106129
return Objects.equals(this.keyID, enableKeyRotationRequest.keyID) &&
107130
Objects.equals(this.keyName, enableKeyRotationRequest.keyName) &&
108-
Objects.equals(this.keyringName, enableKeyRotationRequest.keyringName);
131+
Objects.equals(this.keyringName, enableKeyRotationRequest.keyringName) &&
132+
Objects.equals(this.rotateInterval, enableKeyRotationRequest.rotateInterval);
109133
}
110134

111135
@Override
112136
public int hashCode() {
113-
return Objects.hash(keyID, keyName, keyringName);
137+
return Objects.hash(keyID, keyName, keyringName, rotateInterval);
114138
}
115139

116140

@@ -122,6 +146,7 @@ public String toString() {
122146
sb.append(" keyID: ").append(toIndentedString(keyID)).append("\n");
123147
sb.append(" keyName: ").append(toIndentedString(keyName)).append("\n");
124148
sb.append(" keyringName: ").append(toIndentedString(keyringName)).append("\n");
149+
sb.append(" rotateInterval: ").append(toIndentedString(rotateInterval)).append("\n");
125150
sb.append("}");
126151
return sb.toString();
127152
}

0 commit comments

Comments
 (0)