Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 683dd64

Browse files
author
Lucas McDonald
committedApr 10, 2025·
m
1 parent 655d6d7 commit 683dd64

File tree

8 files changed

+625
-641
lines changed

8 files changed

+625
-641
lines changed
 

‎DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/BeaconVersion.java

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class BeaconVersion {
1515
/**
1616
* The version of searchable encryption configured. This must be '1'.
1717
*/
18-
private final int version;
18+
private final Integer version;
1919

2020
/**
2121
* The Key Store that contains the Beacon Keys to use with searchable encryption.
@@ -66,7 +66,7 @@ protected BeaconVersion(BuilderImpl builder) {
6666
/**
6767
* @return The version of searchable encryption configured. This must be '1'.
6868
*/
69-
public int version() {
69+
public Integer version() {
7070
return this.version;
7171
}
7272

@@ -131,12 +131,12 @@ public interface Builder {
131131
/**
132132
* @param version The version of searchable encryption configured. This must be '1'.
133133
*/
134-
Builder version(int version);
134+
Builder version(Integer version);
135135

136136
/**
137137
* @return The version of searchable encryption configured. This must be '1'.
138138
*/
139-
int version();
139+
Integer version();
140140

141141
/**
142142
* @param keyStore The Key Store that contains the Beacon Keys to use with searchable encryption.
@@ -213,9 +213,7 @@ public interface Builder {
213213

214214
static class BuilderImpl implements Builder {
215215

216-
protected int version;
217-
218-
private boolean _versionSet = false;
216+
protected Integer version;
219217

220218
protected KeyStore keyStore;
221219

@@ -235,7 +233,6 @@ protected BuilderImpl() {}
235233

236234
protected BuilderImpl(BeaconVersion model) {
237235
this.version = model.version();
238-
this._versionSet = true;
239236
this.keyStore = model.keyStore();
240237
this.keySource = model.keySource();
241238
this.standardBeacons = model.standardBeacons();
@@ -245,13 +242,12 @@ protected BuilderImpl(BeaconVersion model) {
245242
this.signedParts = model.signedParts();
246243
}
247244

248-
public Builder version(int version) {
245+
public Builder version(Integer version) {
249246
this.version = version;
250-
this._versionSet = true;
251247
return this;
252248
}
253249

254-
public int version() {
250+
public Integer version() {
255251
return this.version;
256252
}
257253

@@ -319,12 +315,12 @@ public List<SignedPart> signedParts() {
319315
}
320316

321317
public BeaconVersion build() {
322-
if (!this._versionSet) {
318+
if (Objects.isNull(this.version())) {
323319
throw new IllegalArgumentException(
324320
"Missing value for required field `version`"
325321
);
326322
}
327-
if (this._versionSet && this.version() < 1) {
323+
if (Objects.nonNull(this.version()) && this.version() < 1) {
328324
throw new IllegalArgumentException(
329325
"`version` must be greater than or equal to 1"
330326
);

‎DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SearchConfig.java

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class SearchConfig {
1919
/**
2020
* The searchable encryption version to use when writing new items. Must be '1'.
2121
*/
22-
private final int writeVersion;
22+
private final Integer writeVersion;
2323

2424
protected SearchConfig(BuilderImpl builder) {
2525
this.versions = builder.versions();
@@ -36,7 +36,7 @@ public List<BeaconVersion> versions() {
3636
/**
3737
* @return The searchable encryption version to use when writing new items. Must be '1'.
3838
*/
39-
public int writeVersion() {
39+
public Integer writeVersion() {
4040
return this.writeVersion;
4141
}
4242

@@ -62,12 +62,12 @@ public interface Builder {
6262
/**
6363
* @param writeVersion The searchable encryption version to use when writing new items. Must be '1'.
6464
*/
65-
Builder writeVersion(int writeVersion);
65+
Builder writeVersion(Integer writeVersion);
6666

6767
/**
6868
* @return The searchable encryption version to use when writing new items. Must be '1'.
6969
*/
70-
int writeVersion();
70+
Integer writeVersion();
7171

7272
SearchConfig build();
7373
}
@@ -76,16 +76,13 @@ static class BuilderImpl implements Builder {
7676

7777
protected List<BeaconVersion> versions;
7878

79-
protected int writeVersion;
80-
81-
private boolean _writeVersionSet = false;
79+
protected Integer writeVersion;
8280

8381
protected BuilderImpl() {}
8482

8583
protected BuilderImpl(SearchConfig model) {
8684
this.versions = model.versions();
8785
this.writeVersion = model.writeVersion();
88-
this._writeVersionSet = true;
8986
}
9087

9188
public Builder versions(List<BeaconVersion> versions) {
@@ -97,13 +94,12 @@ public List<BeaconVersion> versions() {
9794
return this.versions;
9895
}
9996

100-
public Builder writeVersion(int writeVersion) {
97+
public Builder writeVersion(Integer writeVersion) {
10198
this.writeVersion = writeVersion;
102-
this._writeVersionSet = true;
10399
return this;
104100
}
105101

106-
public int writeVersion() {
102+
public Integer writeVersion() {
107103
return this.writeVersion;
108104
}
109105

@@ -123,12 +119,12 @@ public SearchConfig build() {
123119
"The size of `versions` must be less than or equal to 1"
124120
);
125121
}
126-
if (!this._writeVersionSet) {
122+
if (Objects.isNull(this.writeVersion())) {
127123
throw new IllegalArgumentException(
128124
"Missing value for required field `writeVersion`"
129125
);
130126
}
131-
if (this._writeVersionSet && this.writeVersion() < 1) {
127+
if (Objects.nonNull(this.writeVersion()) && this.writeVersion() < 1) {
132128
throw new IllegalArgumentException(
133129
"`writeVersion` must be greater than or equal to 1"
134130
);

‎DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/StandardBeacon.java

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class StandardBeacon {
1818
/**
1919
* The length of the calculated beacon.
2020
*/
21-
private final int length;
21+
private final Integer length;
2222

2323
/**
2424
* The DynamoDB document path to the value this beacon will calculate over. If not specified, the beacon will calculate values for the attribute with the name specified in 'name'.
@@ -47,7 +47,7 @@ public String name() {
4747
/**
4848
* @return The length of the calculated beacon.
4949
*/
50-
public int length() {
50+
public Integer length() {
5151
return this.length;
5252
}
5353

@@ -87,12 +87,12 @@ public interface Builder {
8787
/**
8888
* @param length The length of the calculated beacon.
8989
*/
90-
Builder length(int length);
90+
Builder length(Integer length);
9191

9292
/**
9393
* @return The length of the calculated beacon.
9494
*/
95-
int length();
95+
Integer length();
9696

9797
/**
9898
* @param loc The DynamoDB document path to the value this beacon will calculate over. If not specified, the beacon will calculate values for the attribute with the name specified in 'name'.
@@ -121,9 +121,7 @@ static class BuilderImpl implements Builder {
121121

122122
protected String name;
123123

124-
protected int length;
125-
126-
private boolean _lengthSet = false;
124+
protected Integer length;
127125

128126
protected String loc;
129127

@@ -134,7 +132,6 @@ protected BuilderImpl() {}
134132
protected BuilderImpl(StandardBeacon model) {
135133
this.name = model.name();
136134
this.length = model.length();
137-
this._lengthSet = true;
138135
this.loc = model.loc();
139136
this.style = model.style();
140137
}
@@ -148,13 +145,12 @@ public String name() {
148145
return this.name;
149146
}
150147

151-
public Builder length(int length) {
148+
public Builder length(Integer length) {
152149
this.length = length;
153-
this._lengthSet = true;
154150
return this;
155151
}
156152

157-
public int length() {
153+
public Integer length() {
158154
return this.length;
159155
}
160156

@@ -182,17 +178,17 @@ public StandardBeacon build() {
182178
"Missing value for required field `name`"
183179
);
184180
}
185-
if (!this._lengthSet) {
181+
if (Objects.isNull(this.length())) {
186182
throw new IllegalArgumentException(
187183
"Missing value for required field `length`"
188184
);
189185
}
190-
if (this._lengthSet && this.length() < 1) {
186+
if (Objects.nonNull(this.length()) && this.length() < 1) {
191187
throw new IllegalArgumentException(
192188
"`length` must be greater than or equal to 1"
193189
);
194190
}
195-
if (this._lengthSet && this.length() > 63) {
191+
if (Objects.nonNull(this.length()) && this.length() > 63) {
196192
throw new IllegalArgumentException(
197193
"`length` must be less than or equal to 63."
198194
);

‎DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ResolveAttributesInput.java

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class ResolveAttributesInput {
2222
/**
2323
* The beacon version to use. Defaults to 'writeVersion'.
2424
*/
25-
private final int Version;
25+
private final Integer Version;
2626

2727
protected ResolveAttributesInput(BuilderImpl builder) {
2828
this.TableName = builder.TableName();
@@ -47,7 +47,7 @@ public Map<String, AttributeValue> Item() {
4747
/**
4848
* @return The beacon version to use. Defaults to 'writeVersion'.
4949
*/
50-
public int Version() {
50+
public Integer Version() {
5151
return this.Version;
5252
}
5353

@@ -83,12 +83,12 @@ public interface Builder {
8383
/**
8484
* @param Version The beacon version to use. Defaults to 'writeVersion'.
8585
*/
86-
Builder Version(int Version);
86+
Builder Version(Integer Version);
8787

8888
/**
8989
* @return The beacon version to use. Defaults to 'writeVersion'.
9090
*/
91-
int Version();
91+
Integer Version();
9292

9393
ResolveAttributesInput build();
9494
}
@@ -99,17 +99,14 @@ static class BuilderImpl implements Builder {
9999

100100
protected Map<String, AttributeValue> Item;
101101

102-
protected int Version;
103-
104-
private boolean _VersionSet = false;
102+
protected Integer Version;
105103

106104
protected BuilderImpl() {}
107105

108106
protected BuilderImpl(ResolveAttributesInput model) {
109107
this.TableName = model.TableName();
110108
this.Item = model.Item();
111109
this.Version = model.Version();
112-
this._VersionSet = true;
113110
}
114111

115112
public Builder TableName(String TableName) {
@@ -130,13 +127,12 @@ public Map<String, AttributeValue> Item() {
130127
return this.Item;
131128
}
132129

133-
public Builder Version(int Version) {
130+
public Builder Version(Integer Version) {
134131
this.Version = Version;
135-
this._VersionSet = true;
136132
return this;
137133
}
138134

139-
public int Version() {
135+
public Integer Version() {
140136
return this.Version;
141137
}
142138

@@ -163,7 +159,7 @@ public ResolveAttributesInput build() {
163159
"Missing value for required field `Item`"
164160
);
165161
}
166-
if (this._VersionSet && this.Version() < 1) {
162+
if (Objects.nonNull(this.Version()) && this.Version() < 1) {
167163
throw new IllegalArgumentException(
168164
"`Version` must be greater than or equal to 1"
169165
);

‎DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/TypeConversion.cs

Lines changed: 144 additions & 144 deletions
Large diffs are not rendered by default.

‎DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryptionTransforms/TypeConversion.cs

Lines changed: 330 additions & 330 deletions
Large diffs are not rendered by default.

‎DynamoDbEncryption/runtimes/net/Generated/DynamoDbItemEncryptor/TypeConversion.cs

Lines changed: 56 additions & 56 deletions
Large diffs are not rendered by default.

‎DynamoDbEncryption/runtimes/net/Generated/StructuredEncryption/TypeConversion.cs

Lines changed: 59 additions & 59 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.