diff --git a/.github/actions/polymorph_codegen/action.yml b/.github/actions/polymorph_codegen/action.yml new file mode 100644 index 000000000..f5801d9df --- /dev/null +++ b/.github/actions/polymorph_codegen/action.yml @@ -0,0 +1,144 @@ +# +# This local action serves two purposes: +# +# 1. For core workflows like pull.yml and push.yml, +# it is uses to check that the checked in copy of generated code +# matches what the current submodule version of smithy-dafny generates. +# This is important to ensure whenever someone changes the models +# or needs to regenerate to pick up smithy-dafny improvements, +# they don't have to deal with unpleasant surprises. +# +# 2. For workflows that check compatibility with other Dafny versions, +# such as nightly_dafny.yml, it is necessary to regenerate the code +# for that version of Dafny first. +# This is ultimately because some of the code smithy-dafny generates +# is tightly coupled to what code Dafny itself generates. +# A concrete example is that Dafny 4.3 added TypeDescriptors +# as parameters when constructing datatypes like Option and Result. +# +# This is why this is a composite action instead of a reusable workflow: +# the latter executes in a separate runner environment, +# but here we need to actually overwrite the generated code in place +# so that subsequent steps can work correctly. +# +# This action assumes that the given version of Dafny and .NET 6.0.x +# have already been set up, since they are used to format generated code. +# +# Note that recursively generating code doesn't currently work in this repo +# with the version of the mpl pinned by the submodule, +# because the SharedMakefileV2.mk in it doesn't work with newer versions of smithy-dafny. +# Therefore by default we don't recursively regenerate code +# (accomplished by setting the POLYMORPH_DEPENDENCIES environment variable to ""). +# If `update-and-regenerate-mpl` is true, we first pull the latest mpl, +# which is necessary both for Makefile compatibility and so we can regenerate mpl code +# for compatibility with newer versions of Dafny. +# + +name: "Polymorph code generation" +description: "Regenerates code using smithy-dafny, and optionally checks that the result matches the checked in state" +inputs: + dafny: + description: "The Dafny version to run" + required: true + type: string + library: + description: "Name of the library to regenerate code for" + required: true + type: string + diff-generated-code: + description: "Diff regenerated code against committed state" + required: true + type: boolean + update-and-regenerate-mpl: + description: "Locally update MPL to the tip of master and regenerate its code too" + required: false + default: false + type: boolean +runs: + using: "composite" + steps: + - name: Update MPL submodule locally if requested + if: inputs.update-and-regenerate-mpl == 'true' + working-directory: submodules/MaterialProviders + shell: bash + run: | + git checkout main + git pull + git submodule update --init --recursive + + - name: Update top-level project.properties file in MPL + if: inputs.update-and-regenerate-mpl == 'true' + shell: bash + working-directory: submodules/MaterialProviders + run: | + make generate_properties_file + + # Update the project.properties file so that we pick up the right runtimes etc., + # in cases where inputs.dafny is different from the current value in that file. + - name: Generate smithy-dafny-project.properties file + if: inputs.update-and-regenerate-mpl == 'true' + env: + DAFNY_VERSION: ${{ inputs.dafny }} + shell: bash + run: | + make generate_properties_file + + - name: Update top-level project.properties file + if: inputs.update-and-regenerate-mpl == 'true' + shell: bash + run: | + awk -F= '!a[$1]++' smithy-dafny-project.properties project.properties > merged.properties + mv merged.properties project.properties + cat project.properties + + - name: Don't regenerate dependencies unless requested + id: dependencies + shell: bash + run: | + echo "PROJECT_DEPENDENCIES=${{ inputs.update-and-regenerate-mpl != 'true' && 'PROJECT_DEPENDENCIES=' || '' }}" >> $GITHUB_OUTPUT + + - name: Regenerate Dafny code using smithy-dafny + # Unfortunately Dafny codegen doesn't work on Windows: + # https://github.com/smithy-lang/smithy-dafny/issues/317 + if: runner.os != 'Windows' + working-directory: ./${{ inputs.library }} + shell: bash + run: | + make polymorph_dafny ${{ steps.dependencies.outputs.PROJECT_DEPENDENCIES }} + + - name: Set up prettier in MPL + if: inputs.update-and-regenerate-mpl == 'true' + shell: bash + # Annoyingly, prettier has to be installed in each library individually. + # And this is only necessary or even possible if we've updated the mpl submodule. + run: | + make -C submodules/MaterialProviders/AwsCryptographyPrimitives setup_prettier + make -C submodules/MaterialProviders/AwsCryptographicMaterialProviders setup_prettier + make -C submodules/MaterialProviders/ComAmazonawsKms setup_prettier + make -C submodules/MaterialProviders/ComAmazonawsDynamodb setup_prettier + + - name: Regenerate Java code using smithy-dafny + # npx seems to be unavailable on Windows GHA runners, + # so we don't regenerate Java code on them either. + if: runner.os != 'Windows' + working-directory: ./${{ inputs.library }} + shell: bash + # smithy-dafny also formats generated code itself now, + # so prettier is a necessary dependency. + run: | + make setup_prettier + make polymorph_java ${{ steps.dependencies.outputs.PROJECT_DEPENDENCIES }} + + - name: Regenerate .NET code using smithy-dafny + working-directory: ./${{ inputs.library }} + shell: bash + run: | + make polymorph_dotnet ${{ steps.dependencies.outputs.PROJECT_DEPENDENCIES }} + + - name: Check regenerated code against commited code + # Composite action inputs seem to not actually support booleans properly for some reason + if: inputs.diff-generated-code == 'true' + working-directory: ./${{ inputs.library }} + shell: bash + run: | + make check_polymorph_diff diff --git a/.github/workflows/ci_codegen.yml b/.github/workflows/ci_codegen.yml new file mode 100644 index 000000000..f835adc6c --- /dev/null +++ b/.github/workflows/ci_codegen.yml @@ -0,0 +1,56 @@ +# This workflow regenerates code using smithy-dafny and checks that the output matches what's checked in. +name: Library Code Generation +on: + pull_request: + push: + branches: + - main + +jobs: + code-generation: + strategy: + fail-fast: false + matrix: + library: + [ + DynamoDbEncryption, + TestVectors + ] + # Note dotnet is only used for formatting generated code + # in this workflow + dotnet-version: ["6.0.x"] + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + defaults: + run: + shell: bash + env: + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_NOLOGO: 1 + steps: + - name: Support longpaths + run: | + git config --global core.longpaths true + + - uses: actions/checkout@v3 + with: + submodules: recursive + + # Only used to format generated code + # and to translate version strings such as "nightly-latest" + # to an actual DAFNY_VERSION. + - name: Setup Dafny + uses: dafny-lang/setup-dafny-action@v1.7.0 + with: + dafny-version: 4.2.0 + + - name: Setup .NET Core SDK ${{ matrix.dotnet-version }} + uses: actions/setup-dotnet@v3 + with: + dotnet-version: ${{ matrix.dotnet-version }} + + - uses: ./.github/actions/polymorph_codegen + with: + dafny: ${{ env.DAFNY_VERSION }} + library: ${{ matrix.library }} + diff-generated-code: true diff --git a/.github/workflows/ci_test_java.yml b/.github/workflows/ci_test_java.yml index 0746c6b86..202af284b 100644 --- a/.github/workflows/ci_test_java.yml +++ b/.github/workflows/ci_test_java.yml @@ -58,6 +58,15 @@ jobs: # A && B || C is the closest thing to an if .. then ... else ... or ?: expression the GitHub Actions syntax supports. dafny-version: ${{ (github.event_name == 'schedule' || inputs.nightly) && 'nightly-latest' || '4.2.0' }} + - name: Regenerate code using smithy-dafny if necessary + if: ${{ inputs.nightly }} + uses: ./.github/actions/polymorph_codegen + with: + dafny: ${{ env.DAFNY_VERSION }} + library: ${{ matrix.library }} + diff-generated-code: false + update-and-regenerate-mpl: true + - name: Setup Java ${{ matrix.java-version }} uses: actions/setup-java@v4 with: diff --git a/.github/workflows/ci_test_net.yml b/.github/workflows/ci_test_net.yml index 91a114911..4a895600b 100644 --- a/.github/workflows/ci_test_net.yml +++ b/.github/workflows/ci_test_net.yml @@ -65,6 +65,15 @@ jobs: # A && B || C is the closest thing to an if .. then ... else ... or ?: expression the GitHub Actions syntax supports. dafny-version: ${{ (github.event_name == 'schedule' || inputs.nightly) && 'nightly-latest' || '4.2.0' }} + - name: Regenerate code using smithy-dafny if necessary + if: ${{ inputs.nightly }} + uses: ./.github/actions/polymorph_codegen + with: + dafny: ${{ env.DAFNY_VERSION }} + library: ${{ matrix.library }} + diff-generated-code: false + update-and-regenerate-mpl: true + - name: Download Dependencies working-directory: ./${{ matrix.library }} run: make setup_net diff --git a/.github/workflows/ci_verification.yml b/.github/workflows/ci_verification.yml index c6617803c..5086af96c 100644 --- a/.github/workflows/ci_verification.yml +++ b/.github/workflows/ci_verification.yml @@ -28,6 +28,7 @@ jobs: # Don't run the nightly build on forks if: github.event_name != 'schedule' || github.repository_owner == 'aws' strategy: + fail-fast: false matrix: # Break up verification between namespaces over multiple # actions to take advantage of parallelization @@ -51,8 +52,17 @@ jobs: with: # A && B || C is the closest thing to an if .. then ... else ... or ?: expression the GitHub Actions syntax supports. dafny-version: ${{ (github.event_name == 'schedule' || inputs.nightly) && 'nightly-latest' || '4.2.0' }} + + - name: Regenerate code using smithy-dafny if necessary + if: ${{ inputs.nightly }} + uses: ./.github/actions/polymorph_codegen + with: + dafny: ${{ env.DAFNY_VERSION }} + library: DynamoDbEncryption + diff-generated-code: false + update-and-regenerate-mpl: true - - name: Verify ${{ matrix.library }} Dafny code + - name: Verify ${{ matrix.service }} Dafny code shell: bash working-directory: ./DynamoDbEncryption run: | diff --git a/DynamoDbEncryption/codegen-patches/DynamoDbEncryption/dotnet/dafny-4.2.0.patch b/DynamoDbEncryption/codegen-patches/DynamoDbEncryption/dotnet/dafny-4.2.0.patch new file mode 100644 index 000000000..e777b5f4a --- /dev/null +++ b/DynamoDbEncryption/codegen-patches/DynamoDbEncryption/dotnet/dafny-4.2.0.patch @@ -0,0 +1,48 @@ +diff --git b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/TypeConversion.cs a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/TypeConversion.cs +index 9a951767..5c0cee33 100644 +--- b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/TypeConversion.cs ++++ a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/TypeConversion.cs +@@ -7,6 +7,43 @@ namespace AWS.Cryptography.DbEncryptionSDK.DynamoDb + { + public static class TypeConversion + { ++ // BEGIN MANUAL EDIT ++ public static AWS.Cryptography.KeyStore.KeyStore FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S17_KeyStoreReference(software.amazon.cryptography.keystore.internaldafny.types.IKeyStoreClient value) ++ { ++ if (value is software.amazon.cryptography.keystore.internaldafny.types.IKeyStoreClient dafnyValue) ++ { ++ return new AWS.Cryptography.KeyStore.KeyStore(dafnyValue); ++ } ++ throw new System.ArgumentException("Custom implementations of AWS.Cryptography.KeyStore.KeyStore are not supported yet"); ++ } ++ public static software.amazon.cryptography.keystore.internaldafny.types.IKeyStoreClient ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S17_KeyStoreReference(AWS.Cryptography.KeyStore.KeyStore value) ++ { ++ if (value is AWS.Cryptography.KeyStore.KeyStore nativeValue) ++ { ++ return nativeValue.impl(); ++ } ++ throw new System.ArgumentException("Custom implementations of AWS.Cryptography.KeyStore.KeyStore are not supported yet"); ++ } ++ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.ILegacyDynamoDbEncryptor FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S32_LegacyDynamoDbEncryptorReference(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor value) ++ { ++ if (value is NativeWrapper_LegacyDynamoDbEncryptor nativeWrapper) return nativeWrapper._impl; ++ return new LegacyDynamoDbEncryptor(value); ++ ++ } ++ public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S32_LegacyDynamoDbEncryptorReference(AWS.Cryptography.DbEncryptionSDK.DynamoDb.ILegacyDynamoDbEncryptor value) ++ { ++ switch (value) ++ { ++ case LegacyDynamoDbEncryptor valueWithImpl: ++ return valueWithImpl._impl; ++ case LegacyDynamoDbEncryptorBase nativeImpl: ++ return new NativeWrapper_LegacyDynamoDbEncryptor(nativeImpl); ++ default: ++ throw new System.ArgumentException( ++ "Custom implementations of LegacyDynamoDbEncryptor must extend LegacyDynamoDbEncryptorBase."); ++ } ++ } ++ // END MANUAL EDIT + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconKeySource FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_BeaconKeySource(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IBeaconKeySource value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconKeySource concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconKeySource)value; diff --git a/DynamoDbEncryption/dafny/DynamoDbEncryption/Model/AwsCryptographyDbEncryptionSdkDynamoDbTypes.dfy b/DynamoDbEncryption/dafny/DynamoDbEncryption/Model/AwsCryptographyDbEncryptionSdkDynamoDbTypes.dfy index eda70a9d0..ee2f298ac 100644 --- a/DynamoDbEncryption/dafny/DynamoDbEncryption/Model/AwsCryptographyDbEncryptionSdkDynamoDbTypes.dfy +++ b/DynamoDbEncryption/dafny/DynamoDbEncryption/Model/AwsCryptographyDbEncryptionSdkDynamoDbTypes.dfy @@ -453,17 +453,17 @@ abstract module AbstractAwsCryptographyDbEncryptionSdkDynamoDbService import Operations : AbstractAwsCryptographyDbEncryptionSdkDynamoDbOperations function method DefaultDynamoDbEncryptionConfig(): DynamoDbEncryptionConfig method DynamoDbEncryption(config: DynamoDbEncryptionConfig := DefaultDynamoDbEncryptionConfig()) - returns (res: Result) + returns (res: Result) ensures res.Success? ==> && fresh(res.value) && fresh(res.value.Modifies) && fresh(res.value.History) && res.value.ValidState() - // Helper function for the benefit of native code to create a Success(client) without referring to Dafny internals + // Helper functions for the benefit of native code to create a Success(client) without referring to Dafny internals function method CreateSuccessOfClient(client: IDynamoDbEncryptionClient): Result { Success(client) - } // Helper function for the benefit of native code to create a Failure(error) without referring to Dafny internals + } function method CreateFailureOfError(error: Error): Result { Failure(error) } diff --git a/DynamoDbEncryption/dafny/DynamoDbEncryption/src/Beacon.dfy b/DynamoDbEncryption/dafny/DynamoDbEncryption/src/Beacon.dfy index aa7ee172f..93fe32e16 100644 --- a/DynamoDbEncryption/dafny/DynamoDbEncryption/src/Beacon.dfy +++ b/DynamoDbEncryption/dafny/DynamoDbEncryption/src/Beacon.dfy @@ -439,17 +439,4 @@ module BaseBeacon { else [HexChar(TruncateNibble(bytes[0] % 16, topBits))] + ToHexString(bytes[1..]) } - - lemma {:vcs_split_on_every_assert} CheckBytesToHex() - ensures - && var bytes := [1,2,3,4,5,6,7,0xb7]; - && BytesToHex(bytes, 1) == "1" - && BytesToHex(bytes, 2) == "3" - && BytesToHex(bytes, 3) == "7" - && BytesToHex(bytes, 4) == "7" - && BytesToHex(bytes, 5) == "17" - && BytesToHex(bytes, 6) == "37" - && BytesToHex(bytes, 7) == "37" - && BytesToHex(bytes, 8) == "b7" - {} } diff --git a/DynamoDbEncryption/dafny/DynamoDbEncryption/src/Index.dfy b/DynamoDbEncryption/dafny/DynamoDbEncryption/src/Index.dfy index 814be59c6..8faa05326 100644 --- a/DynamoDbEncryption/dafny/DynamoDbEncryption/src/Index.dfy +++ b/DynamoDbEncryption/dafny/DynamoDbEncryption/src/Index.dfy @@ -28,7 +28,7 @@ module } method DynamoDbEncryption(config: DynamoDbEncryptionConfig) - returns (res: Result) + returns (res: Result) ensures res.Success? ==> res.value is DynamoDbEncryptionClient { var internalConfig := Operations.Config(); diff --git a/DynamoDbEncryption/dafny/DynamoDbEncryption/test/Beacon.dfy b/DynamoDbEncryption/dafny/DynamoDbEncryption/test/Beacon.dfy index 83ae833cb..7c4391d40 100644 --- a/DynamoDbEncryption/dafny/DynamoDbEncryption/test/Beacon.dfy +++ b/DynamoDbEncryption/dafny/DynamoDbEncryption/test/Beacon.dfy @@ -739,4 +739,20 @@ module TestBaseBeacon { var src := GetLiteralSource([1,2,3,4,5], version); var bv :- expect C.ConvertVersionWithSource(FullTableConfig, version, src); } + + method {:test} CheckBytesToHex() + { + var bytes := [1,2,3,4,5,6,7,0xb7]; + // These could be asserted instead, + // but they get too expensive + // on more recent versions of Dafny. + expect BytesToHex(bytes, 1) == "1"; + expect BytesToHex(bytes, 2) == "3"; + expect BytesToHex(bytes, 3) == "7"; + expect BytesToHex(bytes, 4) == "7"; + expect BytesToHex(bytes, 5) == "17"; + expect BytesToHex(bytes, 6) == "37"; + expect BytesToHex(bytes, 7) == "37"; + expect BytesToHex(bytes, 8) == "b7"; + } } diff --git a/DynamoDbEncryption/dafny/DynamoDbEncryption/test/BeaconTestFixtures.dfy b/DynamoDbEncryption/dafny/DynamoDbEncryption/test/BeaconTestFixtures.dfy index fb9bff6fe..b96e0d566 100644 --- a/DynamoDbEncryption/dafny/DynamoDbEncryption/test/BeaconTestFixtures.dfy +++ b/DynamoDbEncryption/dafny/DynamoDbEncryption/test/BeaconTestFixtures.dfy @@ -211,6 +211,7 @@ module BeaconTestFixtures { ensures fresh(output.client.Modifies) { var client :- expect Primitives.AtomicPrimitives(); + var keyNameSet := set b <- version.standardBeacons :: b.name; var keyNames := SortedSets.ComputeSetToOrderedSequence2(keyNameSet, CharLess); var keys :- expect SI.GetHmacKeys(client, keyNames, keyNames, key); diff --git a/DynamoDbEncryption/dafny/DynamoDbEncryptionTransforms/Model/AwsCryptographyDbEncryptionSdkDynamoDbTransformsTypes.dfy b/DynamoDbEncryption/dafny/DynamoDbEncryptionTransforms/Model/AwsCryptographyDbEncryptionSdkDynamoDbTransformsTypes.dfy index b2c21ac3f..1ffa8b553 100644 --- a/DynamoDbEncryption/dafny/DynamoDbEncryptionTransforms/Model/AwsCryptographyDbEncryptionSdkDynamoDbTransformsTypes.dfy +++ b/DynamoDbEncryption/dafny/DynamoDbEncryptionTransforms/Model/AwsCryptographyDbEncryptionSdkDynamoDbTransformsTypes.dfy @@ -740,8 +740,7 @@ abstract module AbstractAwsCryptographyDbEncryptionSdkDynamoDbTransformsService import Operations : AbstractAwsCryptographyDbEncryptionSdkDynamoDbTransformsOperations function method DefaultDynamoDbTablesEncryptionConfig(): AwsCryptographyDbEncryptionSdkDynamoDbTypes.DynamoDbTablesEncryptionConfig method DynamoDbEncryptionTransforms(config: AwsCryptographyDbEncryptionSdkDynamoDbTypes.DynamoDbTablesEncryptionConfig := DefaultDynamoDbTablesEncryptionConfig()) - returns (res: Result) - // BEGIN MANUAL EDIT + returns (res: Result) requires var tmps0 := set t0 | t0 in config.tableEncryptionConfigs.Values; forall tmp0 :: tmp0 in tmps0 ==> tmp0.keyring.Some? ==> @@ -760,108 +759,67 @@ abstract module AbstractAwsCryptographyDbEncryptionSdkDynamoDbTransformsService var tmps4 := set t4 | t4 in tmp3.search.value.versions; forall tmp4 :: tmp4 in tmps4 ==> tmp4.keyStore.ValidState() - modifies var tmps5 := set t5 | t5 in config.tableEncryptionConfigs.Values - && t5.keyring.Some? - :: t5.keyring.value; - var tmps5FlattenedModifiesSet: set> := set t0 - | t0 in tmps5 :: t0.Modifies; - (set tmp6ModifyEntry, tmp6Modifies | - tmp6Modifies in tmps5FlattenedModifiesSet - && tmp6ModifyEntry in tmp6Modifies - :: tmp6ModifyEntry) - modifies var tmps7 := set t7 | t7 in config.tableEncryptionConfigs.Values - && t7.cmm.Some? - :: t7.cmm.value; - var tmps7FlattenedModifiesSet: set> := set t0 - | t0 in tmps7 :: t0.Modifies; - (set tmp8ModifyEntry, tmp8Modifies | - tmp8Modifies in tmps7FlattenedModifiesSet - && tmp8ModifyEntry in tmp8Modifies - :: tmp8ModifyEntry) - modifies var tmps9 := set t9 | t9 in config.tableEncryptionConfigs.Values - && t9.legacyOverride.Some? - :: t9.legacyOverride.value.encryptor; - var tmps9FlattenedModifiesSet: set> := set t0 - | t0 in tmps9 :: t0.Modifies; - (set tmp10ModifyEntry, tmp10Modifies | - tmp10Modifies in tmps9FlattenedModifiesSet - && tmp10ModifyEntry in tmp10Modifies - :: tmp10ModifyEntry) - modifies var tmps11 := set t11 | t11 in config.tableEncryptionConfigs.Values - && t11.search.Some? - :: set t12 | t12 in t11.search.value.versions :: t12.keyStore; - var tmps11FlattenedModifiesSet: set> := set t0 - , t1 | t0 in tmps11 && t1 in t0 :: t1.Modifies; - (set tmp13ModifyEntry, tmp13Modifies | - tmp13Modifies in tmps11FlattenedModifiesSet - && tmp13ModifyEntry in tmp13Modifies - :: tmp13ModifyEntry) + modifies set tmps5 <- set t5 <- config.tableEncryptionConfigs.Values | true + && t5.keyring.Some? + :: t5.keyring.value, + obj <- tmps5.Modifies | obj in tmps5.Modifies :: obj + modifies set tmps6 <- set t6 <- config.tableEncryptionConfigs.Values | true + && t6.cmm.Some? + :: t6.cmm.value, + obj <- tmps6.Modifies | obj in tmps6.Modifies :: obj + modifies set tmps7 <- set t7 <- config.tableEncryptionConfigs.Values | true + && t7.legacyOverride.Some? + :: t7.legacyOverride.value.encryptor, + obj <- tmps7.Modifies | obj in tmps7.Modifies :: obj + modifies set tmps8 <- set t8 <- config.tableEncryptionConfigs.Values | true + && t8.search.Some? + , t9 <- t8.search.value.versions :: t9.keyStore, + obj <- tmps8.Modifies | obj in tmps8.Modifies :: obj ensures res.Success? ==> && fresh(res.value) && fresh(res.value.Modifies - - ( var tmps14 := set t14 | t14 in config.tableEncryptionConfigs.Values - && t14.keyring.Some? - :: t14.keyring.value; - var tmps14FlattenedModifiesSet: set> := set t0 - | t0 in tmps14 :: t0.Modifies; - (set tmp15ModifyEntry, tmp15Modifies | - tmp15Modifies in tmps14FlattenedModifiesSet - && tmp15ModifyEntry in tmp15Modifies - :: tmp15ModifyEntry) - ) - ( var tmps16 := set t16 | t16 in config.tableEncryptionConfigs.Values - && t16.cmm.Some? - :: t16.cmm.value; - var tmps16FlattenedModifiesSet: set> := set t0 - | t0 in tmps16 :: t0.Modifies; - (set tmp17ModifyEntry, tmp17Modifies | - tmp17Modifies in tmps16FlattenedModifiesSet - && tmp17ModifyEntry in tmp17Modifies - :: tmp17ModifyEntry) - ) - ( var tmps18 := set t18 | t18 in config.tableEncryptionConfigs.Values - && t18.legacyOverride.Some? - :: t18.legacyOverride.value.encryptor; - var tmps18FlattenedModifiesSet: set> := set t0 - | t0 in tmps18 :: t0.Modifies; - (set tmp19ModifyEntry, tmp19Modifies | - tmp19Modifies in tmps18FlattenedModifiesSet - && tmp19ModifyEntry in tmp19Modifies - :: tmp19ModifyEntry) - ) - ( var tmps20 := set t20 | t20 in config.tableEncryptionConfigs.Values - && t20.search.Some? - :: set t21 | t21 in t20.search.value.versions :: t21.keyStore; - var tmps20FlattenedModifiesSet: set> := set t0 - , t1 | t0 in tmps20 && t1 in t0 :: t1.Modifies; - (set tmp22ModifyEntry, tmp22Modifies | - tmp22Modifies in tmps20FlattenedModifiesSet - && tmp22ModifyEntry in tmp22Modifies - :: tmp22ModifyEntry) + - ( set tmps10 <- set t10 <- config.tableEncryptionConfigs.Values | true + && t10.keyring.Some? + :: t10.keyring.value, + obj <- tmps10.Modifies | obj in tmps10.Modifies :: obj + ) - ( set tmps11 <- set t11 <- config.tableEncryptionConfigs.Values | true + && t11.cmm.Some? + :: t11.cmm.value, + obj <- tmps11.Modifies | obj in tmps11.Modifies :: obj + ) - ( set tmps12 <- set t12 <- config.tableEncryptionConfigs.Values | true + && t12.legacyOverride.Some? + :: t12.legacyOverride.value.encryptor, + obj <- tmps12.Modifies | obj in tmps12.Modifies :: obj + ) - ( set tmps13 <- set t13 <- config.tableEncryptionConfigs.Values | true + && t13.search.Some? + , t14 <- t13.search.value.versions :: t14.keyStore, + obj <- tmps13.Modifies | obj in tmps13.Modifies :: obj ) ) && fresh(res.value.History) && res.value.ValidState() - ensures var tmps23 := set t23 | t23 in config.tableEncryptionConfigs.Values; - forall tmp23 :: tmp23 in tmps23 ==> - tmp23.keyring.Some? ==> - tmp23.keyring.value.ValidState() - ensures var tmps24 := set t24 | t24 in config.tableEncryptionConfigs.Values; - forall tmp24 :: tmp24 in tmps24 ==> - tmp24.cmm.Some? ==> - tmp24.cmm.value.ValidState() - ensures var tmps25 := set t25 | t25 in config.tableEncryptionConfigs.Values; - forall tmp25 :: tmp25 in tmps25 ==> - tmp25.legacyOverride.Some? ==> - tmp25.legacyOverride.value.encryptor.ValidState() - ensures var tmps26 := set t26 | t26 in config.tableEncryptionConfigs.Values; - forall tmp26 :: tmp26 in tmps26 ==> - tmp26.search.Some? ==> - var tmps27 := set t27 | t27 in tmp26.search.value.versions; - forall tmp27 :: tmp27 in tmps27 ==> - tmp27.keyStore.ValidState() - // END MANUAL EDIT - - // Helper function for the benefit of native code to create a Success(client) without referring to Dafny internals + ensures var tmps15 := set t15 | t15 in config.tableEncryptionConfigs.Values; + forall tmp15 :: tmp15 in tmps15 ==> + tmp15.keyring.Some? ==> + tmp15.keyring.value.ValidState() + ensures var tmps16 := set t16 | t16 in config.tableEncryptionConfigs.Values; + forall tmp16 :: tmp16 in tmps16 ==> + tmp16.cmm.Some? ==> + tmp16.cmm.value.ValidState() + ensures var tmps17 := set t17 | t17 in config.tableEncryptionConfigs.Values; + forall tmp17 :: tmp17 in tmps17 ==> + tmp17.legacyOverride.Some? ==> + tmp17.legacyOverride.value.encryptor.ValidState() + ensures var tmps18 := set t18 | t18 in config.tableEncryptionConfigs.Values; + forall tmp18 :: tmp18 in tmps18 ==> + tmp18.search.Some? ==> + var tmps19 := set t19 | t19 in tmp18.search.value.versions; + forall tmp19 :: tmp19 in tmps19 ==> + tmp19.keyStore.ValidState() + + // Helper functions for the benefit of native code to create a Success(client) without referring to Dafny internals function method CreateSuccessOfClient(client: IDynamoDbEncryptionTransformsClient): Result { Success(client) - } // Helper function for the benefit of native code to create a Failure(error) without referring to Dafny internals + } function method CreateFailureOfError(error: Error): Result { Failure(error) } diff --git a/DynamoDbEncryption/dafny/DynamoDbEncryptionTransforms/src/Index.dfy b/DynamoDbEncryption/dafny/DynamoDbEncryptionTransforms/src/Index.dfy index 75aba7222..44feaad03 100644 --- a/DynamoDbEncryption/dafny/DynamoDbEncryptionTransforms/src/Index.dfy +++ b/DynamoDbEncryption/dafny/DynamoDbEncryptionTransforms/src/Index.dfy @@ -102,7 +102,7 @@ module } method {:vcs_split_on_every_assert} DynamoDbEncryptionTransforms(config: AwsCryptographyDbEncryptionSdkDynamoDbTypes.DynamoDbTablesEncryptionConfig) - returns (res: Result) + returns (res: Result) //= specification/dynamodb-encryption-client/ddb-table-encryption-config.md#logical-table-name //= type=implication //# When mapping [DynamoDB Table Names](#dynamodb-table-name) to [logical table name](#logical-table-name) diff --git a/DynamoDbEncryption/dafny/DynamoDbItemEncryptor/Model/AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptorTypes.dfy b/DynamoDbEncryption/dafny/DynamoDbItemEncryptor/Model/AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptorTypes.dfy index 7e57a65e5..8ce36d14e 100644 --- a/DynamoDbEncryption/dafny/DynamoDbItemEncryptor/Model/AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptorTypes.dfy +++ b/DynamoDbEncryption/dafny/DynamoDbItemEncryptor/Model/AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptorTypes.dfy @@ -171,7 +171,7 @@ abstract module AbstractAwsCryptographyDbEncryptionSdkDynamoDbItemEncryptorServi import Operations : AbstractAwsCryptographyDbEncryptionSdkDynamoDbItemEncryptorOperations function method DefaultDynamoDbItemEncryptorConfig(): DynamoDbItemEncryptorConfig method DynamoDbItemEncryptor(config: DynamoDbItemEncryptorConfig := DefaultDynamoDbItemEncryptorConfig()) - returns (res: Result) + returns (res: Result) requires config.keyring.Some? ==> config.keyring.value.ValidState() requires config.cmm.Some? ==> @@ -209,10 +209,10 @@ abstract module AbstractAwsCryptographyDbEncryptionSdkDynamoDbItemEncryptorServi ensures config.legacyOverride.Some? ==> config.legacyOverride.value.encryptor.ValidState() - // Helper function for the benefit of native code to create a Success(client) without referring to Dafny internals + // Helper functions for the benefit of native code to create a Success(client) without referring to Dafny internals function method CreateSuccessOfClient(client: IDynamoDbItemEncryptorClient): Result { Success(client) - } // Helper function for the benefit of native code to create a Failure(error) without referring to Dafny internals + } function method CreateFailureOfError(error: Error): Result { Failure(error) } diff --git a/DynamoDbEncryption/dafny/DynamoDbItemEncryptor/src/Index.dfy b/DynamoDbEncryption/dafny/DynamoDbItemEncryptor/src/Index.dfy index 6e61cbf9a..0c8dc3566 100644 --- a/DynamoDbEncryption/dafny/DynamoDbItemEncryptor/src/Index.dfy +++ b/DynamoDbEncryption/dafny/DynamoDbItemEncryptor/src/Index.dfy @@ -45,7 +45,7 @@ module } method {:vcs_split_on_every_assert} DynamoDbItemEncryptor(config: DynamoDbItemEncryptorConfig) - returns (res: Result) + returns (res: Result) ensures res.Success? ==> && res.value is DynamoDbItemEncryptorClient && var rconfig := (res.value as DynamoDbItemEncryptorClient).config; diff --git a/DynamoDbEncryption/dafny/StructuredEncryption/Model/AwsCryptographyDbEncryptionSdkStructuredEncryptionTypes.dfy b/DynamoDbEncryption/dafny/StructuredEncryption/Model/AwsCryptographyDbEncryptionSdkStructuredEncryptionTypes.dfy index 4c88de3b4..e587f7f8a 100644 --- a/DynamoDbEncryption/dafny/StructuredEncryption/Model/AwsCryptographyDbEncryptionSdkStructuredEncryptionTypes.dfy +++ b/DynamoDbEncryption/dafny/StructuredEncryption/Model/AwsCryptographyDbEncryptionSdkStructuredEncryptionTypes.dfy @@ -222,17 +222,17 @@ abstract module AbstractAwsCryptographyDbEncryptionSdkStructuredEncryptionServic import Operations : AbstractAwsCryptographyDbEncryptionSdkStructuredEncryptionOperations function method DefaultStructuredEncryptionConfig(): StructuredEncryptionConfig method StructuredEncryption(config: StructuredEncryptionConfig := DefaultStructuredEncryptionConfig()) - returns (res: Result) + returns (res: Result) ensures res.Success? ==> && fresh(res.value) && fresh(res.value.Modifies) && fresh(res.value.History) && res.value.ValidState() - // Helper function for the benefit of native code to create a Success(client) without referring to Dafny internals + // Helper functions for the benefit of native code to create a Success(client) without referring to Dafny internals function method CreateSuccessOfClient(client: IStructuredEncryptionClient): Result { Success(client) - } // Helper function for the benefit of native code to create a Failure(error) without referring to Dafny internals + } function method CreateFailureOfError(error: Error): Result { Failure(error) } diff --git a/DynamoDbEncryption/dafny/StructuredEncryption/src/AwsCryptographyDbEncryptionSdkStructuredEncryptionOperations.dfy b/DynamoDbEncryption/dafny/StructuredEncryption/src/AwsCryptographyDbEncryptionSdkStructuredEncryptionOperations.dfy index 8661e3712..28f4dc14d 100644 --- a/DynamoDbEncryption/dafny/StructuredEncryption/src/AwsCryptographyDbEncryptionSdkStructuredEncryptionOperations.dfy +++ b/DynamoDbEncryption/dafny/StructuredEncryption/src/AwsCryptographyDbEncryptionSdkStructuredEncryptionOperations.dfy @@ -356,17 +356,17 @@ module AwsCryptographyDbEncryptionSdkStructuredEncryptionOperations refines Abst var newSchema := CryptoSchemaContent.SchemaMap(trimmedSchema); assert |data_c| == |newSchema.SchemaMap|; - Success( - EncryptCanonData( - encFields_c, - signedFields_c, - data_c, - CryptoSchema( - content := newSchema, - attributes := None - ) - ) - ) + var canon := EncryptCanonData( + encFields_c, + signedFields_c, + data_c, + CryptoSchema( + content := newSchema, + attributes := None + ) + ); + assert ValidEncryptCanon?(canon); + Success(canon) } // construct the DecryptCanon diff --git a/DynamoDbEncryption/dafny/StructuredEncryption/src/Index.dfy b/DynamoDbEncryption/dafny/StructuredEncryption/src/Index.dfy index 58136cdee..c0ab990f1 100644 --- a/DynamoDbEncryption/dafny/StructuredEncryption/src/Index.dfy +++ b/DynamoDbEncryption/dafny/StructuredEncryption/src/Index.dfy @@ -18,22 +18,27 @@ module } method StructuredEncryption(config: StructuredEncryptionConfig) - returns (res: Result) + returns (res: Result) ensures res.Success? ==> res.value is StructuredEncryptionClient { var maybePrimitives := Primitives.AtomicPrimitives(); var primitives :- maybePrimitives.MapFailure(e => AwsCryptographyPrimitives(e)); + var maybeMatProv := MaterialProviders.MaterialProviders(); var matProv :- maybeMatProv.MapFailure(e => AwsCryptographyMaterialProviders(e)); + var client := new StructuredEncryptionClient(Operations.Config(primitives := primitives, materialProviders := matProv)); return Success(client); } + + class StructuredEncryptionClient... { predicate ValidState() { && Operations.ValidInternalConfig?(config) + && History !in Operations.ModifiesInternalConfig(config) && Modifies == Operations.ModifiesInternalConfig(config) + {History} } diff --git a/DynamoDbEncryption/dafny/StructuredEncryption/test/HappyCaseTests.dfy b/DynamoDbEncryption/dafny/StructuredEncryption/test/HappyCaseTests.dfy index 45f4bdd26..7e3346a12 100644 --- a/DynamoDbEncryption/dafny/StructuredEncryption/test/HappyCaseTests.dfy +++ b/DynamoDbEncryption/dafny/StructuredEncryption/test/HappyCaseTests.dfy @@ -64,6 +64,7 @@ module HappyCaseTests { expect decryptRes.Success?; var newResult := decryptRes.value.plaintextStructure.content; var testResult := StructuredDataTestFixtures.TEST_STRUCTURED_DATA.content; + expect newResult.DataMap?; expect newResult.DataMap == testResult.DataMap; //= specification/structured-encryption/decrypt-structure.md#construct-decrypted-structured-data diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/DynamoDbEncryption.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/DynamoDbEncryption.java index b44d6b65a..df1ae96f0 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/DynamoDbEncryption.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/DynamoDbEncryption.java @@ -6,6 +6,7 @@ import Wrappers_Compile.Result; import java.lang.IllegalArgumentException; import java.util.Objects; +import software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.DynamoDbEncryptionClient; import software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.__default; import software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error; import software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbEncryptionClient; @@ -14,12 +15,15 @@ import software.amazon.cryptography.dbencryptionsdk.dynamodb.model.DynamoDbEncryptionConfig; public class DynamoDbEncryption { + private final IDynamoDbEncryptionClient _impl; protected DynamoDbEncryption(BuilderImpl builder) { DynamoDbEncryptionConfig input = builder.DynamoDbEncryptionConfig(); - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbEncryptionConfig dafnyValue = ToDafny.DynamoDbEncryptionConfig(input); - Result result = __default.DynamoDbEncryption(dafnyValue); + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbEncryptionConfig dafnyValue = + ToDafny.DynamoDbEncryptionConfig(input); + Result result = + __default.DynamoDbEncryption(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -41,13 +45,21 @@ public static Builder builder() { * @return Outputs for creating a Branch Key Supplier from a DynamoDB Key Branch Key Id Supplier */ public CreateDynamoDbEncryptionBranchKeyIdSupplierOutput CreateDynamoDbEncryptionBranchKeyIdSupplier( - CreateDynamoDbEncryptionBranchKeyIdSupplierInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CreateDynamoDbEncryptionBranchKeyIdSupplierInput dafnyValue = ToDafny.CreateDynamoDbEncryptionBranchKeyIdSupplierInput(input); - Result result = this._impl.CreateDynamoDbEncryptionBranchKeyIdSupplier(dafnyValue); + CreateDynamoDbEncryptionBranchKeyIdSupplierInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CreateDynamoDbEncryptionBranchKeyIdSupplierInput dafnyValue = + ToDafny.CreateDynamoDbEncryptionBranchKeyIdSupplierInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput, + Error + > result = + this._impl.CreateDynamoDbEncryptionBranchKeyIdSupplier(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } - return ToNative.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput(result.dtor_value()); + return ToNative.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput( + result.dtor_value() + ); } protected IDynamoDbEncryptionClient impl() { @@ -55,7 +67,9 @@ protected IDynamoDbEncryptionClient impl() { } public interface Builder { - Builder DynamoDbEncryptionConfig(DynamoDbEncryptionConfig DynamoDbEncryptionConfig); + Builder DynamoDbEncryptionConfig( + DynamoDbEncryptionConfig DynamoDbEncryptionConfig + ); DynamoDbEncryptionConfig DynamoDbEncryptionConfig(); @@ -63,12 +77,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected DynamoDbEncryptionConfig DynamoDbEncryptionConfig; - protected BuilderImpl() { - } + protected BuilderImpl() {} - public Builder DynamoDbEncryptionConfig(DynamoDbEncryptionConfig DynamoDbEncryptionConfig) { + public Builder DynamoDbEncryptionConfig( + DynamoDbEncryptionConfig DynamoDbEncryptionConfig + ) { this.DynamoDbEncryptionConfig = DynamoDbEncryptionConfig; return this; } @@ -78,8 +94,10 @@ public DynamoDbEncryptionConfig DynamoDbEncryptionConfig() { } public DynamoDbEncryption build() { - if (Objects.isNull(this.DynamoDbEncryptionConfig())) { - throw new IllegalArgumentException("Missing value for required field `DynamoDbEncryptionConfig`"); + if (Objects.isNull(this.DynamoDbEncryptionConfig())) { + throw new IllegalArgumentException( + "Missing value for required field `DynamoDbEncryptionConfig`" + ); } return new DynamoDbEncryption(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/DynamoDbKeyBranchKeyIdSupplier.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/DynamoDbKeyBranchKeyIdSupplier.java index cbb65800e..732ab1d55 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/DynamoDbKeyBranchKeyIdSupplier.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/DynamoDbKeyBranchKeyIdSupplier.java @@ -11,31 +11,46 @@ import software.amazon.cryptography.dbencryptionsdk.dynamodb.model.GetBranchKeyIdFromDdbKeyInput; import software.amazon.cryptography.dbencryptionsdk.dynamodb.model.GetBranchKeyIdFromDdbKeyOutput; -public final class DynamoDbKeyBranchKeyIdSupplier implements IDynamoDbKeyBranchKeyIdSupplier { +public final class DynamoDbKeyBranchKeyIdSupplier + implements IDynamoDbKeyBranchKeyIdSupplier { + private final software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier _impl; private DynamoDbKeyBranchKeyIdSupplier( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier iDynamoDbKeyBranchKeyIdSupplier) { - Objects.requireNonNull(iDynamoDbKeyBranchKeyIdSupplier, "Missing value for required argument `iDynamoDbKeyBranchKeyIdSupplier`"); + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier iDynamoDbKeyBranchKeyIdSupplier + ) { + Objects.requireNonNull( + iDynamoDbKeyBranchKeyIdSupplier, + "Missing value for required argument `iDynamoDbKeyBranchKeyIdSupplier`" + ); this._impl = iDynamoDbKeyBranchKeyIdSupplier; } public static DynamoDbKeyBranchKeyIdSupplier wrap( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier iDynamoDbKeyBranchKeyIdSupplier) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier iDynamoDbKeyBranchKeyIdSupplier + ) { return new DynamoDbKeyBranchKeyIdSupplier(iDynamoDbKeyBranchKeyIdSupplier); } - public static DynamoDbKeyBranchKeyIdSupplier wrap( - I iDynamoDbKeyBranchKeyIdSupplier) { - Objects.requireNonNull(iDynamoDbKeyBranchKeyIdSupplier, "Missing value for required argument `iDynamoDbKeyBranchKeyIdSupplier`"); - if (iDynamoDbKeyBranchKeyIdSupplier instanceof software.amazon.cryptography.dbencryptionsdk.dynamodb.DynamoDbKeyBranchKeyIdSupplier) { + public static < + I extends IDynamoDbKeyBranchKeyIdSupplier + > DynamoDbKeyBranchKeyIdSupplier wrap(I iDynamoDbKeyBranchKeyIdSupplier) { + Objects.requireNonNull( + iDynamoDbKeyBranchKeyIdSupplier, + "Missing value for required argument `iDynamoDbKeyBranchKeyIdSupplier`" + ); + if ( + iDynamoDbKeyBranchKeyIdSupplier instanceof + software.amazon.cryptography.dbencryptionsdk.dynamodb.DynamoDbKeyBranchKeyIdSupplier + ) { return ((DynamoDbKeyBranchKeyIdSupplier) iDynamoDbKeyBranchKeyIdSupplier); } - return DynamoDbKeyBranchKeyIdSupplier.wrap(new NativeWrapper(iDynamoDbKeyBranchKeyIdSupplier)); + return DynamoDbKeyBranchKeyIdSupplier.wrap( + new NativeWrapper(iDynamoDbKeyBranchKeyIdSupplier) + ); } - public software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier impl( - ) { + public software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier impl() { return this._impl; } @@ -46,39 +61,60 @@ public software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types * @return Outputs for getting the Branch Key that should be used for wrapping and unwrapping data keys. */ public GetBranchKeyIdFromDdbKeyOutput GetBranchKeyIdFromDdbKey( - GetBranchKeyIdFromDdbKeyInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyInput dafnyValue = ToDafny.GetBranchKeyIdFromDdbKeyInput(input); - Result result = this._impl.GetBranchKeyIdFromDdbKey(dafnyValue); + GetBranchKeyIdFromDdbKeyInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyInput dafnyValue = + ToDafny.GetBranchKeyIdFromDdbKeyInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyOutput, + Error + > result = this._impl.GetBranchKeyIdFromDdbKey(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } return ToNative.GetBranchKeyIdFromDdbKeyOutput(result.dtor_value()); } - protected static final class NativeWrapper implements software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier { + protected static final class NativeWrapper + implements + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier { + protected final IDynamoDbKeyBranchKeyIdSupplier _impl; NativeWrapper(IDynamoDbKeyBranchKeyIdSupplier nativeImpl) { if (nativeImpl instanceof DynamoDbKeyBranchKeyIdSupplier) { - throw new IllegalArgumentException("Recursive wrapping is strictly forbidden."); + throw new IllegalArgumentException( + "Recursive wrapping is strictly forbidden." + ); } this._impl = nativeImpl; } - public Result GetBranchKeyIdFromDdbKey( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyInput dafnyInput) { - GetBranchKeyIdFromDdbKeyInput nativeInput = ToNative.GetBranchKeyIdFromDdbKeyInput(dafnyInput); + public Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyOutput, + Error + > GetBranchKeyIdFromDdbKey( + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyInput dafnyInput + ) { try { - GetBranchKeyIdFromDdbKeyOutput nativeOutput = this._impl.GetBranchKeyIdFromDdbKey(nativeInput); - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyOutput dafnyOutput = ToDafny.GetBranchKeyIdFromDdbKeyOutput(nativeOutput); + GetBranchKeyIdFromDdbKeyInput nativeInput = + ToNative.GetBranchKeyIdFromDdbKeyInput(dafnyInput); + GetBranchKeyIdFromDdbKeyOutput nativeOutput = + this._impl.GetBranchKeyIdFromDdbKey(nativeInput); + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyOutput dafnyOutput = + ToDafny.GetBranchKeyIdFromDdbKeyOutput(nativeOutput); return Result.create_Success(dafnyOutput); } catch (RuntimeException ex) { return Result.create_Failure(ToDafny.Error(ex)); } } - public Result GetBranchKeyIdFromDdbKey_k( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyInput dafnyInput) { + public Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyOutput, + Error + > GetBranchKeyIdFromDdbKey_k( + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyInput dafnyInput + ) { throw new RuntimeException("Not supported at this time."); } } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/IDynamoDbKeyBranchKeyIdSupplier.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/IDynamoDbKeyBranchKeyIdSupplier.java index e6ddaba2c..7cb53b848 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/IDynamoDbKeyBranchKeyIdSupplier.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/IDynamoDbKeyBranchKeyIdSupplier.java @@ -13,5 +13,7 @@ public interface IDynamoDbKeyBranchKeyIdSupplier { * @param input Inputs for getting the Branch Key that should be used for wrapping and unwrapping data keys. * @return Outputs for getting the Branch Key that should be used for wrapping and unwrapping data keys. */ - GetBranchKeyIdFromDdbKeyOutput GetBranchKeyIdFromDdbKey(GetBranchKeyIdFromDdbKeyInput input); + GetBranchKeyIdFromDdbKeyOutput GetBranchKeyIdFromDdbKey( + GetBranchKeyIdFromDdbKeyInput input + ); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/ILegacyDynamoDbEncryptor.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/ILegacyDynamoDbEncryptor.java index 825d315a4..f7c4ee5e9 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/ILegacyDynamoDbEncryptor.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/ILegacyDynamoDbEncryptor.java @@ -3,5 +3,4 @@ // Do not modify this file. This file is machine generated, and any changes to it will be overwritten. package software.amazon.cryptography.dbencryptionsdk.dynamodb; -public interface ILegacyDynamoDbEncryptor { -} +public interface ILegacyDynamoDbEncryptor {} diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/LegacyDynamoDbEncryptor.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/LegacyDynamoDbEncryptor.java index 07ac066d6..e73ed1165 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/LegacyDynamoDbEncryptor.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/LegacyDynamoDbEncryptor.java @@ -7,39 +7,58 @@ import java.util.Objects; public final class LegacyDynamoDbEncryptor implements ILegacyDynamoDbEncryptor { + private final software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor _impl; private LegacyDynamoDbEncryptor( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor iLegacyDynamoDbEncryptor) { - Objects.requireNonNull(iLegacyDynamoDbEncryptor, "Missing value for required argument `iLegacyDynamoDbEncryptor`"); + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor iLegacyDynamoDbEncryptor + ) { + Objects.requireNonNull( + iLegacyDynamoDbEncryptor, + "Missing value for required argument `iLegacyDynamoDbEncryptor`" + ); this._impl = iLegacyDynamoDbEncryptor; } public static LegacyDynamoDbEncryptor wrap( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor iLegacyDynamoDbEncryptor) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor iLegacyDynamoDbEncryptor + ) { return new LegacyDynamoDbEncryptor(iLegacyDynamoDbEncryptor); } - public static LegacyDynamoDbEncryptor wrap( - I iLegacyDynamoDbEncryptor) { - Objects.requireNonNull(iLegacyDynamoDbEncryptor, "Missing value for required argument `iLegacyDynamoDbEncryptor`"); - if (iLegacyDynamoDbEncryptor instanceof software.amazon.cryptography.dbencryptionsdk.dynamodb.LegacyDynamoDbEncryptor) { + public static < + I extends ILegacyDynamoDbEncryptor + > LegacyDynamoDbEncryptor wrap(I iLegacyDynamoDbEncryptor) { + Objects.requireNonNull( + iLegacyDynamoDbEncryptor, + "Missing value for required argument `iLegacyDynamoDbEncryptor`" + ); + if ( + iLegacyDynamoDbEncryptor instanceof + software.amazon.cryptography.dbencryptionsdk.dynamodb.LegacyDynamoDbEncryptor + ) { return ((LegacyDynamoDbEncryptor) iLegacyDynamoDbEncryptor); } - return LegacyDynamoDbEncryptor.wrap(new NativeWrapper(iLegacyDynamoDbEncryptor)); + return LegacyDynamoDbEncryptor.wrap( + new NativeWrapper(iLegacyDynamoDbEncryptor) + ); } - public software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor impl( - ) { + public software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor impl() { return this._impl; } - protected static final class NativeWrapper implements software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor { + protected static final class NativeWrapper + implements + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor { + protected final ILegacyDynamoDbEncryptor _impl; NativeWrapper(ILegacyDynamoDbEncryptor nativeImpl) { if (nativeImpl instanceof LegacyDynamoDbEncryptor) { - throw new IllegalArgumentException("Recursive wrapping is strictly forbidden."); + throw new IllegalArgumentException( + "Recursive wrapping is strictly forbidden." + ); } this._impl = nativeImpl; } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/ToDafny.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/ToDafny.java index b3e5ccf18..fd041a8a3 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/ToDafny.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/ToDafny.java @@ -68,6 +68,7 @@ import software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValue; public class ToDafny { + public static Error Error(RuntimeException nativeValue) { if (nativeValue instanceof DynamoDbEncryptionException) { return ToDafny.Error((DynamoDbEncryptionException) nativeValue); @@ -86,201 +87,366 @@ public static Error Error(OpaqueError nativeValue) { } public static Error Error(CollectionOfErrors nativeValue) { - DafnySequence list = software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( - nativeValue.list(), - ToDafny::Error, - Error._typeDescriptor()); - DafnySequence message = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.getMessage()); + DafnySequence list = + software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( + nativeValue.list(), + ToDafny::Error, + Error._typeDescriptor() + ); + DafnySequence message = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.getMessage() + ); return Error.create_CollectionOfErrors(list, message); } public static AsSet AsSet( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.AsSet nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.AsSet nativeValue + ) { return new AsSet(); } public static BeaconVersion BeaconVersion( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.BeaconVersion nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.BeaconVersion nativeValue + ) { Integer version; version = (nativeValue.version()); IKeyStoreClient keyStore; - keyStore = software.amazon.cryptography.keystore.ToDafny.KeyStore(nativeValue.keyStore()); + keyStore = + software.amazon.cryptography.keystore.ToDafny.KeyStore( + nativeValue.keyStore() + ); BeaconKeySource keySource; keySource = ToDafny.BeaconKeySource(nativeValue.keySource()); DafnySequence standardBeacons; standardBeacons = ToDafny.StandardBeaconList(nativeValue.standardBeacons()); Option> compoundBeacons; - compoundBeacons = (Objects.nonNull(nativeValue.compoundBeacons()) && nativeValue.compoundBeacons().size() > 0) ? - Option.create_Some(ToDafny.CompoundBeaconList(nativeValue.compoundBeacons())) + compoundBeacons = + (Objects.nonNull(nativeValue.compoundBeacons()) && + nativeValue.compoundBeacons().size() > 0) + ? Option.create_Some( + ToDafny.CompoundBeaconList(nativeValue.compoundBeacons()) + ) : Option.create_None(); Option> virtualFields; - virtualFields = (Objects.nonNull(nativeValue.virtualFields()) && nativeValue.virtualFields().size() > 0) ? - Option.create_Some(ToDafny.VirtualFieldList(nativeValue.virtualFields())) + virtualFields = + (Objects.nonNull(nativeValue.virtualFields()) && + nativeValue.virtualFields().size() > 0) + ? Option.create_Some( + ToDafny.VirtualFieldList(nativeValue.virtualFields()) + ) : Option.create_None(); Option> encryptedParts; - encryptedParts = (Objects.nonNull(nativeValue.encryptedParts()) && nativeValue.encryptedParts().size() > 0) ? - Option.create_Some(ToDafny.EncryptedPartsList(nativeValue.encryptedParts())) + encryptedParts = + (Objects.nonNull(nativeValue.encryptedParts()) && + nativeValue.encryptedParts().size() > 0) + ? Option.create_Some( + ToDafny.EncryptedPartsList(nativeValue.encryptedParts()) + ) : Option.create_None(); Option> signedParts; - signedParts = (Objects.nonNull(nativeValue.signedParts()) && nativeValue.signedParts().size() > 0) ? - Option.create_Some(ToDafny.SignedPartsList(nativeValue.signedParts())) + signedParts = + (Objects.nonNull(nativeValue.signedParts()) && + nativeValue.signedParts().size() > 0) + ? Option.create_Some(ToDafny.SignedPartsList(nativeValue.signedParts())) : Option.create_None(); - return new BeaconVersion(version, keyStore, keySource, standardBeacons, compoundBeacons, virtualFields, encryptedParts, signedParts); + return new BeaconVersion( + version, + keyStore, + keySource, + standardBeacons, + compoundBeacons, + virtualFields, + encryptedParts, + signedParts + ); } public static CompoundBeacon CompoundBeacon( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.CompoundBeacon nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.CompoundBeacon nativeValue + ) { DafnySequence name; - name = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.name()); + name = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.name() + ); DafnySequence split; - split = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.split()); + split = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.split() + ); Option> encrypted; - encrypted = (Objects.nonNull(nativeValue.encrypted()) && nativeValue.encrypted().size() > 0) ? - Option.create_Some(ToDafny.EncryptedPartsList(nativeValue.encrypted())) + encrypted = + (Objects.nonNull(nativeValue.encrypted()) && + nativeValue.encrypted().size() > 0) + ? Option.create_Some( + ToDafny.EncryptedPartsList(nativeValue.encrypted()) + ) : Option.create_None(); Option> signed; - signed = (Objects.nonNull(nativeValue.signed()) && nativeValue.signed().size() > 0) ? - Option.create_Some(ToDafny.SignedPartsList(nativeValue.signed())) + signed = + (Objects.nonNull(nativeValue.signed()) && nativeValue.signed().size() > 0) + ? Option.create_Some(ToDafny.SignedPartsList(nativeValue.signed())) : Option.create_None(); Option> constructors; - constructors = (Objects.nonNull(nativeValue.constructors()) && nativeValue.constructors().size() > 0) ? - Option.create_Some(ToDafny.ConstructorList(nativeValue.constructors())) + constructors = + (Objects.nonNull(nativeValue.constructors()) && + nativeValue.constructors().size() > 0) + ? Option.create_Some( + ToDafny.ConstructorList(nativeValue.constructors()) + ) : Option.create_None(); return new CompoundBeacon(name, split, encrypted, signed, constructors); } public static Constructor Constructor( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.Constructor nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.Constructor nativeValue + ) { DafnySequence parts; parts = ToDafny.ConstructorPartList(nativeValue.parts()); return new Constructor(parts); } public static ConstructorPart ConstructorPart( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.ConstructorPart nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.ConstructorPart nativeValue + ) { DafnySequence name; - name = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.name()); + name = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.name() + ); Boolean required; required = (nativeValue.required()); return new ConstructorPart(name, required); } public static CreateDynamoDbEncryptionBranchKeyIdSupplierInput CreateDynamoDbEncryptionBranchKeyIdSupplierInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.CreateDynamoDbEncryptionBranchKeyIdSupplierInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.CreateDynamoDbEncryptionBranchKeyIdSupplierInput nativeValue + ) { software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier ddbKeyBranchKeyIdSupplier; - ddbKeyBranchKeyIdSupplier = ToDafny.DynamoDbKeyBranchKeyIdSupplier(nativeValue.ddbKeyBranchKeyIdSupplier()); - return new CreateDynamoDbEncryptionBranchKeyIdSupplierInput(ddbKeyBranchKeyIdSupplier); + ddbKeyBranchKeyIdSupplier = + ToDafny.DynamoDbKeyBranchKeyIdSupplier( + nativeValue.ddbKeyBranchKeyIdSupplier() + ); + return new CreateDynamoDbEncryptionBranchKeyIdSupplierInput( + ddbKeyBranchKeyIdSupplier + ); } public static CreateDynamoDbEncryptionBranchKeyIdSupplierOutput CreateDynamoDbEncryptionBranchKeyIdSupplierOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput nativeValue + ) { IBranchKeyIdSupplier branchKeyIdSupplier; - branchKeyIdSupplier = software.amazon.cryptography.materialproviders.ToDafny.BranchKeyIdSupplier(nativeValue.branchKeyIdSupplier()); - return new CreateDynamoDbEncryptionBranchKeyIdSupplierOutput(branchKeyIdSupplier); + branchKeyIdSupplier = + software.amazon.cryptography.materialproviders.ToDafny.BranchKeyIdSupplier( + nativeValue.branchKeyIdSupplier() + ); + return new CreateDynamoDbEncryptionBranchKeyIdSupplierOutput( + branchKeyIdSupplier + ); } public static DynamoDbEncryptionConfig DynamoDbEncryptionConfig( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.DynamoDbEncryptionConfig nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.DynamoDbEncryptionConfig nativeValue + ) { return new DynamoDbEncryptionConfig(); } public static DynamoDbTableEncryptionConfig DynamoDbTableEncryptionConfig( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.DynamoDbTableEncryptionConfig nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.DynamoDbTableEncryptionConfig nativeValue + ) { DafnySequence logicalTableName; - logicalTableName = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.logicalTableName()); + logicalTableName = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.logicalTableName() + ); DafnySequence partitionKeyName; - partitionKeyName = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.partitionKeyName()); + partitionKeyName = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.partitionKeyName() + ); Option> sortKeyName; - sortKeyName = Objects.nonNull(nativeValue.sortKeyName()) ? - Option.create_Some(software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.sortKeyName())) + sortKeyName = + Objects.nonNull(nativeValue.sortKeyName()) + ? Option.create_Some( + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.sortKeyName() + ) + ) : Option.create_None(); Option search; - search = Objects.nonNull(nativeValue.search()) ? - Option.create_Some(ToDafny.SearchConfig(nativeValue.search())) + search = + Objects.nonNull(nativeValue.search()) + ? Option.create_Some(ToDafny.SearchConfig(nativeValue.search())) : Option.create_None(); - DafnyMap, ? extends CryptoAction> attributeActionsOnEncrypt; - attributeActionsOnEncrypt = ToDafny.AttributeActions(nativeValue.attributeActionsOnEncrypt()); - Option>> allowedUnsignedAttributes; - allowedUnsignedAttributes = (Objects.nonNull(nativeValue.allowedUnsignedAttributes()) && nativeValue.allowedUnsignedAttributes().size() > 0) ? - Option.create_Some(software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.AttributeNameList(nativeValue.allowedUnsignedAttributes())) + DafnyMap< + ? extends DafnySequence, + ? extends CryptoAction + > attributeActionsOnEncrypt; + attributeActionsOnEncrypt = + ToDafny.AttributeActions(nativeValue.attributeActionsOnEncrypt()); + Option< + DafnySequence> + > allowedUnsignedAttributes; + allowedUnsignedAttributes = + (Objects.nonNull(nativeValue.allowedUnsignedAttributes()) && + nativeValue.allowedUnsignedAttributes().size() > 0) + ? Option.create_Some( + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.AttributeNameList( + nativeValue.allowedUnsignedAttributes() + ) + ) : Option.create_None(); Option> allowedUnsignedAttributePrefix; - allowedUnsignedAttributePrefix = Objects.nonNull(nativeValue.allowedUnsignedAttributePrefix()) ? - Option.create_Some(software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.allowedUnsignedAttributePrefix())) + allowedUnsignedAttributePrefix = + Objects.nonNull(nativeValue.allowedUnsignedAttributePrefix()) + ? Option.create_Some( + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.allowedUnsignedAttributePrefix() + ) + ) : Option.create_None(); Option algorithmSuiteId; - algorithmSuiteId = Objects.nonNull(nativeValue.algorithmSuiteId()) ? - Option.create_Some(software.amazon.cryptography.materialproviders.ToDafny.DBEAlgorithmSuiteId(nativeValue.algorithmSuiteId())) + algorithmSuiteId = + Objects.nonNull(nativeValue.algorithmSuiteId()) + ? Option.create_Some( + software.amazon.cryptography.materialproviders.ToDafny.DBEAlgorithmSuiteId( + nativeValue.algorithmSuiteId() + ) + ) : Option.create_None(); Option keyring; - keyring = Objects.nonNull(nativeValue.keyring()) ? - Option.create_Some(software.amazon.cryptography.materialproviders.ToDafny.Keyring(nativeValue.keyring())) + keyring = + Objects.nonNull(nativeValue.keyring()) + ? Option.create_Some( + software.amazon.cryptography.materialproviders.ToDafny.Keyring( + nativeValue.keyring() + ) + ) : Option.create_None(); Option cmm; - cmm = Objects.nonNull(nativeValue.cmm()) ? - Option.create_Some(software.amazon.cryptography.materialproviders.ToDafny.CryptographicMaterialsManager(nativeValue.cmm())) + cmm = + Objects.nonNull(nativeValue.cmm()) + ? Option.create_Some( + software.amazon.cryptography.materialproviders.ToDafny.CryptographicMaterialsManager( + nativeValue.cmm() + ) + ) : Option.create_None(); Option legacyOverride; - legacyOverride = Objects.nonNull(nativeValue.legacyOverride()) ? - Option.create_Some(ToDafny.LegacyOverride(nativeValue.legacyOverride())) + legacyOverride = + Objects.nonNull(nativeValue.legacyOverride()) + ? Option.create_Some( + ToDafny.LegacyOverride(nativeValue.legacyOverride()) + ) : Option.create_None(); Option plaintextOverride; - plaintextOverride = Objects.nonNull(nativeValue.plaintextOverride()) ? - Option.create_Some(ToDafny.PlaintextOverride(nativeValue.plaintextOverride())) + plaintextOverride = + Objects.nonNull(nativeValue.plaintextOverride()) + ? Option.create_Some( + ToDafny.PlaintextOverride(nativeValue.plaintextOverride()) + ) : Option.create_None(); - return new DynamoDbTableEncryptionConfig(logicalTableName, partitionKeyName, sortKeyName, search, attributeActionsOnEncrypt, allowedUnsignedAttributes, allowedUnsignedAttributePrefix, algorithmSuiteId, keyring, cmm, legacyOverride, plaintextOverride); + return new DynamoDbTableEncryptionConfig( + logicalTableName, + partitionKeyName, + sortKeyName, + search, + attributeActionsOnEncrypt, + allowedUnsignedAttributes, + allowedUnsignedAttributePrefix, + algorithmSuiteId, + keyring, + cmm, + legacyOverride, + plaintextOverride + ); } public static DynamoDbTablesEncryptionConfig DynamoDbTablesEncryptionConfig( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.DynamoDbTablesEncryptionConfig nativeValue) { - DafnyMap, ? extends DynamoDbTableEncryptionConfig> tableEncryptionConfigs; - tableEncryptionConfigs = ToDafny.DynamoDbTableEncryptionConfigList(nativeValue.tableEncryptionConfigs()); + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.DynamoDbTablesEncryptionConfig nativeValue + ) { + DafnyMap< + ? extends DafnySequence, + ? extends DynamoDbTableEncryptionConfig + > tableEncryptionConfigs; + tableEncryptionConfigs = + ToDafny.DynamoDbTableEncryptionConfigList( + nativeValue.tableEncryptionConfigs() + ); return new DynamoDbTablesEncryptionConfig(tableEncryptionConfigs); } public static EncryptedPart EncryptedPart( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.EncryptedPart nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.EncryptedPart nativeValue + ) { DafnySequence name; - name = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.name()); + name = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.name() + ); DafnySequence prefix; - prefix = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.prefix()); + prefix = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.prefix() + ); return new EncryptedPart(name, prefix); } public static GetBranchKeyIdFromDdbKeyInput GetBranchKeyIdFromDdbKeyInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.GetBranchKeyIdFromDdbKeyInput nativeValue) { - DafnyMap, ? extends AttributeValue> ddbKey; - ddbKey = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.Key(nativeValue.ddbKey()); + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.GetBranchKeyIdFromDdbKeyInput nativeValue + ) { + DafnyMap< + ? extends DafnySequence, + ? extends AttributeValue + > ddbKey; + ddbKey = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.Key( + nativeValue.ddbKey() + ); return new GetBranchKeyIdFromDdbKeyInput(ddbKey); } public static GetBranchKeyIdFromDdbKeyOutput GetBranchKeyIdFromDdbKeyOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.GetBranchKeyIdFromDdbKeyOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.GetBranchKeyIdFromDdbKeyOutput nativeValue + ) { DafnySequence branchKeyId; - branchKeyId = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.branchKeyId()); + branchKeyId = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.branchKeyId() + ); return new GetBranchKeyIdFromDdbKeyOutput(branchKeyId); } public static GetPrefix GetPrefix( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.GetPrefix nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.GetPrefix nativeValue + ) { Integer length; length = (nativeValue.length()); return new GetPrefix(length); } public static GetSegment GetSegment( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.GetSegment nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.GetSegment nativeValue + ) { DafnySequence split; - split = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.split()); + split = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.split() + ); Integer index; index = (nativeValue.index()); return new GetSegment(split, index); } public static GetSegments GetSegments( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.GetSegments nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.GetSegments nativeValue + ) { DafnySequence split; - split = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.split()); + split = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.split() + ); Integer low; low = (nativeValue.low()); Integer high; @@ -289,7 +455,8 @@ public static GetSegments GetSegments( } public static GetSubstring GetSubstring( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.GetSubstring nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.GetSubstring nativeValue + ) { Integer low; low = (nativeValue.low()); Integer high; @@ -298,59 +465,91 @@ public static GetSubstring GetSubstring( } public static GetSuffix GetSuffix( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.GetSuffix nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.GetSuffix nativeValue + ) { Integer length; length = (nativeValue.length()); return new GetSuffix(length); } public static Insert Insert( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.Insert nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.Insert nativeValue + ) { DafnySequence literal; - literal = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.literal()); + literal = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.literal() + ); return new Insert(literal); } public static LegacyOverride LegacyOverride( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.LegacyOverride nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.LegacyOverride nativeValue + ) { LegacyPolicy policy; policy = ToDafny.LegacyPolicy(nativeValue.policy()); software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor encryptor; encryptor = ToDafny.LegacyDynamoDbEncryptor(nativeValue.encryptor()); - DafnyMap, ? extends CryptoAction> attributeActionsOnEncrypt; - attributeActionsOnEncrypt = ToDafny.AttributeActions(nativeValue.attributeActionsOnEncrypt()); + DafnyMap< + ? extends DafnySequence, + ? extends CryptoAction + > attributeActionsOnEncrypt; + attributeActionsOnEncrypt = + ToDafny.AttributeActions(nativeValue.attributeActionsOnEncrypt()); Option defaultAttributeFlag; - defaultAttributeFlag = Objects.nonNull(nativeValue.defaultAttributeFlag()) ? - Option.create_Some(software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny.CryptoAction(nativeValue.defaultAttributeFlag())) + defaultAttributeFlag = + Objects.nonNull(nativeValue.defaultAttributeFlag()) + ? Option.create_Some( + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny.CryptoAction( + nativeValue.defaultAttributeFlag() + ) + ) : Option.create_None(); - return new LegacyOverride(policy, encryptor, attributeActionsOnEncrypt, defaultAttributeFlag); + return new LegacyOverride( + policy, + encryptor, + attributeActionsOnEncrypt, + defaultAttributeFlag + ); } public static Lower Lower( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.Lower nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.Lower nativeValue + ) { return new Lower(); } public static MultiKeyStore MultiKeyStore( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.MultiKeyStore nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.MultiKeyStore nativeValue + ) { DafnySequence keyFieldName; - keyFieldName = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.keyFieldName()); + keyFieldName = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.keyFieldName() + ); Integer cacheTTL; cacheTTL = (nativeValue.cacheTTL()); Option cache; - cache = Objects.nonNull(nativeValue.cache()) ? - Option.create_Some(software.amazon.cryptography.materialproviders.ToDafny.CacheType(nativeValue.cache())) + cache = + Objects.nonNull(nativeValue.cache()) + ? Option.create_Some( + software.amazon.cryptography.materialproviders.ToDafny.CacheType( + nativeValue.cache() + ) + ) : Option.create_None(); return new MultiKeyStore(keyFieldName, cacheTTL, cache); } public static PartOnly PartOnly( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.PartOnly nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.PartOnly nativeValue + ) { return new PartOnly(); } public static SearchConfig SearchConfig( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.SearchConfig nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.SearchConfig nativeValue + ) { DafnySequence versions; versions = ToDafny.BeaconVersionList(nativeValue.versions()); Integer writeVersion; @@ -359,140 +558,217 @@ public static SearchConfig SearchConfig( } public static Shared Shared( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.Shared nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.Shared nativeValue + ) { DafnySequence other; - other = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.other()); + other = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.other() + ); return new Shared(other); } public static SharedSet SharedSet( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.SharedSet nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.SharedSet nativeValue + ) { DafnySequence other; - other = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.other()); + other = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.other() + ); return new SharedSet(other); } public static SignedPart SignedPart( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.SignedPart nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.SignedPart nativeValue + ) { DafnySequence name; - name = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.name()); + name = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.name() + ); DafnySequence prefix; - prefix = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.prefix()); + prefix = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.prefix() + ); Option> loc; - loc = Objects.nonNull(nativeValue.loc()) ? - Option.create_Some(software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.loc())) + loc = + Objects.nonNull(nativeValue.loc()) + ? Option.create_Some( + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.loc() + ) + ) : Option.create_None(); return new SignedPart(name, prefix, loc); } public static SingleKeyStore SingleKeyStore( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.SingleKeyStore nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.SingleKeyStore nativeValue + ) { DafnySequence keyId; - keyId = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.keyId()); + keyId = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.keyId() + ); Integer cacheTTL; cacheTTL = (nativeValue.cacheTTL()); return new SingleKeyStore(keyId, cacheTTL); } public static StandardBeacon StandardBeacon( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.StandardBeacon nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.StandardBeacon nativeValue + ) { DafnySequence name; - name = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.name()); + name = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.name() + ); Integer length; length = (nativeValue.length()); Option> loc; - loc = Objects.nonNull(nativeValue.loc()) ? - Option.create_Some(software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.loc())) + loc = + Objects.nonNull(nativeValue.loc()) + ? Option.create_Some( + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.loc() + ) + ) : Option.create_None(); Option style; - style = Objects.nonNull(nativeValue.style()) ? - Option.create_Some(ToDafny.BeaconStyle(nativeValue.style())) + style = + Objects.nonNull(nativeValue.style()) + ? Option.create_Some(ToDafny.BeaconStyle(nativeValue.style())) : Option.create_None(); return new StandardBeacon(name, length, loc, style); } public static Upper Upper( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.Upper nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.Upper nativeValue + ) { return new Upper(); } public static VirtualField VirtualField( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.VirtualField nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.VirtualField nativeValue + ) { DafnySequence name; - name = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.name()); + name = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.name() + ); DafnySequence parts; parts = ToDafny.VirtualPartList(nativeValue.parts()); return new VirtualField(name, parts); } public static VirtualPart VirtualPart( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.VirtualPart nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.VirtualPart nativeValue + ) { DafnySequence loc; - loc = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.loc()); + loc = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.loc() + ); Option> trans; - trans = (Objects.nonNull(nativeValue.trans()) && nativeValue.trans().size() > 0) ? - Option.create_Some(ToDafny.VirtualTransformList(nativeValue.trans())) + trans = + (Objects.nonNull(nativeValue.trans()) && nativeValue.trans().size() > 0) + ? Option.create_Some(ToDafny.VirtualTransformList(nativeValue.trans())) : Option.create_None(); return new VirtualPart(loc, trans); } public static Error Error(DynamoDbEncryptionException nativeValue) { DafnySequence message; - message = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.message()); + message = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.message() + ); return new Error_DynamoDbEncryptionException(message); } public static LegacyPolicy LegacyPolicy( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.LegacyPolicy nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.LegacyPolicy nativeValue + ) { switch (nativeValue) { - case FORCE_LEGACY_ENCRYPT_ALLOW_LEGACY_DECRYPT: { - return LegacyPolicy.create_FORCE__LEGACY__ENCRYPT__ALLOW__LEGACY__DECRYPT(); - } - case FORBID_LEGACY_ENCRYPT_ALLOW_LEGACY_DECRYPT: { - return LegacyPolicy.create_FORBID__LEGACY__ENCRYPT__ALLOW__LEGACY__DECRYPT(); - } - case FORBID_LEGACY_ENCRYPT_FORBID_LEGACY_DECRYPT: { - return LegacyPolicy.create_FORBID__LEGACY__ENCRYPT__FORBID__LEGACY__DECRYPT(); - } - default: { - throw new RuntimeException("Cannot convert " + nativeValue + " to software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.LegacyPolicy."); - } + case FORCE_LEGACY_ENCRYPT_ALLOW_LEGACY_DECRYPT: + { + return LegacyPolicy.create_FORCE__LEGACY__ENCRYPT__ALLOW__LEGACY__DECRYPT(); + } + case FORBID_LEGACY_ENCRYPT_ALLOW_LEGACY_DECRYPT: + { + return LegacyPolicy.create_FORBID__LEGACY__ENCRYPT__ALLOW__LEGACY__DECRYPT(); + } + case FORBID_LEGACY_ENCRYPT_FORBID_LEGACY_DECRYPT: + { + return LegacyPolicy.create_FORBID__LEGACY__ENCRYPT__FORBID__LEGACY__DECRYPT(); + } + default: + { + throw new RuntimeException( + "Cannot convert " + + nativeValue + + " to software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.LegacyPolicy." + ); + } } } public static PlaintextOverride PlaintextOverride( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.PlaintextOverride nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.PlaintextOverride nativeValue + ) { switch (nativeValue) { - case FORCE_PLAINTEXT_WRITE_ALLOW_PLAINTEXT_READ: { - return PlaintextOverride.create_FORCE__PLAINTEXT__WRITE__ALLOW__PLAINTEXT__READ(); - } - case FORBID_PLAINTEXT_WRITE_ALLOW_PLAINTEXT_READ: { - return PlaintextOverride.create_FORBID__PLAINTEXT__WRITE__ALLOW__PLAINTEXT__READ(); - } - case FORBID_PLAINTEXT_WRITE_FORBID_PLAINTEXT_READ: { - return PlaintextOverride.create_FORBID__PLAINTEXT__WRITE__FORBID__PLAINTEXT__READ(); - } - default: { - throw new RuntimeException("Cannot convert " + nativeValue + " to software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.PlaintextOverride."); - } + case FORCE_PLAINTEXT_WRITE_ALLOW_PLAINTEXT_READ: + { + return PlaintextOverride.create_FORCE__PLAINTEXT__WRITE__ALLOW__PLAINTEXT__READ(); + } + case FORBID_PLAINTEXT_WRITE_ALLOW_PLAINTEXT_READ: + { + return PlaintextOverride.create_FORBID__PLAINTEXT__WRITE__ALLOW__PLAINTEXT__READ(); + } + case FORBID_PLAINTEXT_WRITE_FORBID_PLAINTEXT_READ: + { + return PlaintextOverride.create_FORBID__PLAINTEXT__WRITE__FORBID__PLAINTEXT__READ(); + } + default: + { + throw new RuntimeException( + "Cannot convert " + + nativeValue + + " to software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.PlaintextOverride." + ); + } } } public static BeaconKeySource BeaconKeySource( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.BeaconKeySource nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.BeaconKeySource nativeValue + ) { if (Objects.nonNull(nativeValue.single())) { - return BeaconKeySource.create_single(ToDafny.SingleKeyStore(nativeValue.single())); + return BeaconKeySource.create_single( + ToDafny.SingleKeyStore(nativeValue.single()) + ); } if (Objects.nonNull(nativeValue.multi())) { - return BeaconKeySource.create_multi(ToDafny.MultiKeyStore(nativeValue.multi())); + return BeaconKeySource.create_multi( + ToDafny.MultiKeyStore(nativeValue.multi()) + ); } - throw new IllegalArgumentException("Cannot convert " + nativeValue + " to software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconKeySource."); + throw new IllegalArgumentException( + "Cannot convert " + + nativeValue + + " to software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconKeySource." + ); } public static BeaconStyle BeaconStyle( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.BeaconStyle nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.BeaconStyle nativeValue + ) { if (Objects.nonNull(nativeValue.partOnly())) { - return BeaconStyle.create_partOnly(ToDafny.PartOnly(nativeValue.partOnly())); + return BeaconStyle.create_partOnly( + ToDafny.PartOnly(nativeValue.partOnly()) + ); } if (Objects.nonNull(nativeValue.shared())) { return BeaconStyle.create_shared(ToDafny.Shared(nativeValue.shared())); @@ -501,13 +777,20 @@ public static BeaconStyle BeaconStyle( return BeaconStyle.create_asSet(ToDafny.AsSet(nativeValue.asSet())); } if (Objects.nonNull(nativeValue.sharedSet())) { - return BeaconStyle.create_sharedSet(ToDafny.SharedSet(nativeValue.sharedSet())); + return BeaconStyle.create_sharedSet( + ToDafny.SharedSet(nativeValue.sharedSet()) + ); } - throw new IllegalArgumentException("Cannot convert " + nativeValue + " to software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconStyle."); + throw new IllegalArgumentException( + "Cannot convert " + + nativeValue + + " to software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconStyle." + ); } public static VirtualTransform VirtualTransform( - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.VirtualTransform nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.VirtualTransform nativeValue + ) { if (Objects.nonNull(nativeValue.upper())) { return VirtualTransform.create_upper(ToDafny.Upper(nativeValue.upper())); } @@ -515,133 +798,209 @@ public static VirtualTransform VirtualTransform( return VirtualTransform.create_lower(ToDafny.Lower(nativeValue.lower())); } if (Objects.nonNull(nativeValue.insert())) { - return VirtualTransform.create_insert(ToDafny.Insert(nativeValue.insert())); + return VirtualTransform.create_insert( + ToDafny.Insert(nativeValue.insert()) + ); } if (Objects.nonNull(nativeValue.prefix())) { - return VirtualTransform.create_prefix(ToDafny.GetPrefix(nativeValue.prefix())); + return VirtualTransform.create_prefix( + ToDafny.GetPrefix(nativeValue.prefix()) + ); } if (Objects.nonNull(nativeValue.suffix())) { - return VirtualTransform.create_suffix(ToDafny.GetSuffix(nativeValue.suffix())); + return VirtualTransform.create_suffix( + ToDafny.GetSuffix(nativeValue.suffix()) + ); } if (Objects.nonNull(nativeValue.substring())) { - return VirtualTransform.create_substring(ToDafny.GetSubstring(nativeValue.substring())); + return VirtualTransform.create_substring( + ToDafny.GetSubstring(nativeValue.substring()) + ); } if (Objects.nonNull(nativeValue.segment())) { - return VirtualTransform.create_segment(ToDafny.GetSegment(nativeValue.segment())); + return VirtualTransform.create_segment( + ToDafny.GetSegment(nativeValue.segment()) + ); } if (Objects.nonNull(nativeValue.segments())) { - return VirtualTransform.create_segments(ToDafny.GetSegments(nativeValue.segments())); + return VirtualTransform.create_segments( + ToDafny.GetSegments(nativeValue.segments()) + ); } - throw new IllegalArgumentException("Cannot convert " + nativeValue + " to software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualTransform."); + throw new IllegalArgumentException( + "Cannot convert " + + nativeValue + + " to software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualTransform." + ); } public static DafnySequence BeaconVersionList( - List nativeValue) { + List< + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.BeaconVersion + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( - nativeValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::BeaconVersion, - BeaconVersion._typeDescriptor()); + nativeValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::BeaconVersion, + BeaconVersion._typeDescriptor() + ); } public static DafnySequence CompoundBeaconList( - List nativeValue) { + List< + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.CompoundBeacon + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( - nativeValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::CompoundBeacon, - CompoundBeacon._typeDescriptor()); + nativeValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::CompoundBeacon, + CompoundBeacon._typeDescriptor() + ); } public static DafnySequence ConstructorList( - List nativeValue) { + List< + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.Constructor + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( - nativeValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::Constructor, - Constructor._typeDescriptor()); + nativeValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::Constructor, + Constructor._typeDescriptor() + ); } public static DafnySequence ConstructorPartList( - List nativeValue) { + List< + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.ConstructorPart + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( - nativeValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::ConstructorPart, - ConstructorPart._typeDescriptor()); + nativeValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::ConstructorPart, + ConstructorPart._typeDescriptor() + ); } public static DafnySequence EncryptedPartsList( - List nativeValue) { + List< + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.EncryptedPart + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( - nativeValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::EncryptedPart, - EncryptedPart._typeDescriptor()); + nativeValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::EncryptedPart, + EncryptedPart._typeDescriptor() + ); } public static DafnySequence SignedPartsList( - List nativeValue) { + List< + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.SignedPart + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( - nativeValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::SignedPart, - SignedPart._typeDescriptor()); + nativeValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::SignedPart, + SignedPart._typeDescriptor() + ); } public static DafnySequence StandardBeaconList( - List nativeValue) { + List< + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.StandardBeacon + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( - nativeValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::StandardBeacon, - StandardBeacon._typeDescriptor()); + nativeValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::StandardBeacon, + StandardBeacon._typeDescriptor() + ); } public static DafnySequence VirtualFieldList( - List nativeValue) { + List< + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.VirtualField + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( - nativeValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::VirtualField, - VirtualField._typeDescriptor()); + nativeValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::VirtualField, + VirtualField._typeDescriptor() + ); } public static DafnySequence VirtualPartList( - List nativeValue) { + List< + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.VirtualPart + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( - nativeValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::VirtualPart, - VirtualPart._typeDescriptor()); + nativeValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::VirtualPart, + VirtualPart._typeDescriptor() + ); } public static DafnySequence VirtualTransformList( - List nativeValue) { + List< + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.VirtualTransform + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( - nativeValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::VirtualTransform, - VirtualTransform._typeDescriptor()); - } - - public static DafnyMap, ? extends CryptoAction> AttributeActions( - Map nativeValue) { + nativeValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::VirtualTransform, + VirtualTransform._typeDescriptor() + ); + } + + public static DafnyMap< + ? extends DafnySequence, + ? extends CryptoAction + > AttributeActions( + Map< + String, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.CryptoAction + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToMap( - nativeValue, - software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::CryptoAction); - } - - public static DafnyMap, ? extends DynamoDbTableEncryptionConfig> DynamoDbTableEncryptionConfigList( - Map nativeValue) { + nativeValue, + software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::CryptoAction + ); + } + + public static DafnyMap< + ? extends DafnySequence, + ? extends DynamoDbTableEncryptionConfig + > DynamoDbTableEncryptionConfigList( + Map< + String, + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.DynamoDbTableEncryptionConfig + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToMap( - nativeValue, - software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::DynamoDbTableEncryptionConfig); + nativeValue, + software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny::DynamoDbTableEncryptionConfig + ); } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier DynamoDbKeyBranchKeyIdSupplier( - IDynamoDbKeyBranchKeyIdSupplier nativeValue) { + IDynamoDbKeyBranchKeyIdSupplier nativeValue + ) { return DynamoDbKeyBranchKeyIdSupplier.wrap(nativeValue).impl(); } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor LegacyDynamoDbEncryptor( - ILegacyDynamoDbEncryptor nativeValue) { + ILegacyDynamoDbEncryptor nativeValue + ) { return LegacyDynamoDbEncryptor.wrap(nativeValue).impl(); } - public static IDynamoDbEncryptionClient DynamoDbEncryption(DynamoDbEncryption nativeValue) { + public static IDynamoDbEncryptionClient DynamoDbEncryption( + DynamoDbEncryption nativeValue + ) { return nativeValue.impl(); } } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/ToNative.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/ToNative.java index ee31ab4eb..933c696e1 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/ToNative.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/ToNative.java @@ -59,6 +59,7 @@ import software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.CryptoAction; public class ToNative { + public static OpaqueError Error(Error_Opaque dafnyValue) { OpaqueError.Builder nativeBuilder = OpaqueError.builder(); nativeBuilder.obj(dafnyValue.dtor_obj()); @@ -68,16 +69,29 @@ public static OpaqueError Error(Error_Opaque dafnyValue) { public static CollectionOfErrors Error(Error_CollectionOfErrors dafnyValue) { CollectionOfErrors.Builder nativeBuilder = CollectionOfErrors.builder(); nativeBuilder.list( - software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( - dafnyValue.dtor_list(), - ToNative::Error)); - nativeBuilder.message(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_message())); + software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( + dafnyValue.dtor_list(), + ToNative::Error + ) + ); + nativeBuilder.message( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_message() + ) + ); return nativeBuilder.build(); } - public static DynamoDbEncryptionException Error(Error_DynamoDbEncryptionException dafnyValue) { - DynamoDbEncryptionException.Builder nativeBuilder = DynamoDbEncryptionException.builder(); - nativeBuilder.message(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_message())); + public static DynamoDbEncryptionException Error( + Error_DynamoDbEncryptionException dafnyValue + ) { + DynamoDbEncryptionException.Builder nativeBuilder = + DynamoDbEncryptionException.builder(); + nativeBuilder.message( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_message() + ) + ); return nativeBuilder.build(); } @@ -92,16 +106,24 @@ public static RuntimeException Error(Error dafnyValue) { return ToNative.Error((Error_CollectionOfErrors) dafnyValue); } if (dafnyValue.is_AwsCryptographyPrimitives()) { - return software.amazon.cryptography.primitives.ToNative.Error(dafnyValue.dtor_AwsCryptographyPrimitives()); + return software.amazon.cryptography.primitives.ToNative.Error( + dafnyValue.dtor_AwsCryptographyPrimitives() + ); } if (dafnyValue.is_ComAmazonawsDynamodb()) { - return software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.Error(dafnyValue.dtor_ComAmazonawsDynamodb()); + return software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.Error( + dafnyValue.dtor_ComAmazonawsDynamodb() + ); } if (dafnyValue.is_AwsCryptographyMaterialProviders()) { - return software.amazon.cryptography.materialproviders.ToNative.Error(dafnyValue.dtor_AwsCryptographyMaterialProviders()); + return software.amazon.cryptography.materialproviders.ToNative.Error( + dafnyValue.dtor_AwsCryptographyMaterialProviders() + ); } if (dafnyValue.is_AwsCryptographyDbEncryptionSdkStructuredEncryption()) { - return software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative.Error(dafnyValue.dtor_AwsCryptographyDbEncryptionSdkStructuredEncryption()); + return software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative.Error( + dafnyValue.dtor_AwsCryptographyDbEncryptionSdkStructuredEncryption() + ); } OpaqueError.Builder nativeBuilder = OpaqueError.builder(); nativeBuilder.obj(dafnyValue); @@ -109,176 +131,316 @@ public static RuntimeException Error(Error dafnyValue) { } public static AsSet AsSet( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.AsSet dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.AsSet dafnyValue + ) { AsSet.Builder nativeBuilder = AsSet.builder(); return nativeBuilder.build(); } public static BeaconVersion BeaconVersion( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconVersion dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconVersion dafnyValue + ) { BeaconVersion.Builder nativeBuilder = BeaconVersion.builder(); nativeBuilder.version((dafnyValue.dtor_version())); - nativeBuilder.keyStore(software.amazon.cryptography.keystore.ToNative.KeyStore(dafnyValue.dtor_keyStore())); - nativeBuilder.keySource(ToNative.BeaconKeySource(dafnyValue.dtor_keySource())); - nativeBuilder.standardBeacons(ToNative.StandardBeaconList(dafnyValue.dtor_standardBeacons())); + nativeBuilder.keyStore( + software.amazon.cryptography.keystore.ToNative.KeyStore( + dafnyValue.dtor_keyStore() + ) + ); + nativeBuilder.keySource( + ToNative.BeaconKeySource(dafnyValue.dtor_keySource()) + ); + nativeBuilder.standardBeacons( + ToNative.StandardBeaconList(dafnyValue.dtor_standardBeacons()) + ); if (dafnyValue.dtor_compoundBeacons().is_Some()) { - nativeBuilder.compoundBeacons(ToNative.CompoundBeaconList(dafnyValue.dtor_compoundBeacons().dtor_value())); + nativeBuilder.compoundBeacons( + ToNative.CompoundBeaconList( + dafnyValue.dtor_compoundBeacons().dtor_value() + ) + ); } if (dafnyValue.dtor_virtualFields().is_Some()) { - nativeBuilder.virtualFields(ToNative.VirtualFieldList(dafnyValue.dtor_virtualFields().dtor_value())); + nativeBuilder.virtualFields( + ToNative.VirtualFieldList(dafnyValue.dtor_virtualFields().dtor_value()) + ); } if (dafnyValue.dtor_encryptedParts().is_Some()) { - nativeBuilder.encryptedParts(ToNative.EncryptedPartsList(dafnyValue.dtor_encryptedParts().dtor_value())); + nativeBuilder.encryptedParts( + ToNative.EncryptedPartsList( + dafnyValue.dtor_encryptedParts().dtor_value() + ) + ); } if (dafnyValue.dtor_signedParts().is_Some()) { - nativeBuilder.signedParts(ToNative.SignedPartsList(dafnyValue.dtor_signedParts().dtor_value())); + nativeBuilder.signedParts( + ToNative.SignedPartsList(dafnyValue.dtor_signedParts().dtor_value()) + ); } return nativeBuilder.build(); } public static CompoundBeacon CompoundBeacon( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CompoundBeacon dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CompoundBeacon dafnyValue + ) { CompoundBeacon.Builder nativeBuilder = CompoundBeacon.builder(); - nativeBuilder.name(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_name())); - nativeBuilder.split(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_split())); + nativeBuilder.name( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_name() + ) + ); + nativeBuilder.split( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_split() + ) + ); if (dafnyValue.dtor_encrypted().is_Some()) { - nativeBuilder.encrypted(ToNative.EncryptedPartsList(dafnyValue.dtor_encrypted().dtor_value())); + nativeBuilder.encrypted( + ToNative.EncryptedPartsList(dafnyValue.dtor_encrypted().dtor_value()) + ); } if (dafnyValue.dtor_signed().is_Some()) { - nativeBuilder.signed(ToNative.SignedPartsList(dafnyValue.dtor_signed().dtor_value())); + nativeBuilder.signed( + ToNative.SignedPartsList(dafnyValue.dtor_signed().dtor_value()) + ); } if (dafnyValue.dtor_constructors().is_Some()) { - nativeBuilder.constructors(ToNative.ConstructorList(dafnyValue.dtor_constructors().dtor_value())); + nativeBuilder.constructors( + ToNative.ConstructorList(dafnyValue.dtor_constructors().dtor_value()) + ); } return nativeBuilder.build(); } public static Constructor Constructor( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Constructor dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Constructor dafnyValue + ) { Constructor.Builder nativeBuilder = Constructor.builder(); nativeBuilder.parts(ToNative.ConstructorPartList(dafnyValue.dtor_parts())); return nativeBuilder.build(); } public static ConstructorPart ConstructorPart( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ConstructorPart dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ConstructorPart dafnyValue + ) { ConstructorPart.Builder nativeBuilder = ConstructorPart.builder(); - nativeBuilder.name(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_name())); + nativeBuilder.name( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_name() + ) + ); nativeBuilder.required((dafnyValue.dtor_required())); return nativeBuilder.build(); } public static CreateDynamoDbEncryptionBranchKeyIdSupplierInput CreateDynamoDbEncryptionBranchKeyIdSupplierInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CreateDynamoDbEncryptionBranchKeyIdSupplierInput dafnyValue) { - CreateDynamoDbEncryptionBranchKeyIdSupplierInput.Builder nativeBuilder = CreateDynamoDbEncryptionBranchKeyIdSupplierInput.builder(); - nativeBuilder.ddbKeyBranchKeyIdSupplier(ToNative.DynamoDbKeyBranchKeyIdSupplier(dafnyValue.dtor_ddbKeyBranchKeyIdSupplier())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CreateDynamoDbEncryptionBranchKeyIdSupplierInput dafnyValue + ) { + CreateDynamoDbEncryptionBranchKeyIdSupplierInput.Builder nativeBuilder = + CreateDynamoDbEncryptionBranchKeyIdSupplierInput.builder(); + nativeBuilder.ddbKeyBranchKeyIdSupplier( + ToNative.DynamoDbKeyBranchKeyIdSupplier( + dafnyValue.dtor_ddbKeyBranchKeyIdSupplier() + ) + ); return nativeBuilder.build(); } public static CreateDynamoDbEncryptionBranchKeyIdSupplierOutput CreateDynamoDbEncryptionBranchKeyIdSupplierOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput dafnyValue) { - CreateDynamoDbEncryptionBranchKeyIdSupplierOutput.Builder nativeBuilder = CreateDynamoDbEncryptionBranchKeyIdSupplierOutput.builder(); - nativeBuilder.branchKeyIdSupplier(software.amazon.cryptography.materialproviders.ToNative.BranchKeyIdSupplier(dafnyValue.dtor_branchKeyIdSupplier())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput dafnyValue + ) { + CreateDynamoDbEncryptionBranchKeyIdSupplierOutput.Builder nativeBuilder = + CreateDynamoDbEncryptionBranchKeyIdSupplierOutput.builder(); + nativeBuilder.branchKeyIdSupplier( + software.amazon.cryptography.materialproviders.ToNative.BranchKeyIdSupplier( + dafnyValue.dtor_branchKeyIdSupplier() + ) + ); return nativeBuilder.build(); } public static DynamoDbEncryptionConfig DynamoDbEncryptionConfig( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbEncryptionConfig dafnyValue) { - DynamoDbEncryptionConfig.Builder nativeBuilder = DynamoDbEncryptionConfig.builder(); + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbEncryptionConfig dafnyValue + ) { + DynamoDbEncryptionConfig.Builder nativeBuilder = + DynamoDbEncryptionConfig.builder(); return nativeBuilder.build(); } public static DynamoDbTableEncryptionConfig DynamoDbTableEncryptionConfig( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbTableEncryptionConfig dafnyValue) { - DynamoDbTableEncryptionConfig.Builder nativeBuilder = DynamoDbTableEncryptionConfig.builder(); - nativeBuilder.logicalTableName(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_logicalTableName())); - nativeBuilder.partitionKeyName(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_partitionKeyName())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbTableEncryptionConfig dafnyValue + ) { + DynamoDbTableEncryptionConfig.Builder nativeBuilder = + DynamoDbTableEncryptionConfig.builder(); + nativeBuilder.logicalTableName( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_logicalTableName() + ) + ); + nativeBuilder.partitionKeyName( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_partitionKeyName() + ) + ); if (dafnyValue.dtor_sortKeyName().is_Some()) { - nativeBuilder.sortKeyName(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_sortKeyName().dtor_value())); + nativeBuilder.sortKeyName( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_sortKeyName().dtor_value() + ) + ); } if (dafnyValue.dtor_search().is_Some()) { - nativeBuilder.search(ToNative.SearchConfig(dafnyValue.dtor_search().dtor_value())); + nativeBuilder.search( + ToNative.SearchConfig(dafnyValue.dtor_search().dtor_value()) + ); } - nativeBuilder.attributeActionsOnEncrypt(ToNative.AttributeActions(dafnyValue.dtor_attributeActionsOnEncrypt())); + nativeBuilder.attributeActionsOnEncrypt( + ToNative.AttributeActions(dafnyValue.dtor_attributeActionsOnEncrypt()) + ); if (dafnyValue.dtor_allowedUnsignedAttributes().is_Some()) { - nativeBuilder.allowedUnsignedAttributes(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.AttributeNameList(dafnyValue.dtor_allowedUnsignedAttributes().dtor_value())); + nativeBuilder.allowedUnsignedAttributes( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.AttributeNameList( + dafnyValue.dtor_allowedUnsignedAttributes().dtor_value() + ) + ); } if (dafnyValue.dtor_allowedUnsignedAttributePrefix().is_Some()) { - nativeBuilder.allowedUnsignedAttributePrefix(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_allowedUnsignedAttributePrefix().dtor_value())); + nativeBuilder.allowedUnsignedAttributePrefix( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_allowedUnsignedAttributePrefix().dtor_value() + ) + ); } if (dafnyValue.dtor_algorithmSuiteId().is_Some()) { - nativeBuilder.algorithmSuiteId(software.amazon.cryptography.materialproviders.ToNative.DBEAlgorithmSuiteId(dafnyValue.dtor_algorithmSuiteId().dtor_value())); + nativeBuilder.algorithmSuiteId( + software.amazon.cryptography.materialproviders.ToNative.DBEAlgorithmSuiteId( + dafnyValue.dtor_algorithmSuiteId().dtor_value() + ) + ); } if (dafnyValue.dtor_keyring().is_Some()) { - nativeBuilder.keyring(software.amazon.cryptography.materialproviders.ToNative.Keyring(dafnyValue.dtor_keyring().dtor_value())); + nativeBuilder.keyring( + software.amazon.cryptography.materialproviders.ToNative.Keyring( + dafnyValue.dtor_keyring().dtor_value() + ) + ); } if (dafnyValue.dtor_cmm().is_Some()) { - nativeBuilder.cmm(software.amazon.cryptography.materialproviders.ToNative.CryptographicMaterialsManager(dafnyValue.dtor_cmm().dtor_value())); + nativeBuilder.cmm( + software.amazon.cryptography.materialproviders.ToNative.CryptographicMaterialsManager( + dafnyValue.dtor_cmm().dtor_value() + ) + ); } if (dafnyValue.dtor_legacyOverride().is_Some()) { - nativeBuilder.legacyOverride(ToNative.LegacyOverride(dafnyValue.dtor_legacyOverride().dtor_value())); + nativeBuilder.legacyOverride( + ToNative.LegacyOverride(dafnyValue.dtor_legacyOverride().dtor_value()) + ); } if (dafnyValue.dtor_plaintextOverride().is_Some()) { - nativeBuilder.plaintextOverride(ToNative.PlaintextOverride(dafnyValue.dtor_plaintextOverride().dtor_value())); + nativeBuilder.plaintextOverride( + ToNative.PlaintextOverride( + dafnyValue.dtor_plaintextOverride().dtor_value() + ) + ); } return nativeBuilder.build(); } public static DynamoDbTablesEncryptionConfig DynamoDbTablesEncryptionConfig( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbTablesEncryptionConfig dafnyValue) { - DynamoDbTablesEncryptionConfig.Builder nativeBuilder = DynamoDbTablesEncryptionConfig.builder(); - nativeBuilder.tableEncryptionConfigs(ToNative.DynamoDbTableEncryptionConfigList(dafnyValue.dtor_tableEncryptionConfigs())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbTablesEncryptionConfig dafnyValue + ) { + DynamoDbTablesEncryptionConfig.Builder nativeBuilder = + DynamoDbTablesEncryptionConfig.builder(); + nativeBuilder.tableEncryptionConfigs( + ToNative.DynamoDbTableEncryptionConfigList( + dafnyValue.dtor_tableEncryptionConfigs() + ) + ); return nativeBuilder.build(); } public static EncryptedPart EncryptedPart( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.EncryptedPart dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.EncryptedPart dafnyValue + ) { EncryptedPart.Builder nativeBuilder = EncryptedPart.builder(); - nativeBuilder.name(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_name())); - nativeBuilder.prefix(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_prefix())); + nativeBuilder.name( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_name() + ) + ); + nativeBuilder.prefix( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_prefix() + ) + ); return nativeBuilder.build(); } public static GetBranchKeyIdFromDdbKeyInput GetBranchKeyIdFromDdbKeyInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyInput dafnyValue) { - GetBranchKeyIdFromDdbKeyInput.Builder nativeBuilder = GetBranchKeyIdFromDdbKeyInput.builder(); - nativeBuilder.ddbKey(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.Key(dafnyValue.dtor_ddbKey())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyInput dafnyValue + ) { + GetBranchKeyIdFromDdbKeyInput.Builder nativeBuilder = + GetBranchKeyIdFromDdbKeyInput.builder(); + nativeBuilder.ddbKey( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.Key( + dafnyValue.dtor_ddbKey() + ) + ); return nativeBuilder.build(); } public static GetBranchKeyIdFromDdbKeyOutput GetBranchKeyIdFromDdbKeyOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyOutput dafnyValue) { - GetBranchKeyIdFromDdbKeyOutput.Builder nativeBuilder = GetBranchKeyIdFromDdbKeyOutput.builder(); - nativeBuilder.branchKeyId(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_branchKeyId())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyOutput dafnyValue + ) { + GetBranchKeyIdFromDdbKeyOutput.Builder nativeBuilder = + GetBranchKeyIdFromDdbKeyOutput.builder(); + nativeBuilder.branchKeyId( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_branchKeyId() + ) + ); return nativeBuilder.build(); } public static GetPrefix GetPrefix( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetPrefix dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetPrefix dafnyValue + ) { GetPrefix.Builder nativeBuilder = GetPrefix.builder(); nativeBuilder.length((dafnyValue.dtor_length())); return nativeBuilder.build(); } public static GetSegment GetSegment( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSegment dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSegment dafnyValue + ) { GetSegment.Builder nativeBuilder = GetSegment.builder(); - nativeBuilder.split(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_split())); + nativeBuilder.split( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_split() + ) + ); nativeBuilder.index((dafnyValue.dtor_index())); return nativeBuilder.build(); } public static GetSegments GetSegments( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSegments dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSegments dafnyValue + ) { GetSegments.Builder nativeBuilder = GetSegments.builder(); - nativeBuilder.split(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_split())); + nativeBuilder.split( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_split() + ) + ); nativeBuilder.low((dafnyValue.dtor_low())); nativeBuilder.high((dafnyValue.dtor_high())); return nativeBuilder.build(); } public static GetSubstring GetSubstring( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSubstring dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSubstring dafnyValue + ) { GetSubstring.Builder nativeBuilder = GetSubstring.builder(); nativeBuilder.low((dafnyValue.dtor_low())); nativeBuilder.high((dafnyValue.dtor_high())); @@ -286,135 +448,217 @@ public static GetSubstring GetSubstring( } public static GetSuffix GetSuffix( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSuffix dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSuffix dafnyValue + ) { GetSuffix.Builder nativeBuilder = GetSuffix.builder(); nativeBuilder.length((dafnyValue.dtor_length())); return nativeBuilder.build(); } public static Insert Insert( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Insert dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Insert dafnyValue + ) { Insert.Builder nativeBuilder = Insert.builder(); - nativeBuilder.literal(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_literal())); + nativeBuilder.literal( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_literal() + ) + ); return nativeBuilder.build(); } public static LegacyOverride LegacyOverride( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.LegacyOverride dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.LegacyOverride dafnyValue + ) { LegacyOverride.Builder nativeBuilder = LegacyOverride.builder(); nativeBuilder.policy(ToNative.LegacyPolicy(dafnyValue.dtor_policy())); - nativeBuilder.encryptor(ToNative.LegacyDynamoDbEncryptor(dafnyValue.dtor_encryptor())); - nativeBuilder.attributeActionsOnEncrypt(ToNative.AttributeActions(dafnyValue.dtor_attributeActionsOnEncrypt())); + nativeBuilder.encryptor( + ToNative.LegacyDynamoDbEncryptor(dafnyValue.dtor_encryptor()) + ); + nativeBuilder.attributeActionsOnEncrypt( + ToNative.AttributeActions(dafnyValue.dtor_attributeActionsOnEncrypt()) + ); if (dafnyValue.dtor_defaultAttributeFlag().is_Some()) { - nativeBuilder.defaultAttributeFlag(software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative.CryptoAction(dafnyValue.dtor_defaultAttributeFlag().dtor_value())); + nativeBuilder.defaultAttributeFlag( + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative.CryptoAction( + dafnyValue.dtor_defaultAttributeFlag().dtor_value() + ) + ); } return nativeBuilder.build(); } public static Lower Lower( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Lower dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Lower dafnyValue + ) { Lower.Builder nativeBuilder = Lower.builder(); return nativeBuilder.build(); } public static MultiKeyStore MultiKeyStore( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.MultiKeyStore dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.MultiKeyStore dafnyValue + ) { MultiKeyStore.Builder nativeBuilder = MultiKeyStore.builder(); - nativeBuilder.keyFieldName(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_keyFieldName())); + nativeBuilder.keyFieldName( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_keyFieldName() + ) + ); nativeBuilder.cacheTTL((dafnyValue.dtor_cacheTTL())); if (dafnyValue.dtor_cache().is_Some()) { - nativeBuilder.cache(software.amazon.cryptography.materialproviders.ToNative.CacheType(dafnyValue.dtor_cache().dtor_value())); + nativeBuilder.cache( + software.amazon.cryptography.materialproviders.ToNative.CacheType( + dafnyValue.dtor_cache().dtor_value() + ) + ); } return nativeBuilder.build(); } public static PartOnly PartOnly( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.PartOnly dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.PartOnly dafnyValue + ) { PartOnly.Builder nativeBuilder = PartOnly.builder(); return nativeBuilder.build(); } public static SearchConfig SearchConfig( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SearchConfig dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SearchConfig dafnyValue + ) { SearchConfig.Builder nativeBuilder = SearchConfig.builder(); - nativeBuilder.versions(ToNative.BeaconVersionList(dafnyValue.dtor_versions())); + nativeBuilder.versions( + ToNative.BeaconVersionList(dafnyValue.dtor_versions()) + ); nativeBuilder.writeVersion((dafnyValue.dtor_writeVersion())); return nativeBuilder.build(); } public static Shared Shared( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Shared dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Shared dafnyValue + ) { Shared.Builder nativeBuilder = Shared.builder(); - nativeBuilder.other(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_other())); + nativeBuilder.other( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_other() + ) + ); return nativeBuilder.build(); } public static SharedSet SharedSet( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SharedSet dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SharedSet dafnyValue + ) { SharedSet.Builder nativeBuilder = SharedSet.builder(); - nativeBuilder.other(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_other())); + nativeBuilder.other( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_other() + ) + ); return nativeBuilder.build(); } public static SignedPart SignedPart( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SignedPart dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SignedPart dafnyValue + ) { SignedPart.Builder nativeBuilder = SignedPart.builder(); - nativeBuilder.name(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_name())); - nativeBuilder.prefix(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_prefix())); + nativeBuilder.name( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_name() + ) + ); + nativeBuilder.prefix( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_prefix() + ) + ); if (dafnyValue.dtor_loc().is_Some()) { - nativeBuilder.loc(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_loc().dtor_value())); + nativeBuilder.loc( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_loc().dtor_value() + ) + ); } return nativeBuilder.build(); } public static SingleKeyStore SingleKeyStore( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SingleKeyStore dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SingleKeyStore dafnyValue + ) { SingleKeyStore.Builder nativeBuilder = SingleKeyStore.builder(); - nativeBuilder.keyId(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_keyId())); + nativeBuilder.keyId( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_keyId() + ) + ); nativeBuilder.cacheTTL((dafnyValue.dtor_cacheTTL())); return nativeBuilder.build(); } public static StandardBeacon StandardBeacon( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.StandardBeacon dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.StandardBeacon dafnyValue + ) { StandardBeacon.Builder nativeBuilder = StandardBeacon.builder(); - nativeBuilder.name(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_name())); + nativeBuilder.name( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_name() + ) + ); nativeBuilder.length((dafnyValue.dtor_length())); if (dafnyValue.dtor_loc().is_Some()) { - nativeBuilder.loc(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_loc().dtor_value())); + nativeBuilder.loc( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_loc().dtor_value() + ) + ); } if (dafnyValue.dtor_style().is_Some()) { - nativeBuilder.style(ToNative.BeaconStyle(dafnyValue.dtor_style().dtor_value())); + nativeBuilder.style( + ToNative.BeaconStyle(dafnyValue.dtor_style().dtor_value()) + ); } return nativeBuilder.build(); } public static Upper Upper( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Upper dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Upper dafnyValue + ) { Upper.Builder nativeBuilder = Upper.builder(); return nativeBuilder.build(); } public static VirtualField VirtualField( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualField dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualField dafnyValue + ) { VirtualField.Builder nativeBuilder = VirtualField.builder(); - nativeBuilder.name(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_name())); + nativeBuilder.name( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_name() + ) + ); nativeBuilder.parts(ToNative.VirtualPartList(dafnyValue.dtor_parts())); return nativeBuilder.build(); } public static VirtualPart VirtualPart( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualPart dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualPart dafnyValue + ) { VirtualPart.Builder nativeBuilder = VirtualPart.builder(); - nativeBuilder.loc(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_loc())); + nativeBuilder.loc( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_loc() + ) + ); if (dafnyValue.dtor_trans().is_Some()) { - nativeBuilder.trans(ToNative.VirtualTransformList(dafnyValue.dtor_trans().dtor_value())); + nativeBuilder.trans( + ToNative.VirtualTransformList(dafnyValue.dtor_trans().dtor_value()) + ); } return nativeBuilder.build(); } public static LegacyPolicy LegacyPolicy( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.LegacyPolicy dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.LegacyPolicy dafnyValue + ) { if (dafnyValue.is_FORCE__LEGACY__ENCRYPT__ALLOW__LEGACY__DECRYPT()) { return LegacyPolicy.FORCE_LEGACY_ENCRYPT_ALLOW_LEGACY_DECRYPT; } @@ -424,11 +668,15 @@ public static LegacyPolicy LegacyPolicy( if (dafnyValue.is_FORBID__LEGACY__ENCRYPT__FORBID__LEGACY__DECRYPT()) { return LegacyPolicy.FORBID_LEGACY_ENCRYPT_FORBID_LEGACY_DECRYPT; } - throw new IllegalArgumentException("No entry of software.amazon.cryptography.dbencryptionsdk.dynamodb.model.LegacyPolicy matches the input : " + dafnyValue); + throw new IllegalArgumentException( + "No entry of software.amazon.cryptography.dbencryptionsdk.dynamodb.model.LegacyPolicy matches the input : " + + dafnyValue + ); } public static PlaintextOverride PlaintextOverride( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.PlaintextOverride dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.PlaintextOverride dafnyValue + ) { if (dafnyValue.is_FORCE__PLAINTEXT__WRITE__ALLOW__PLAINTEXT__READ()) { return PlaintextOverride.FORCE_PLAINTEXT_WRITE_ALLOW_PLAINTEXT_READ; } @@ -438,11 +686,15 @@ public static PlaintextOverride PlaintextOverride( if (dafnyValue.is_FORBID__PLAINTEXT__WRITE__FORBID__PLAINTEXT__READ()) { return PlaintextOverride.FORBID_PLAINTEXT_WRITE_FORBID_PLAINTEXT_READ; } - throw new IllegalArgumentException("No entry of software.amazon.cryptography.dbencryptionsdk.dynamodb.model.PlaintextOverride matches the input : " + dafnyValue); + throw new IllegalArgumentException( + "No entry of software.amazon.cryptography.dbencryptionsdk.dynamodb.model.PlaintextOverride matches the input : " + + dafnyValue + ); } public static BeaconKeySource BeaconKeySource( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconKeySource dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconKeySource dafnyValue + ) { BeaconKeySource.Builder nativeBuilder = BeaconKeySource.builder(); if (dafnyValue.is_single()) { nativeBuilder.single(ToNative.SingleKeyStore(dafnyValue.dtor_single())); @@ -454,7 +706,8 @@ public static BeaconKeySource BeaconKeySource( } public static BeaconStyle BeaconStyle( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconStyle dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconStyle dafnyValue + ) { BeaconStyle.Builder nativeBuilder = BeaconStyle.builder(); if (dafnyValue.is_partOnly()) { nativeBuilder.partOnly(ToNative.PartOnly(dafnyValue.dtor_partOnly())); @@ -472,7 +725,8 @@ public static BeaconStyle BeaconStyle( } public static VirtualTransform VirtualTransform( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualTransform dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualTransform dafnyValue + ) { VirtualTransform.Builder nativeBuilder = VirtualTransform.builder(); if (dafnyValue.is_upper()) { nativeBuilder.upper(ToNative.Upper(dafnyValue.dtor_upper())); @@ -490,7 +744,9 @@ public static VirtualTransform VirtualTransform( nativeBuilder.suffix(ToNative.GetSuffix(dafnyValue.dtor_suffix())); } if (dafnyValue.is_substring()) { - nativeBuilder.substring(ToNative.GetSubstring(dafnyValue.dtor_substring())); + nativeBuilder.substring( + ToNative.GetSubstring(dafnyValue.dtor_substring()) + ); } if (dafnyValue.is_segment()) { nativeBuilder.segment(ToNative.GetSegment(dafnyValue.dtor_segment())); @@ -502,93 +758,147 @@ public static VirtualTransform VirtualTransform( } public static List BeaconVersionList( - DafnySequence dafnyValue) { + DafnySequence< + ? extends software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconVersion + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( - dafnyValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::BeaconVersion); + dafnyValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::BeaconVersion + ); } public static List CompoundBeaconList( - DafnySequence dafnyValue) { + DafnySequence< + ? extends software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CompoundBeacon + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( - dafnyValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::CompoundBeacon); + dafnyValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::CompoundBeacon + ); } public static List ConstructorList( - DafnySequence dafnyValue) { + DafnySequence< + ? extends software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Constructor + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( - dafnyValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::Constructor); + dafnyValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::Constructor + ); } public static List ConstructorPartList( - DafnySequence dafnyValue) { + DafnySequence< + ? extends software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ConstructorPart + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( - dafnyValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::ConstructorPart); + dafnyValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::ConstructorPart + ); } public static List EncryptedPartsList( - DafnySequence dafnyValue) { + DafnySequence< + ? extends software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.EncryptedPart + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( - dafnyValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::EncryptedPart); + dafnyValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::EncryptedPart + ); } public static List SignedPartsList( - DafnySequence dafnyValue) { + DafnySequence< + ? extends software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SignedPart + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( - dafnyValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::SignedPart); + dafnyValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::SignedPart + ); } public static List StandardBeaconList( - DafnySequence dafnyValue) { + DafnySequence< + ? extends software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.StandardBeacon + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( - dafnyValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::StandardBeacon); + dafnyValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::StandardBeacon + ); } public static List VirtualFieldList( - DafnySequence dafnyValue) { + DafnySequence< + ? extends software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualField + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( - dafnyValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::VirtualField); + dafnyValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::VirtualField + ); } public static List VirtualPartList( - DafnySequence dafnyValue) { + DafnySequence< + ? extends software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualPart + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( - dafnyValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::VirtualPart); + dafnyValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::VirtualPart + ); } public static List VirtualTransformList( - DafnySequence dafnyValue) { + DafnySequence< + ? extends software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualTransform + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( - dafnyValue, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::VirtualTransform); + dafnyValue, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::VirtualTransform + ); } public static Map AttributeActions( - DafnyMap, ? extends software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.CryptoAction> dafnyValue) { + DafnyMap< + ? extends DafnySequence, + ? extends software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.CryptoAction + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToMap( - dafnyValue, - software.amazon.smithy.dafny.conversion.ToNative.Simple::String, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::CryptoAction); - } - - public static Map DynamoDbTableEncryptionConfigList( - DafnyMap, ? extends software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbTableEncryptionConfig> dafnyValue) { + dafnyValue, + software.amazon.smithy.dafny.conversion.ToNative.Simple::String, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::CryptoAction + ); + } + + public static Map< + String, + DynamoDbTableEncryptionConfig + > DynamoDbTableEncryptionConfigList( + DafnyMap< + ? extends DafnySequence, + ? extends software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbTableEncryptionConfig + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToMap( - dafnyValue, - software.amazon.smithy.dafny.conversion.ToNative.Simple::String, - software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::DynamoDbTableEncryptionConfig); + dafnyValue, + software.amazon.smithy.dafny.conversion.ToNative.Simple::String, + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative::DynamoDbTableEncryptionConfig + ); } public static IDynamoDbKeyBranchKeyIdSupplier DynamoDbKeyBranchKeyIdSupplier( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier dafnyValue + ) { if (dafnyValue instanceof DynamoDbKeyBranchKeyIdSupplier.NativeWrapper) { return ((DynamoDbKeyBranchKeyIdSupplier.NativeWrapper) dafnyValue)._impl; } @@ -596,14 +906,17 @@ public static IDynamoDbKeyBranchKeyIdSupplier DynamoDbKeyBranchKeyIdSupplier( } public static ILegacyDynamoDbEncryptor LegacyDynamoDbEncryptor( - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor dafnyValue + ) { if (dafnyValue instanceof LegacyDynamoDbEncryptor.NativeWrapper) { return ((LegacyDynamoDbEncryptor.NativeWrapper) dafnyValue)._impl; } return LegacyDynamoDbEncryptor.wrap(dafnyValue); } - public static DynamoDbEncryption DynamoDbEncryption(IDynamoDbEncryptionClient dafnyValue) { + public static DynamoDbEncryption DynamoDbEncryption( + IDynamoDbEncryptionClient dafnyValue + ) { return new DynamoDbEncryption(dafnyValue); } } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/DynamoDbItemEncryptor.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/DynamoDbItemEncryptor.java index 422764b6d..a11d5cccf 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/DynamoDbItemEncryptor.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/DynamoDbItemEncryptor.java @@ -6,6 +6,7 @@ import Wrappers_Compile.Result; import java.lang.IllegalArgumentException; import java.util.Objects; +import software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.DynamoDbItemEncryptorClient; import software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.__default; import software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.Error; import software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.IDynamoDbItemEncryptorClient; @@ -16,12 +17,15 @@ import software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.model.EncryptItemOutput; public class DynamoDbItemEncryptor { + private final IDynamoDbItemEncryptorClient _impl; protected DynamoDbItemEncryptor(BuilderImpl builder) { DynamoDbItemEncryptorConfig input = builder.DynamoDbItemEncryptorConfig(); - software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.DynamoDbItemEncryptorConfig dafnyValue = ToDafny.DynamoDbItemEncryptorConfig(input); - Result result = __default.DynamoDbItemEncryptor(dafnyValue); + software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.DynamoDbItemEncryptorConfig dafnyValue = + ToDafny.DynamoDbItemEncryptorConfig(input); + Result result = + __default.DynamoDbItemEncryptor(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -43,8 +47,12 @@ public static Builder builder() { * @return Outputs for decrypting a DynamoDB Item. */ public DecryptItemOutput DecryptItem(DecryptItemInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.DecryptItemInput dafnyValue = ToDafny.DecryptItemInput(input); - Result result = this._impl.DecryptItem(dafnyValue); + software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.DecryptItemInput dafnyValue = + ToDafny.DecryptItemInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.DecryptItemOutput, + Error + > result = this._impl.DecryptItem(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -58,8 +66,12 @@ public DecryptItemOutput DecryptItem(DecryptItemInput input) { * @return Outputs for encrypting a DynamoDB Item. */ public EncryptItemOutput EncryptItem(EncryptItemInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.EncryptItemInput dafnyValue = ToDafny.EncryptItemInput(input); - Result result = this._impl.EncryptItem(dafnyValue); + software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.EncryptItemInput dafnyValue = + ToDafny.EncryptItemInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.EncryptItemOutput, + Error + > result = this._impl.EncryptItem(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -74,7 +86,9 @@ public interface Builder { /** * @param DynamoDbItemEncryptorConfig The configuration for the client-side encryption of DynamoDB items. */ - Builder DynamoDbItemEncryptorConfig(DynamoDbItemEncryptorConfig DynamoDbItemEncryptorConfig); + Builder DynamoDbItemEncryptorConfig( + DynamoDbItemEncryptorConfig DynamoDbItemEncryptorConfig + ); /** * @return The configuration for the client-side encryption of DynamoDB items. @@ -85,13 +99,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected DynamoDbItemEncryptorConfig DynamoDbItemEncryptorConfig; - protected BuilderImpl() { - } + protected BuilderImpl() {} public Builder DynamoDbItemEncryptorConfig( - DynamoDbItemEncryptorConfig DynamoDbItemEncryptorConfig) { + DynamoDbItemEncryptorConfig DynamoDbItemEncryptorConfig + ) { this.DynamoDbItemEncryptorConfig = DynamoDbItemEncryptorConfig; return this; } @@ -101,8 +116,10 @@ public DynamoDbItemEncryptorConfig DynamoDbItemEncryptorConfig() { } public DynamoDbItemEncryptor build() { - if (Objects.isNull(this.DynamoDbItemEncryptorConfig())) { - throw new IllegalArgumentException("Missing value for required field `DynamoDbItemEncryptorConfig`"); + if (Objects.isNull(this.DynamoDbItemEncryptorConfig())) { + throw new IllegalArgumentException( + "Missing value for required field `DynamoDbItemEncryptorConfig`" + ); } return new DynamoDbItemEncryptor(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/ToDafny.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/ToDafny.java index da8714f8b..c0ea35b5a 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/ToDafny.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/ToDafny.java @@ -32,6 +32,7 @@ import software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValue; public class ToDafny { + public static Error Error(RuntimeException nativeValue) { if (nativeValue instanceof DynamoDbItemEncryptorException) { return ToDafny.Error((DynamoDbItemEncryptorException) nativeValue); @@ -50,118 +51,263 @@ public static Error Error(OpaqueError nativeValue) { } public static Error Error(CollectionOfErrors nativeValue) { - DafnySequence list = software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( - nativeValue.list(), - ToDafny::Error, - Error._typeDescriptor()); - DafnySequence message = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.getMessage()); + DafnySequence list = + software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( + nativeValue.list(), + ToDafny::Error, + Error._typeDescriptor() + ); + DafnySequence message = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.getMessage() + ); return Error.create_CollectionOfErrors(list, message); } public static DecryptItemInput DecryptItemInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.model.DecryptItemInput nativeValue) { - DafnyMap, ? extends AttributeValue> encryptedItem; - encryptedItem = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.AttributeMap(nativeValue.encryptedItem()); + software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.model.DecryptItemInput nativeValue + ) { + DafnyMap< + ? extends DafnySequence, + ? extends AttributeValue + > encryptedItem; + encryptedItem = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.AttributeMap( + nativeValue.encryptedItem() + ); return new DecryptItemInput(encryptedItem); } public static DecryptItemOutput DecryptItemOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.model.DecryptItemOutput nativeValue) { - DafnyMap, ? extends AttributeValue> plaintextItem; - plaintextItem = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.AttributeMap(nativeValue.plaintextItem()); + software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.model.DecryptItemOutput nativeValue + ) { + DafnyMap< + ? extends DafnySequence, + ? extends AttributeValue + > plaintextItem; + plaintextItem = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.AttributeMap( + nativeValue.plaintextItem() + ); Option parsedHeader; - parsedHeader = Objects.nonNull(nativeValue.parsedHeader()) ? - Option.create_Some(ToDafny.ParsedHeader(nativeValue.parsedHeader())) + parsedHeader = + Objects.nonNull(nativeValue.parsedHeader()) + ? Option.create_Some(ToDafny.ParsedHeader(nativeValue.parsedHeader())) : Option.create_None(); return new DecryptItemOutput(plaintextItem, parsedHeader); } public static DynamoDbItemEncryptorConfig DynamoDbItemEncryptorConfig( - software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.model.DynamoDbItemEncryptorConfig nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.model.DynamoDbItemEncryptorConfig nativeValue + ) { DafnySequence logicalTableName; - logicalTableName = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.logicalTableName()); + logicalTableName = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.logicalTableName() + ); DafnySequence partitionKeyName; - partitionKeyName = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.partitionKeyName()); + partitionKeyName = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.partitionKeyName() + ); Option> sortKeyName; - sortKeyName = Objects.nonNull(nativeValue.sortKeyName()) ? - Option.create_Some(software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.sortKeyName())) + sortKeyName = + Objects.nonNull(nativeValue.sortKeyName()) + ? Option.create_Some( + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.sortKeyName() + ) + ) : Option.create_None(); - DafnyMap, ? extends CryptoAction> attributeActionsOnEncrypt; - attributeActionsOnEncrypt = software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny.AttributeActions(nativeValue.attributeActionsOnEncrypt()); - Option>> allowedUnsignedAttributes; - allowedUnsignedAttributes = (Objects.nonNull(nativeValue.allowedUnsignedAttributes()) && nativeValue.allowedUnsignedAttributes().size() > 0) ? - Option.create_Some(software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.AttributeNameList(nativeValue.allowedUnsignedAttributes())) + DafnyMap< + ? extends DafnySequence, + ? extends CryptoAction + > attributeActionsOnEncrypt; + attributeActionsOnEncrypt = + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny.AttributeActions( + nativeValue.attributeActionsOnEncrypt() + ); + Option< + DafnySequence> + > allowedUnsignedAttributes; + allowedUnsignedAttributes = + (Objects.nonNull(nativeValue.allowedUnsignedAttributes()) && + nativeValue.allowedUnsignedAttributes().size() > 0) + ? Option.create_Some( + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.AttributeNameList( + nativeValue.allowedUnsignedAttributes() + ) + ) : Option.create_None(); Option> allowedUnsignedAttributePrefix; - allowedUnsignedAttributePrefix = Objects.nonNull(nativeValue.allowedUnsignedAttributePrefix()) ? - Option.create_Some(software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.allowedUnsignedAttributePrefix())) + allowedUnsignedAttributePrefix = + Objects.nonNull(nativeValue.allowedUnsignedAttributePrefix()) + ? Option.create_Some( + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.allowedUnsignedAttributePrefix() + ) + ) : Option.create_None(); Option algorithmSuiteId; - algorithmSuiteId = Objects.nonNull(nativeValue.algorithmSuiteId()) ? - Option.create_Some(software.amazon.cryptography.materialproviders.ToDafny.DBEAlgorithmSuiteId(nativeValue.algorithmSuiteId())) + algorithmSuiteId = + Objects.nonNull(nativeValue.algorithmSuiteId()) + ? Option.create_Some( + software.amazon.cryptography.materialproviders.ToDafny.DBEAlgorithmSuiteId( + nativeValue.algorithmSuiteId() + ) + ) : Option.create_None(); Option keyring; - keyring = Objects.nonNull(nativeValue.keyring()) ? - Option.create_Some(software.amazon.cryptography.materialproviders.ToDafny.Keyring(nativeValue.keyring())) + keyring = + Objects.nonNull(nativeValue.keyring()) + ? Option.create_Some( + software.amazon.cryptography.materialproviders.ToDafny.Keyring( + nativeValue.keyring() + ) + ) : Option.create_None(); Option cmm; - cmm = Objects.nonNull(nativeValue.cmm()) ? - Option.create_Some(software.amazon.cryptography.materialproviders.ToDafny.CryptographicMaterialsManager(nativeValue.cmm())) + cmm = + Objects.nonNull(nativeValue.cmm()) + ? Option.create_Some( + software.amazon.cryptography.materialproviders.ToDafny.CryptographicMaterialsManager( + nativeValue.cmm() + ) + ) : Option.create_None(); Option legacyOverride; - legacyOverride = Objects.nonNull(nativeValue.legacyOverride()) ? - Option.create_Some(software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny.LegacyOverride(nativeValue.legacyOverride())) + legacyOverride = + Objects.nonNull(nativeValue.legacyOverride()) + ? Option.create_Some( + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny.LegacyOverride( + nativeValue.legacyOverride() + ) + ) : Option.create_None(); Option plaintextOverride; - plaintextOverride = Objects.nonNull(nativeValue.plaintextOverride()) ? - Option.create_Some(software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny.PlaintextOverride(nativeValue.plaintextOverride())) + plaintextOverride = + Objects.nonNull(nativeValue.plaintextOverride()) + ? Option.create_Some( + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny.PlaintextOverride( + nativeValue.plaintextOverride() + ) + ) : Option.create_None(); - return new DynamoDbItemEncryptorConfig(logicalTableName, partitionKeyName, sortKeyName, attributeActionsOnEncrypt, allowedUnsignedAttributes, allowedUnsignedAttributePrefix, algorithmSuiteId, keyring, cmm, legacyOverride, plaintextOverride); + return new DynamoDbItemEncryptorConfig( + logicalTableName, + partitionKeyName, + sortKeyName, + attributeActionsOnEncrypt, + allowedUnsignedAttributes, + allowedUnsignedAttributePrefix, + algorithmSuiteId, + keyring, + cmm, + legacyOverride, + plaintextOverride + ); } public static EncryptItemInput EncryptItemInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.model.EncryptItemInput nativeValue) { - DafnyMap, ? extends AttributeValue> plaintextItem; - plaintextItem = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.AttributeMap(nativeValue.plaintextItem()); + software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.model.EncryptItemInput nativeValue + ) { + DafnyMap< + ? extends DafnySequence, + ? extends AttributeValue + > plaintextItem; + plaintextItem = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.AttributeMap( + nativeValue.plaintextItem() + ); return new EncryptItemInput(plaintextItem); } public static EncryptItemOutput EncryptItemOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.model.EncryptItemOutput nativeValue) { - DafnyMap, ? extends AttributeValue> encryptedItem; - encryptedItem = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.AttributeMap(nativeValue.encryptedItem()); + software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.model.EncryptItemOutput nativeValue + ) { + DafnyMap< + ? extends DafnySequence, + ? extends AttributeValue + > encryptedItem; + encryptedItem = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.AttributeMap( + nativeValue.encryptedItem() + ); Option parsedHeader; - parsedHeader = Objects.nonNull(nativeValue.parsedHeader()) ? - Option.create_Some(ToDafny.ParsedHeader(nativeValue.parsedHeader())) + parsedHeader = + Objects.nonNull(nativeValue.parsedHeader()) + ? Option.create_Some(ToDafny.ParsedHeader(nativeValue.parsedHeader())) : Option.create_None(); return new EncryptItemOutput(encryptedItem, parsedHeader); } public static ParsedHeader ParsedHeader( - software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.model.ParsedHeader nativeValue) { - DafnyMap, ? extends CryptoAction> attributeActionsOnEncrypt; - attributeActionsOnEncrypt = software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny.AttributeActions(nativeValue.attributeActionsOnEncrypt()); + software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.model.ParsedHeader nativeValue + ) { + DafnyMap< + ? extends DafnySequence, + ? extends CryptoAction + > attributeActionsOnEncrypt; + attributeActionsOnEncrypt = + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny.AttributeActions( + nativeValue.attributeActionsOnEncrypt() + ); DBEAlgorithmSuiteId algorithmSuiteId; - algorithmSuiteId = software.amazon.cryptography.materialproviders.ToDafny.DBEAlgorithmSuiteId(nativeValue.algorithmSuiteId()); + algorithmSuiteId = + software.amazon.cryptography.materialproviders.ToDafny.DBEAlgorithmSuiteId( + nativeValue.algorithmSuiteId() + ); DafnySequence encryptedDataKeys; - encryptedDataKeys = software.amazon.cryptography.materialproviders.ToDafny.EncryptedDataKeyList(nativeValue.encryptedDataKeys()); - DafnyMap, ? extends DafnySequence> storedEncryptionContext; - storedEncryptionContext = software.amazon.cryptography.materialproviders.ToDafny.EncryptionContext(nativeValue.storedEncryptionContext()); - DafnyMap, ? extends DafnySequence> encryptionContext; - encryptionContext = software.amazon.cryptography.materialproviders.ToDafny.EncryptionContext(nativeValue.encryptionContext()); - DafnyMap, ? extends AttributeValue> selectorContext; - selectorContext = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.Key(nativeValue.selectorContext()); - return new ParsedHeader(attributeActionsOnEncrypt, algorithmSuiteId, encryptedDataKeys, storedEncryptionContext, encryptionContext, selectorContext); + encryptedDataKeys = + software.amazon.cryptography.materialproviders.ToDafny.EncryptedDataKeyList( + nativeValue.encryptedDataKeys() + ); + DafnyMap< + ? extends DafnySequence, + ? extends DafnySequence + > storedEncryptionContext; + storedEncryptionContext = + software.amazon.cryptography.materialproviders.ToDafny.EncryptionContext( + nativeValue.storedEncryptionContext() + ); + DafnyMap< + ? extends DafnySequence, + ? extends DafnySequence + > encryptionContext; + encryptionContext = + software.amazon.cryptography.materialproviders.ToDafny.EncryptionContext( + nativeValue.encryptionContext() + ); + DafnyMap< + ? extends DafnySequence, + ? extends AttributeValue + > selectorContext; + selectorContext = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.Key( + nativeValue.selectorContext() + ); + return new ParsedHeader( + attributeActionsOnEncrypt, + algorithmSuiteId, + encryptedDataKeys, + storedEncryptionContext, + encryptionContext, + selectorContext + ); } public static Error Error(DynamoDbItemEncryptorException nativeValue) { DafnySequence message; - message = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.message()); + message = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.message() + ); return new Error_DynamoDbItemEncryptorException(message); } public static IDynamoDbItemEncryptorClient DynamoDbItemEncryptor( - DynamoDbItemEncryptor nativeValue) { + DynamoDbItemEncryptor nativeValue + ) { return nativeValue.impl(); } } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/ToNative.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/ToNative.java index 02c93dfcb..327af1b36 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/ToNative.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/ToNative.java @@ -20,6 +20,7 @@ import software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.model.ParsedHeader; public class ToNative { + public static OpaqueError Error(Error_Opaque dafnyValue) { OpaqueError.Builder nativeBuilder = OpaqueError.builder(); nativeBuilder.obj(dafnyValue.dtor_obj()); @@ -29,17 +30,29 @@ public static OpaqueError Error(Error_Opaque dafnyValue) { public static CollectionOfErrors Error(Error_CollectionOfErrors dafnyValue) { CollectionOfErrors.Builder nativeBuilder = CollectionOfErrors.builder(); nativeBuilder.list( - software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( - dafnyValue.dtor_list(), - ToNative::Error)); - nativeBuilder.message(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_message())); + software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( + dafnyValue.dtor_list(), + ToNative::Error + ) + ); + nativeBuilder.message( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_message() + ) + ); return nativeBuilder.build(); } public static DynamoDbItemEncryptorException Error( - Error_DynamoDbItemEncryptorException dafnyValue) { - DynamoDbItemEncryptorException.Builder nativeBuilder = DynamoDbItemEncryptorException.builder(); - nativeBuilder.message(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_message())); + Error_DynamoDbItemEncryptorException dafnyValue + ) { + DynamoDbItemEncryptorException.Builder nativeBuilder = + DynamoDbItemEncryptorException.builder(); + nativeBuilder.message( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_message() + ) + ); return nativeBuilder.build(); } @@ -54,19 +67,29 @@ public static RuntimeException Error(Error dafnyValue) { return ToNative.Error((Error_CollectionOfErrors) dafnyValue); } if (dafnyValue.is_AwsCryptographyPrimitives()) { - return software.amazon.cryptography.primitives.ToNative.Error(dafnyValue.dtor_AwsCryptographyPrimitives()); + return software.amazon.cryptography.primitives.ToNative.Error( + dafnyValue.dtor_AwsCryptographyPrimitives() + ); } if (dafnyValue.is_ComAmazonawsDynamodb()) { - return software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.Error(dafnyValue.dtor_ComAmazonawsDynamodb()); + return software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.Error( + dafnyValue.dtor_ComAmazonawsDynamodb() + ); } if (dafnyValue.is_AwsCryptographyMaterialProviders()) { - return software.amazon.cryptography.materialproviders.ToNative.Error(dafnyValue.dtor_AwsCryptographyMaterialProviders()); + return software.amazon.cryptography.materialproviders.ToNative.Error( + dafnyValue.dtor_AwsCryptographyMaterialProviders() + ); } if (dafnyValue.is_AwsCryptographyDbEncryptionSdkStructuredEncryption()) { - return software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative.Error(dafnyValue.dtor_AwsCryptographyDbEncryptionSdkStructuredEncryption()); + return software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative.Error( + dafnyValue.dtor_AwsCryptographyDbEncryptionSdkStructuredEncryption() + ); } if (dafnyValue.is_AwsCryptographyDbEncryptionSdkDynamoDb()) { - return software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative.Error(dafnyValue.dtor_AwsCryptographyDbEncryptionSdkDynamoDb()); + return software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative.Error( + dafnyValue.dtor_AwsCryptographyDbEncryptionSdkDynamoDb() + ); } OpaqueError.Builder nativeBuilder = OpaqueError.builder(); nativeBuilder.obj(dafnyValue); @@ -74,86 +97,182 @@ public static RuntimeException Error(Error dafnyValue) { } public static DecryptItemInput DecryptItemInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.DecryptItemInput dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.DecryptItemInput dafnyValue + ) { DecryptItemInput.Builder nativeBuilder = DecryptItemInput.builder(); - nativeBuilder.encryptedItem(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.AttributeMap(dafnyValue.dtor_encryptedItem())); + nativeBuilder.encryptedItem( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.AttributeMap( + dafnyValue.dtor_encryptedItem() + ) + ); return nativeBuilder.build(); } public static DecryptItemOutput DecryptItemOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.DecryptItemOutput dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.DecryptItemOutput dafnyValue + ) { DecryptItemOutput.Builder nativeBuilder = DecryptItemOutput.builder(); - nativeBuilder.plaintextItem(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.AttributeMap(dafnyValue.dtor_plaintextItem())); + nativeBuilder.plaintextItem( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.AttributeMap( + dafnyValue.dtor_plaintextItem() + ) + ); if (dafnyValue.dtor_parsedHeader().is_Some()) { - nativeBuilder.parsedHeader(ToNative.ParsedHeader(dafnyValue.dtor_parsedHeader().dtor_value())); + nativeBuilder.parsedHeader( + ToNative.ParsedHeader(dafnyValue.dtor_parsedHeader().dtor_value()) + ); } return nativeBuilder.build(); } public static DynamoDbItemEncryptorConfig DynamoDbItemEncryptorConfig( - software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.DynamoDbItemEncryptorConfig dafnyValue) { - DynamoDbItemEncryptorConfig.Builder nativeBuilder = DynamoDbItemEncryptorConfig.builder(); - nativeBuilder.logicalTableName(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_logicalTableName())); - nativeBuilder.partitionKeyName(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_partitionKeyName())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.DynamoDbItemEncryptorConfig dafnyValue + ) { + DynamoDbItemEncryptorConfig.Builder nativeBuilder = + DynamoDbItemEncryptorConfig.builder(); + nativeBuilder.logicalTableName( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_logicalTableName() + ) + ); + nativeBuilder.partitionKeyName( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_partitionKeyName() + ) + ); if (dafnyValue.dtor_sortKeyName().is_Some()) { - nativeBuilder.sortKeyName(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_sortKeyName().dtor_value())); + nativeBuilder.sortKeyName( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_sortKeyName().dtor_value() + ) + ); } - nativeBuilder.attributeActionsOnEncrypt(software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative.AttributeActions(dafnyValue.dtor_attributeActionsOnEncrypt())); + nativeBuilder.attributeActionsOnEncrypt( + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative.AttributeActions( + dafnyValue.dtor_attributeActionsOnEncrypt() + ) + ); if (dafnyValue.dtor_allowedUnsignedAttributes().is_Some()) { - nativeBuilder.allowedUnsignedAttributes(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.AttributeNameList(dafnyValue.dtor_allowedUnsignedAttributes().dtor_value())); + nativeBuilder.allowedUnsignedAttributes( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.AttributeNameList( + dafnyValue.dtor_allowedUnsignedAttributes().dtor_value() + ) + ); } if (dafnyValue.dtor_allowedUnsignedAttributePrefix().is_Some()) { - nativeBuilder.allowedUnsignedAttributePrefix(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_allowedUnsignedAttributePrefix().dtor_value())); + nativeBuilder.allowedUnsignedAttributePrefix( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_allowedUnsignedAttributePrefix().dtor_value() + ) + ); } if (dafnyValue.dtor_algorithmSuiteId().is_Some()) { - nativeBuilder.algorithmSuiteId(software.amazon.cryptography.materialproviders.ToNative.DBEAlgorithmSuiteId(dafnyValue.dtor_algorithmSuiteId().dtor_value())); + nativeBuilder.algorithmSuiteId( + software.amazon.cryptography.materialproviders.ToNative.DBEAlgorithmSuiteId( + dafnyValue.dtor_algorithmSuiteId().dtor_value() + ) + ); } if (dafnyValue.dtor_keyring().is_Some()) { - nativeBuilder.keyring(software.amazon.cryptography.materialproviders.ToNative.Keyring(dafnyValue.dtor_keyring().dtor_value())); + nativeBuilder.keyring( + software.amazon.cryptography.materialproviders.ToNative.Keyring( + dafnyValue.dtor_keyring().dtor_value() + ) + ); } if (dafnyValue.dtor_cmm().is_Some()) { - nativeBuilder.cmm(software.amazon.cryptography.materialproviders.ToNative.CryptographicMaterialsManager(dafnyValue.dtor_cmm().dtor_value())); + nativeBuilder.cmm( + software.amazon.cryptography.materialproviders.ToNative.CryptographicMaterialsManager( + dafnyValue.dtor_cmm().dtor_value() + ) + ); } if (dafnyValue.dtor_legacyOverride().is_Some()) { - nativeBuilder.legacyOverride(software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative.LegacyOverride(dafnyValue.dtor_legacyOverride().dtor_value())); + nativeBuilder.legacyOverride( + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative.LegacyOverride( + dafnyValue.dtor_legacyOverride().dtor_value() + ) + ); } if (dafnyValue.dtor_plaintextOverride().is_Some()) { - nativeBuilder.plaintextOverride(software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative.PlaintextOverride(dafnyValue.dtor_plaintextOverride().dtor_value())); + nativeBuilder.plaintextOverride( + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative.PlaintextOverride( + dafnyValue.dtor_plaintextOverride().dtor_value() + ) + ); } return nativeBuilder.build(); } public static EncryptItemInput EncryptItemInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.EncryptItemInput dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.EncryptItemInput dafnyValue + ) { EncryptItemInput.Builder nativeBuilder = EncryptItemInput.builder(); - nativeBuilder.plaintextItem(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.AttributeMap(dafnyValue.dtor_plaintextItem())); + nativeBuilder.plaintextItem( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.AttributeMap( + dafnyValue.dtor_plaintextItem() + ) + ); return nativeBuilder.build(); } public static EncryptItemOutput EncryptItemOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.EncryptItemOutput dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.EncryptItemOutput dafnyValue + ) { EncryptItemOutput.Builder nativeBuilder = EncryptItemOutput.builder(); - nativeBuilder.encryptedItem(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.AttributeMap(dafnyValue.dtor_encryptedItem())); + nativeBuilder.encryptedItem( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.AttributeMap( + dafnyValue.dtor_encryptedItem() + ) + ); if (dafnyValue.dtor_parsedHeader().is_Some()) { - nativeBuilder.parsedHeader(ToNative.ParsedHeader(dafnyValue.dtor_parsedHeader().dtor_value())); + nativeBuilder.parsedHeader( + ToNative.ParsedHeader(dafnyValue.dtor_parsedHeader().dtor_value()) + ); } return nativeBuilder.build(); } public static ParsedHeader ParsedHeader( - software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.ParsedHeader dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.ParsedHeader dafnyValue + ) { ParsedHeader.Builder nativeBuilder = ParsedHeader.builder(); - nativeBuilder.attributeActionsOnEncrypt(software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative.AttributeActions(dafnyValue.dtor_attributeActionsOnEncrypt())); - nativeBuilder.algorithmSuiteId(software.amazon.cryptography.materialproviders.ToNative.DBEAlgorithmSuiteId(dafnyValue.dtor_algorithmSuiteId())); - nativeBuilder.encryptedDataKeys(software.amazon.cryptography.materialproviders.ToNative.EncryptedDataKeyList(dafnyValue.dtor_encryptedDataKeys())); - nativeBuilder.storedEncryptionContext(software.amazon.cryptography.materialproviders.ToNative.EncryptionContext(dafnyValue.dtor_storedEncryptionContext())); - nativeBuilder.encryptionContext(software.amazon.cryptography.materialproviders.ToNative.EncryptionContext(dafnyValue.dtor_encryptionContext())); - nativeBuilder.selectorContext(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.Key(dafnyValue.dtor_selectorContext())); + nativeBuilder.attributeActionsOnEncrypt( + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative.AttributeActions( + dafnyValue.dtor_attributeActionsOnEncrypt() + ) + ); + nativeBuilder.algorithmSuiteId( + software.amazon.cryptography.materialproviders.ToNative.DBEAlgorithmSuiteId( + dafnyValue.dtor_algorithmSuiteId() + ) + ); + nativeBuilder.encryptedDataKeys( + software.amazon.cryptography.materialproviders.ToNative.EncryptedDataKeyList( + dafnyValue.dtor_encryptedDataKeys() + ) + ); + nativeBuilder.storedEncryptionContext( + software.amazon.cryptography.materialproviders.ToNative.EncryptionContext( + dafnyValue.dtor_storedEncryptionContext() + ) + ); + nativeBuilder.encryptionContext( + software.amazon.cryptography.materialproviders.ToNative.EncryptionContext( + dafnyValue.dtor_encryptionContext() + ) + ); + nativeBuilder.selectorContext( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.Key( + dafnyValue.dtor_selectorContext() + ) + ); return nativeBuilder.build(); } public static DynamoDbItemEncryptor DynamoDbItemEncryptor( - IDynamoDbItemEncryptorClient dafnyValue) { + IDynamoDbItemEncryptorClient dafnyValue + ) { return new DynamoDbItemEncryptor(dafnyValue); } } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/CollectionOfErrors.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/CollectionOfErrors.java index b9a2fd5cf..1bb59f8f4 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/CollectionOfErrors.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/CollectionOfErrors.java @@ -6,6 +6,7 @@ import java.util.List; public class CollectionOfErrors extends RuntimeException { + /** * The list of Exceptions encountered. */ @@ -90,14 +91,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String message; protected Throwable cause; protected List list; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(CollectionOfErrors model) { this.cause = model.getCause(); diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/DecryptItemInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/DecryptItemInput.java index b98a9da19..b9668a63f 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/DecryptItemInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/DecryptItemInput.java @@ -11,6 +11,7 @@ * Inputs for decrypting a DynamoDB Item. */ public class DecryptItemInput { + /** * The encrypted DynamoDB item to decrypt. */ @@ -50,10 +51,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected Map encryptedItem; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(DecryptItemInput model) { this.encryptedItem = model.encryptedItem(); @@ -69,8 +70,10 @@ public Map encryptedItem() { } public DecryptItemInput build() { - if (Objects.isNull(this.encryptedItem())) { - throw new IllegalArgumentException("Missing value for required field `encryptedItem`"); + if (Objects.isNull(this.encryptedItem())) { + throw new IllegalArgumentException( + "Missing value for required field `encryptedItem`" + ); } return new DecryptItemInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/DecryptItemOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/DecryptItemOutput.java index 7802fc882..381783aac 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/DecryptItemOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/DecryptItemOutput.java @@ -11,6 +11,7 @@ * Outputs for decrypting a DynamoDB Item. */ public class DecryptItemOutput { + /** * The decrypted DynamoDB item. */ @@ -73,12 +74,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected Map plaintextItem; protected ParsedHeader parsedHeader; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(DecryptItemOutput model) { this.plaintextItem = model.plaintextItem(); @@ -104,8 +105,10 @@ public ParsedHeader parsedHeader() { } public DecryptItemOutput build() { - if (Objects.isNull(this.plaintextItem())) { - throw new IllegalArgumentException("Missing value for required field `plaintextItem`"); + if (Objects.isNull(this.plaintextItem())) { + throw new IllegalArgumentException( + "Missing value for required field `plaintextItem`" + ); } return new DecryptItemOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/DynamoDbItemEncryptorConfig.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/DynamoDbItemEncryptorConfig.java index 2572edfbd..cc05ea694 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/DynamoDbItemEncryptorConfig.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/DynamoDbItemEncryptorConfig.java @@ -19,6 +19,7 @@ * The configuration for the client-side encryption of DynamoDB items. */ public class DynamoDbItemEncryptorConfig { + /** * The logical table name for this table. This is the name that is cryptographically bound with your data. This can be the same as the actual DynamoDB table name. It's purpose is to be distinct from the DynamoDB table name so that the data may still be authenticated if being read from different (but logically similar) tables, such as a backup table. */ @@ -80,7 +81,8 @@ protected DynamoDbItemEncryptorConfig(BuilderImpl builder) { this.sortKeyName = builder.sortKeyName(); this.attributeActionsOnEncrypt = builder.attributeActionsOnEncrypt(); this.allowedUnsignedAttributes = builder.allowedUnsignedAttributes(); - this.allowedUnsignedAttributePrefix = builder.allowedUnsignedAttributePrefix(); + this.allowedUnsignedAttributePrefix = + builder.allowedUnsignedAttributePrefix(); this.algorithmSuiteId = builder.algorithmSuiteId(); this.keyring = builder.keyring(); this.cmm = builder.cmm(); @@ -207,7 +209,9 @@ public interface Builder { /** * @param attributeActionsOnEncrypt A map that describes what attributes should be encrypted and/or signed on encrypt. This map must contain all attributes that might be encountered during encryption. */ - Builder attributeActionsOnEncrypt(Map attributeActionsOnEncrypt); + Builder attributeActionsOnEncrypt( + Map attributeActionsOnEncrypt + ); /** * @return A map that describes what attributes should be encrypted and/or signed on encrypt. This map must contain all attributes that might be encountered during encryption. @@ -227,7 +231,9 @@ public interface Builder { /** * @param allowedUnsignedAttributePrefix A prefix such that, if during decryption any attribute has a name with this prefix, it is treated as unsigned. */ - Builder allowedUnsignedAttributePrefix(String allowedUnsignedAttributePrefix); + Builder allowedUnsignedAttributePrefix( + String allowedUnsignedAttributePrefix + ); /** * @return A prefix such that, if during decryption any attribute has a name with this prefix, it is treated as unsigned. @@ -288,6 +294,7 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String logicalTableName; protected String partitionKeyName; @@ -310,8 +317,7 @@ static class BuilderImpl implements Builder { protected PlaintextOverride plaintextOverride; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(DynamoDbItemEncryptorConfig model) { this.logicalTableName = model.logicalTableName(); @@ -319,7 +325,8 @@ protected BuilderImpl(DynamoDbItemEncryptorConfig model) { this.sortKeyName = model.sortKeyName(); this.attributeActionsOnEncrypt = model.attributeActionsOnEncrypt(); this.allowedUnsignedAttributes = model.allowedUnsignedAttributes(); - this.allowedUnsignedAttributePrefix = model.allowedUnsignedAttributePrefix(); + this.allowedUnsignedAttributePrefix = + model.allowedUnsignedAttributePrefix(); this.algorithmSuiteId = model.algorithmSuiteId(); this.keyring = model.keyring(); this.cmm = model.cmm(); @@ -354,7 +361,9 @@ public String sortKeyName() { return this.sortKeyName; } - public Builder attributeActionsOnEncrypt(Map attributeActionsOnEncrypt) { + public Builder attributeActionsOnEncrypt( + Map attributeActionsOnEncrypt + ) { this.attributeActionsOnEncrypt = attributeActionsOnEncrypt; return this; } @@ -363,7 +372,9 @@ public Map attributeActionsOnEncrypt() { return this.attributeActionsOnEncrypt; } - public Builder allowedUnsignedAttributes(List allowedUnsignedAttributes) { + public Builder allowedUnsignedAttributes( + List allowedUnsignedAttributes + ) { this.allowedUnsignedAttributes = allowedUnsignedAttributes; return this; } @@ -372,7 +383,9 @@ public List allowedUnsignedAttributes() { return this.allowedUnsignedAttributes; } - public Builder allowedUnsignedAttributePrefix(String allowedUnsignedAttributePrefix) { + public Builder allowedUnsignedAttributePrefix( + String allowedUnsignedAttributePrefix + ) { this.allowedUnsignedAttributePrefix = allowedUnsignedAttributePrefix; return this; } @@ -427,29 +440,58 @@ public PlaintextOverride plaintextOverride() { } public DynamoDbItemEncryptorConfig build() { - if (Objects.isNull(this.logicalTableName())) { - throw new IllegalArgumentException("Missing value for required field `logicalTableName`"); + if (Objects.isNull(this.logicalTableName())) { + throw new IllegalArgumentException( + "Missing value for required field `logicalTableName`" + ); } - if (Objects.isNull(this.partitionKeyName())) { - throw new IllegalArgumentException("Missing value for required field `partitionKeyName`"); + if (Objects.isNull(this.partitionKeyName())) { + throw new IllegalArgumentException( + "Missing value for required field `partitionKeyName`" + ); } - if (Objects.nonNull(this.partitionKeyName()) && this.partitionKeyName().length() < 1) { - throw new IllegalArgumentException("The size of `partitionKeyName` must be greater than or equal to 1"); + if ( + Objects.nonNull(this.partitionKeyName()) && + this.partitionKeyName().length() < 1 + ) { + throw new IllegalArgumentException( + "The size of `partitionKeyName` must be greater than or equal to 1" + ); } - if (Objects.nonNull(this.partitionKeyName()) && this.partitionKeyName().length() > 255) { - throw new IllegalArgumentException("The size of `partitionKeyName` must be less than or equal to 255"); + if ( + Objects.nonNull(this.partitionKeyName()) && + this.partitionKeyName().length() > 255 + ) { + throw new IllegalArgumentException( + "The size of `partitionKeyName` must be less than or equal to 255" + ); } - if (Objects.nonNull(this.sortKeyName()) && this.sortKeyName().length() < 1) { - throw new IllegalArgumentException("The size of `sortKeyName` must be greater than or equal to 1"); + if ( + Objects.nonNull(this.sortKeyName()) && this.sortKeyName().length() < 1 + ) { + throw new IllegalArgumentException( + "The size of `sortKeyName` must be greater than or equal to 1" + ); } - if (Objects.nonNull(this.sortKeyName()) && this.sortKeyName().length() > 255) { - throw new IllegalArgumentException("The size of `sortKeyName` must be less than or equal to 255"); + if ( + Objects.nonNull(this.sortKeyName()) && this.sortKeyName().length() > 255 + ) { + throw new IllegalArgumentException( + "The size of `sortKeyName` must be less than or equal to 255" + ); } - if (Objects.isNull(this.attributeActionsOnEncrypt())) { - throw new IllegalArgumentException("Missing value for required field `attributeActionsOnEncrypt`"); + if (Objects.isNull(this.attributeActionsOnEncrypt())) { + throw new IllegalArgumentException( + "Missing value for required field `attributeActionsOnEncrypt`" + ); } - if (Objects.nonNull(this.allowedUnsignedAttributes()) && this.allowedUnsignedAttributes().size() < 1) { - throw new IllegalArgumentException("The size of `allowedUnsignedAttributes` must be greater than or equal to 1"); + if ( + Objects.nonNull(this.allowedUnsignedAttributes()) && + this.allowedUnsignedAttributes().size() < 1 + ) { + throw new IllegalArgumentException( + "The size of `allowedUnsignedAttributes` must be greater than or equal to 1" + ); } return new DynamoDbItemEncryptorConfig(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/DynamoDbItemEncryptorException.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/DynamoDbItemEncryptorException.java index 304b9c723..2ed05cff1 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/DynamoDbItemEncryptorException.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/DynamoDbItemEncryptorException.java @@ -6,6 +6,7 @@ import java.util.Objects; public class DynamoDbItemEncryptorException extends RuntimeException { + protected DynamoDbItemEncryptorException(BuilderImpl builder) { super(messageFromBuilder(builder), builder.cause()); } @@ -67,12 +68,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String message; protected Throwable cause; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(DynamoDbItemEncryptorException model) { this.message = model.message(); @@ -98,8 +99,10 @@ public Throwable cause() { } public DynamoDbItemEncryptorException build() { - if (Objects.isNull(this.message())) { - throw new IllegalArgumentException("Missing value for required field `message`"); + if (Objects.isNull(this.message())) { + throw new IllegalArgumentException( + "Missing value for required field `message`" + ); } return new DynamoDbItemEncryptorException(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/EncryptItemInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/EncryptItemInput.java index ae5ae3ec7..ca8ad2b89 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/EncryptItemInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/EncryptItemInput.java @@ -11,6 +11,7 @@ * Inputs for encrypting a DynamoDB Item. */ public class EncryptItemInput { + /** * The DynamoDB item to encrypt. */ @@ -50,10 +51,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected Map plaintextItem; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(EncryptItemInput model) { this.plaintextItem = model.plaintextItem(); @@ -69,8 +70,10 @@ public Map plaintextItem() { } public EncryptItemInput build() { - if (Objects.isNull(this.plaintextItem())) { - throw new IllegalArgumentException("Missing value for required field `plaintextItem`"); + if (Objects.isNull(this.plaintextItem())) { + throw new IllegalArgumentException( + "Missing value for required field `plaintextItem`" + ); } return new EncryptItemInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/EncryptItemOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/EncryptItemOutput.java index db1046314..62ee535e9 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/EncryptItemOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/EncryptItemOutput.java @@ -11,6 +11,7 @@ * Outputs for encrypting a DynamoDB Item. */ public class EncryptItemOutput { + /** * The encrypted DynamoDB item. */ @@ -73,12 +74,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected Map encryptedItem; protected ParsedHeader parsedHeader; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(EncryptItemOutput model) { this.encryptedItem = model.encryptedItem(); @@ -104,8 +105,10 @@ public ParsedHeader parsedHeader() { } public EncryptItemOutput build() { - if (Objects.isNull(this.encryptedItem())) { - throw new IllegalArgumentException("Missing value for required field `encryptedItem`"); + if (Objects.isNull(this.encryptedItem())) { + throw new IllegalArgumentException( + "Missing value for required field `encryptedItem`" + ); } return new EncryptItemOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/OpaqueError.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/OpaqueError.java index 007399ea5..1962ee979 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/OpaqueError.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/OpaqueError.java @@ -4,6 +4,7 @@ package software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.model; public class OpaqueError extends RuntimeException { + /** * The unexpected object encountered. It MIGHT BE an Exception, but that is not guaranteed. */ @@ -88,14 +89,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String message; protected Throwable cause; protected Object obj; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(OpaqueError model) { this.cause = model.getCause(); @@ -131,7 +132,9 @@ public Object obj() { } public OpaqueError build() { - if (this.obj != null && this.cause == null && this.obj instanceof Throwable) { + if ( + this.obj != null && this.cause == null && this.obj instanceof Throwable + ) { this.cause = (Throwable) this.obj; } else if (this.obj == null && this.cause != null) { this.obj = this.cause; diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/ParsedHeader.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/ParsedHeader.java index 72531d67e..2fb8d7545 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/ParsedHeader.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/model/ParsedHeader.java @@ -15,6 +15,7 @@ * A parsed version of the header that was written with or read on an encrypted DynamoDB item. */ public class ParsedHeader { + /** * The non-DO_NOTHING Crypto Actions that were configured when this item was originally encrypted. */ @@ -108,7 +109,9 @@ public interface Builder { /** * @param attributeActionsOnEncrypt The non-DO_NOTHING Crypto Actions that were configured when this item was originally encrypted. */ - Builder attributeActionsOnEncrypt(Map attributeActionsOnEncrypt); + Builder attributeActionsOnEncrypt( + Map attributeActionsOnEncrypt + ); /** * @return The non-DO_NOTHING Crypto Actions that were configured when this item was originally encrypted. @@ -138,7 +141,9 @@ public interface Builder { /** * @param storedEncryptionContext The portion of the encryption context that was stored in the header of this item. */ - Builder storedEncryptionContext(Map storedEncryptionContext); + Builder storedEncryptionContext( + Map storedEncryptionContext + ); /** * @return The portion of the encryption context that was stored in the header of this item. @@ -169,6 +174,7 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected Map attributeActionsOnEncrypt; protected DBEAlgorithmSuiteId algorithmSuiteId; @@ -181,8 +187,7 @@ static class BuilderImpl implements Builder { protected Map selectorContext; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(ParsedHeader model) { this.attributeActionsOnEncrypt = model.attributeActionsOnEncrypt(); @@ -193,7 +198,9 @@ protected BuilderImpl(ParsedHeader model) { this.selectorContext = model.selectorContext(); } - public Builder attributeActionsOnEncrypt(Map attributeActionsOnEncrypt) { + public Builder attributeActionsOnEncrypt( + Map attributeActionsOnEncrypt + ) { this.attributeActionsOnEncrypt = attributeActionsOnEncrypt; return this; } @@ -220,7 +227,9 @@ public List encryptedDataKeys() { return this.encryptedDataKeys; } - public Builder storedEncryptionContext(Map storedEncryptionContext) { + public Builder storedEncryptionContext( + Map storedEncryptionContext + ) { this.storedEncryptionContext = storedEncryptionContext; return this; } @@ -238,7 +247,9 @@ public Map encryptionContext() { return this.encryptionContext; } - public Builder selectorContext(Map selectorContext) { + public Builder selectorContext( + Map selectorContext + ) { this.selectorContext = selectorContext; return this; } @@ -248,23 +259,35 @@ public Map selectorContext() { } public ParsedHeader build() { - if (Objects.isNull(this.attributeActionsOnEncrypt())) { - throw new IllegalArgumentException("Missing value for required field `attributeActionsOnEncrypt`"); + if (Objects.isNull(this.attributeActionsOnEncrypt())) { + throw new IllegalArgumentException( + "Missing value for required field `attributeActionsOnEncrypt`" + ); } - if (Objects.isNull(this.algorithmSuiteId())) { - throw new IllegalArgumentException("Missing value for required field `algorithmSuiteId`"); + if (Objects.isNull(this.algorithmSuiteId())) { + throw new IllegalArgumentException( + "Missing value for required field `algorithmSuiteId`" + ); } - if (Objects.isNull(this.encryptedDataKeys())) { - throw new IllegalArgumentException("Missing value for required field `encryptedDataKeys`"); + if (Objects.isNull(this.encryptedDataKeys())) { + throw new IllegalArgumentException( + "Missing value for required field `encryptedDataKeys`" + ); } - if (Objects.isNull(this.storedEncryptionContext())) { - throw new IllegalArgumentException("Missing value for required field `storedEncryptionContext`"); + if (Objects.isNull(this.storedEncryptionContext())) { + throw new IllegalArgumentException( + "Missing value for required field `storedEncryptionContext`" + ); } - if (Objects.isNull(this.encryptionContext())) { - throw new IllegalArgumentException("Missing value for required field `encryptionContext`"); + if (Objects.isNull(this.encryptionContext())) { + throw new IllegalArgumentException( + "Missing value for required field `encryptionContext`" + ); } - if (Objects.isNull(this.selectorContext())) { - throw new IllegalArgumentException("Missing value for required field `selectorContext`"); + if (Objects.isNull(this.selectorContext())) { + throw new IllegalArgumentException( + "Missing value for required field `selectorContext`" + ); } return new ParsedHeader(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/AsSet.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/AsSet.java index 0c217c8b6..ac505632d 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/AsSet.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/AsSet.java @@ -7,8 +7,8 @@ * Attribute must be a Set. Beacon value will also be a Set. */ public class AsSet { - protected AsSet(BuilderImpl builder) { - } + + protected AsSet(BuilderImpl builder) {} public Builder toBuilder() { return new BuilderImpl(this); @@ -23,11 +23,10 @@ public interface Builder { } static class BuilderImpl implements Builder { - protected BuilderImpl() { - } - protected BuilderImpl(AsSet model) { - } + protected BuilderImpl() {} + + protected BuilderImpl(AsSet model) {} public AsSet build() { return new AsSet(this); diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/BeaconKeySource.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/BeaconKeySource.java index 497eb096f..afd7273e0 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/BeaconKeySource.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/BeaconKeySource.java @@ -6,6 +6,7 @@ import java.util.Objects; public class BeaconKeySource { + /** * The configuration for using a single Beacon Key. */ @@ -68,12 +69,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected SingleKeyStore single; protected MultiKeyStore multi; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(BeaconKeySource model) { this.single = model.single(); @@ -100,13 +101,15 @@ public MultiKeyStore multi() { public BeaconKeySource build() { if (!onlyOneNonNull()) { - throw new IllegalArgumentException("`BeaconKeySource` is a Union. A Union MUST have one and only one value set."); + throw new IllegalArgumentException( + "`BeaconKeySource` is a Union. A Union MUST have one and only one value set." + ); } return new BeaconKeySource(this); } private boolean onlyOneNonNull() { - Object[] allValues = {this.single, this.multi}; + Object[] allValues = { this.single, this.multi }; boolean haveOneNonNull = false; for (Object o : allValues) { if (Objects.nonNull(o)) { diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/BeaconStyle.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/BeaconStyle.java index faf05ebea..29a79b070 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/BeaconStyle.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/BeaconStyle.java @@ -6,6 +6,7 @@ import java.util.Objects; public class BeaconStyle { + /** * Attribute must be used as part of a Compound Beacon, never alone. */ @@ -114,6 +115,7 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected PartOnly partOnly; protected Shared shared; @@ -122,8 +124,7 @@ static class BuilderImpl implements Builder { protected SharedSet sharedSet; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(BeaconStyle model) { this.partOnly = model.partOnly(); @@ -170,13 +171,20 @@ public SharedSet sharedSet() { public BeaconStyle build() { if (!onlyOneNonNull()) { - throw new IllegalArgumentException("`BeaconStyle` is a Union. A Union MUST have one and only one value set."); + throw new IllegalArgumentException( + "`BeaconStyle` is a Union. A Union MUST have one and only one value set." + ); } return new BeaconStyle(this); } private boolean onlyOneNonNull() { - Object[] allValues = {this.partOnly, this.shared, this.asSet, this.sharedSet}; + Object[] allValues = { + this.partOnly, + this.shared, + this.asSet, + this.sharedSet, + }; boolean haveOneNonNull = false; for (Object o : allValues) { if (Objects.nonNull(o)) { diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/BeaconVersion.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/BeaconVersion.java index 3bc307d61..d3cc346c4 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/BeaconVersion.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/BeaconVersion.java @@ -11,6 +11,7 @@ * The configuration for a particular version of searchable encryption. Currently the only supported version is '1'. */ public class BeaconVersion { + /** * The version of searchable encryption configured. This must be '1'. */ @@ -211,6 +212,7 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected int version; private boolean _versionSet = false; @@ -229,8 +231,7 @@ static class BuilderImpl implements Builder { protected List signedParts; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(BeaconVersion model) { this.version = model.version(); @@ -319,34 +320,67 @@ public List signedParts() { public BeaconVersion build() { if (!this._versionSet) { - throw new IllegalArgumentException("Missing value for required field `version`"); + throw new IllegalArgumentException( + "Missing value for required field `version`" + ); } if (this._versionSet && this.version() < 1) { - throw new IllegalArgumentException("`version` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "`version` must be greater than or equal to 1" + ); } - if (Objects.isNull(this.keyStore())) { - throw new IllegalArgumentException("Missing value for required field `keyStore`"); + if (Objects.isNull(this.keyStore())) { + throw new IllegalArgumentException( + "Missing value for required field `keyStore`" + ); } - if (Objects.isNull(this.keySource())) { - throw new IllegalArgumentException("Missing value for required field `keySource`"); + if (Objects.isNull(this.keySource())) { + throw new IllegalArgumentException( + "Missing value for required field `keySource`" + ); } - if (Objects.isNull(this.standardBeacons())) { - throw new IllegalArgumentException("Missing value for required field `standardBeacons`"); + if (Objects.isNull(this.standardBeacons())) { + throw new IllegalArgumentException( + "Missing value for required field `standardBeacons`" + ); } - if (Objects.nonNull(this.standardBeacons()) && this.standardBeacons().size() < 1) { - throw new IllegalArgumentException("The size of `standardBeacons` must be greater than or equal to 1"); + if ( + Objects.nonNull(this.standardBeacons()) && + this.standardBeacons().size() < 1 + ) { + throw new IllegalArgumentException( + "The size of `standardBeacons` must be greater than or equal to 1" + ); } - if (Objects.nonNull(this.compoundBeacons()) && this.compoundBeacons().size() < 1) { - throw new IllegalArgumentException("The size of `compoundBeacons` must be greater than or equal to 1"); + if ( + Objects.nonNull(this.compoundBeacons()) && + this.compoundBeacons().size() < 1 + ) { + throw new IllegalArgumentException( + "The size of `compoundBeacons` must be greater than or equal to 1" + ); } - if (Objects.nonNull(this.virtualFields()) && this.virtualFields().size() < 1) { - throw new IllegalArgumentException("The size of `virtualFields` must be greater than or equal to 1"); + if ( + Objects.nonNull(this.virtualFields()) && this.virtualFields().size() < 1 + ) { + throw new IllegalArgumentException( + "The size of `virtualFields` must be greater than or equal to 1" + ); } - if (Objects.nonNull(this.encryptedParts()) && this.encryptedParts().size() < 1) { - throw new IllegalArgumentException("The size of `encryptedParts` must be greater than or equal to 1"); + if ( + Objects.nonNull(this.encryptedParts()) && + this.encryptedParts().size() < 1 + ) { + throw new IllegalArgumentException( + "The size of `encryptedParts` must be greater than or equal to 1" + ); } - if (Objects.nonNull(this.signedParts()) && this.signedParts().size() < 1) { - throw new IllegalArgumentException("The size of `signedParts` must be greater than or equal to 1"); + if ( + Objects.nonNull(this.signedParts()) && this.signedParts().size() < 1 + ) { + throw new IllegalArgumentException( + "The size of `signedParts` must be greater than or equal to 1" + ); } return new BeaconVersion(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/CollectionOfErrors.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/CollectionOfErrors.java index a6739ce8b..c6f441887 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/CollectionOfErrors.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/CollectionOfErrors.java @@ -6,6 +6,7 @@ import java.util.List; public class CollectionOfErrors extends RuntimeException { + /** * The list of Exceptions encountered. */ @@ -90,14 +91,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String message; protected Throwable cause; protected List list; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(CollectionOfErrors model) { this.cause = model.getCause(); diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/CompoundBeacon.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/CompoundBeacon.java index 92ab41ff1..79869d12d 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/CompoundBeacon.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/CompoundBeacon.java @@ -10,6 +10,7 @@ * The configuration for a Compound Beacon. */ public class CompoundBeacon { + /** * The name of the Compound Beacon. */ @@ -141,6 +142,7 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String name; protected String split; @@ -151,8 +153,7 @@ static class BuilderImpl implements Builder { protected List constructors; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(CompoundBeacon model) { this.name = model.name(); @@ -208,26 +209,42 @@ public List constructors() { } public CompoundBeacon build() { - if (Objects.isNull(this.name())) { - throw new IllegalArgumentException("Missing value for required field `name`"); + if (Objects.isNull(this.name())) { + throw new IllegalArgumentException( + "Missing value for required field `name`" + ); } - if (Objects.isNull(this.split())) { - throw new IllegalArgumentException("Missing value for required field `split`"); + if (Objects.isNull(this.split())) { + throw new IllegalArgumentException( + "Missing value for required field `split`" + ); } if (Objects.nonNull(this.split()) && this.split().length() < 1) { - throw new IllegalArgumentException("The size of `split` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "The size of `split` must be greater than or equal to 1" + ); } if (Objects.nonNull(this.split()) && this.split().length() > 1) { - throw new IllegalArgumentException("The size of `split` must be less than or equal to 1"); + throw new IllegalArgumentException( + "The size of `split` must be less than or equal to 1" + ); } if (Objects.nonNull(this.encrypted()) && this.encrypted().size() < 1) { - throw new IllegalArgumentException("The size of `encrypted` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "The size of `encrypted` must be greater than or equal to 1" + ); } if (Objects.nonNull(this.signed()) && this.signed().size() < 1) { - throw new IllegalArgumentException("The size of `signed` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "The size of `signed` must be greater than or equal to 1" + ); } - if (Objects.nonNull(this.constructors()) && this.constructors().size() < 1) { - throw new IllegalArgumentException("The size of `constructors` must be greater than or equal to 1"); + if ( + Objects.nonNull(this.constructors()) && this.constructors().size() < 1 + ) { + throw new IllegalArgumentException( + "The size of `constructors` must be greater than or equal to 1" + ); } return new CompoundBeacon(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Constructor.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Constructor.java index 8e7da3ece..cde63d686 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Constructor.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Constructor.java @@ -10,6 +10,7 @@ * The configuration for a particular Compound Beacon construction. */ public class Constructor { + /** * The ordered list of parts for a particular Compound Beacon construction. If the item contains all required Parts, a Compound beacon will be written using each Part that exists on the item, in the order specified. */ @@ -49,10 +50,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected List parts; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(Constructor model) { this.parts = model.parts(); @@ -68,11 +69,15 @@ public List parts() { } public Constructor build() { - if (Objects.isNull(this.parts())) { - throw new IllegalArgumentException("Missing value for required field `parts`"); + if (Objects.isNull(this.parts())) { + throw new IllegalArgumentException( + "Missing value for required field `parts`" + ); } if (Objects.nonNull(this.parts()) && this.parts().size() < 1) { - throw new IllegalArgumentException("The size of `parts` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "The size of `parts` must be greater than or equal to 1" + ); } return new Constructor(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/ConstructorPart.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/ConstructorPart.java index 295eabd26..a44a28a64 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/ConstructorPart.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/ConstructorPart.java @@ -9,6 +9,7 @@ * A part of a Compound Becaon Construction. */ public class ConstructorPart { + /** * The name of the Encrypted Part or Signed Part for which this constructor part gets a value. */ @@ -71,12 +72,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String name; protected Boolean required; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(ConstructorPart model) { this.name = model.name(); @@ -102,11 +103,15 @@ public Boolean required() { } public ConstructorPart build() { - if (Objects.isNull(this.name())) { - throw new IllegalArgumentException("Missing value for required field `name`"); + if (Objects.isNull(this.name())) { + throw new IllegalArgumentException( + "Missing value for required field `name`" + ); } - if (Objects.isNull(this.required())) { - throw new IllegalArgumentException("Missing value for required field `required`"); + if (Objects.isNull(this.required())) { + throw new IllegalArgumentException( + "Missing value for required field `required`" + ); } return new ConstructorPart(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/CreateDynamoDbEncryptionBranchKeyIdSupplierInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/CreateDynamoDbEncryptionBranchKeyIdSupplierInput.java index 9f12c507f..b9981a00d 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/CreateDynamoDbEncryptionBranchKeyIdSupplierInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/CreateDynamoDbEncryptionBranchKeyIdSupplierInput.java @@ -11,12 +11,15 @@ * Inputs for creating a Branch Key Supplier from a DynamoDB Key Branch Key Id Supplier */ public class CreateDynamoDbEncryptionBranchKeyIdSupplierInput { + /** * An implementation of the DynamoDbKeyBranchKeyIdSupplier interface, which determines what Branch Key to use for data key wrapping/unwrapping based on the DynamoDB item being written/read. */ private final IDynamoDbKeyBranchKeyIdSupplier ddbKeyBranchKeyIdSupplier; - protected CreateDynamoDbEncryptionBranchKeyIdSupplierInput(BuilderImpl builder) { + protected CreateDynamoDbEncryptionBranchKeyIdSupplierInput( + BuilderImpl builder + ) { this.ddbKeyBranchKeyIdSupplier = builder.ddbKeyBranchKeyIdSupplier(); } @@ -39,7 +42,9 @@ public interface Builder { /** * @param ddbKeyBranchKeyIdSupplier An implementation of the DynamoDbKeyBranchKeyIdSupplier interface, which determines what Branch Key to use for data key wrapping/unwrapping based on the DynamoDB item being written/read. */ - Builder ddbKeyBranchKeyIdSupplier(IDynamoDbKeyBranchKeyIdSupplier ddbKeyBranchKeyIdSupplier); + Builder ddbKeyBranchKeyIdSupplier( + IDynamoDbKeyBranchKeyIdSupplier ddbKeyBranchKeyIdSupplier + ); /** * @return An implementation of the DynamoDbKeyBranchKeyIdSupplier interface, which determines what Branch Key to use for data key wrapping/unwrapping based on the DynamoDB item being written/read. @@ -50,18 +55,22 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected IDynamoDbKeyBranchKeyIdSupplier ddbKeyBranchKeyIdSupplier; - protected BuilderImpl() { - } + protected BuilderImpl() {} - protected BuilderImpl(CreateDynamoDbEncryptionBranchKeyIdSupplierInput model) { + protected BuilderImpl( + CreateDynamoDbEncryptionBranchKeyIdSupplierInput model + ) { this.ddbKeyBranchKeyIdSupplier = model.ddbKeyBranchKeyIdSupplier(); } public Builder ddbKeyBranchKeyIdSupplier( - IDynamoDbKeyBranchKeyIdSupplier ddbKeyBranchKeyIdSupplier) { - this.ddbKeyBranchKeyIdSupplier = DynamoDbKeyBranchKeyIdSupplier.wrap(ddbKeyBranchKeyIdSupplier); + IDynamoDbKeyBranchKeyIdSupplier ddbKeyBranchKeyIdSupplier + ) { + this.ddbKeyBranchKeyIdSupplier = + DynamoDbKeyBranchKeyIdSupplier.wrap(ddbKeyBranchKeyIdSupplier); return this; } @@ -70,8 +79,10 @@ public IDynamoDbKeyBranchKeyIdSupplier ddbKeyBranchKeyIdSupplier() { } public CreateDynamoDbEncryptionBranchKeyIdSupplierInput build() { - if (Objects.isNull(this.ddbKeyBranchKeyIdSupplier())) { - throw new IllegalArgumentException("Missing value for required field `ddbKeyBranchKeyIdSupplier`"); + if (Objects.isNull(this.ddbKeyBranchKeyIdSupplier())) { + throw new IllegalArgumentException( + "Missing value for required field `ddbKeyBranchKeyIdSupplier`" + ); } return new CreateDynamoDbEncryptionBranchKeyIdSupplierInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/CreateDynamoDbEncryptionBranchKeyIdSupplierOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/CreateDynamoDbEncryptionBranchKeyIdSupplierOutput.java index 4dc39acff..eb6828167 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/CreateDynamoDbEncryptionBranchKeyIdSupplierOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/CreateDynamoDbEncryptionBranchKeyIdSupplierOutput.java @@ -11,12 +11,15 @@ * Outputs for creating a Branch Key Supplier from a DynamoDB Key Branch Key Id Supplier */ public class CreateDynamoDbEncryptionBranchKeyIdSupplierOutput { + /** * The Branch Key Supplier for use with the Hierarchical Keyring. */ private final IBranchKeyIdSupplier branchKeyIdSupplier; - protected CreateDynamoDbEncryptionBranchKeyIdSupplierOutput(BuilderImpl builder) { + protected CreateDynamoDbEncryptionBranchKeyIdSupplierOutput( + BuilderImpl builder + ) { this.branchKeyIdSupplier = builder.branchKeyIdSupplier(); } @@ -50,16 +53,20 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected IBranchKeyIdSupplier branchKeyIdSupplier; - protected BuilderImpl() { - } + protected BuilderImpl() {} - protected BuilderImpl(CreateDynamoDbEncryptionBranchKeyIdSupplierOutput model) { + protected BuilderImpl( + CreateDynamoDbEncryptionBranchKeyIdSupplierOutput model + ) { this.branchKeyIdSupplier = model.branchKeyIdSupplier(); } - public Builder branchKeyIdSupplier(IBranchKeyIdSupplier branchKeyIdSupplier) { + public Builder branchKeyIdSupplier( + IBranchKeyIdSupplier branchKeyIdSupplier + ) { this.branchKeyIdSupplier = BranchKeyIdSupplier.wrap(branchKeyIdSupplier); return this; } @@ -69,8 +76,10 @@ public IBranchKeyIdSupplier branchKeyIdSupplier() { } public CreateDynamoDbEncryptionBranchKeyIdSupplierOutput build() { - if (Objects.isNull(this.branchKeyIdSupplier())) { - throw new IllegalArgumentException("Missing value for required field `branchKeyIdSupplier`"); + if (Objects.isNull(this.branchKeyIdSupplier())) { + throw new IllegalArgumentException( + "Missing value for required field `branchKeyIdSupplier`" + ); } return new CreateDynamoDbEncryptionBranchKeyIdSupplierOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/DynamoDbEncryptionConfig.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/DynamoDbEncryptionConfig.java index 7321e21a6..61a1bd45b 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/DynamoDbEncryptionConfig.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/DynamoDbEncryptionConfig.java @@ -4,8 +4,8 @@ package software.amazon.cryptography.dbencryptionsdk.dynamodb.model; public class DynamoDbEncryptionConfig { - protected DynamoDbEncryptionConfig(BuilderImpl builder) { - } + + protected DynamoDbEncryptionConfig(BuilderImpl builder) {} public Builder toBuilder() { return new BuilderImpl(this); @@ -20,11 +20,10 @@ public interface Builder { } static class BuilderImpl implements Builder { - protected BuilderImpl() { - } - protected BuilderImpl(DynamoDbEncryptionConfig model) { - } + protected BuilderImpl() {} + + protected BuilderImpl(DynamoDbEncryptionConfig model) {} public DynamoDbEncryptionConfig build() { return new DynamoDbEncryptionConfig(this); diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/DynamoDbEncryptionException.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/DynamoDbEncryptionException.java index 812de493c..b767efd5f 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/DynamoDbEncryptionException.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/DynamoDbEncryptionException.java @@ -6,6 +6,7 @@ import java.util.Objects; public class DynamoDbEncryptionException extends RuntimeException { + protected DynamoDbEncryptionException(BuilderImpl builder) { super(messageFromBuilder(builder), builder.cause()); } @@ -67,12 +68,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String message; protected Throwable cause; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(DynamoDbEncryptionException model) { this.message = model.message(); @@ -98,8 +99,10 @@ public Throwable cause() { } public DynamoDbEncryptionException build() { - if (Objects.isNull(this.message())) { - throw new IllegalArgumentException("Missing value for required field `message`"); + if (Objects.isNull(this.message())) { + throw new IllegalArgumentException( + "Missing value for required field `message`" + ); } return new DynamoDbEncryptionException(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/DynamoDbTableEncryptionConfig.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/DynamoDbTableEncryptionConfig.java index 9baef7fc2..d1eb070f7 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/DynamoDbTableEncryptionConfig.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/DynamoDbTableEncryptionConfig.java @@ -17,6 +17,7 @@ * The configuration for client-side encryption for a particular DynamoDB table. */ public class DynamoDbTableEncryptionConfig { + /** * The logical table name for this table. This is the name that is cryptographically bound with your data. This can be the same as the actual DynamoDB table name. It's purpose is to be distinct from the DynamoDB table name so that the data may still be authenticated if being read from different (but logically similar) tables, such as a backup table. */ @@ -84,7 +85,8 @@ protected DynamoDbTableEncryptionConfig(BuilderImpl builder) { this.search = builder.search(); this.attributeActionsOnEncrypt = builder.attributeActionsOnEncrypt(); this.allowedUnsignedAttributes = builder.allowedUnsignedAttributes(); - this.allowedUnsignedAttributePrefix = builder.allowedUnsignedAttributePrefix(); + this.allowedUnsignedAttributePrefix = + builder.allowedUnsignedAttributePrefix(); this.algorithmSuiteId = builder.algorithmSuiteId(); this.keyring = builder.keyring(); this.cmm = builder.cmm(); @@ -228,7 +230,9 @@ public interface Builder { /** * @param attributeActionsOnEncrypt A map that describes what attributes should be encrypted and/or signed on encrypt. This map must contain all attributes that might be encountered during encryption. */ - Builder attributeActionsOnEncrypt(Map attributeActionsOnEncrypt); + Builder attributeActionsOnEncrypt( + Map attributeActionsOnEncrypt + ); /** * @return A map that describes what attributes should be encrypted and/or signed on encrypt. This map must contain all attributes that might be encountered during encryption. @@ -248,7 +252,9 @@ public interface Builder { /** * @param allowedUnsignedAttributePrefix A prefix such that, if during decryption any attribute has a name with this prefix, it is treated as unsigned. */ - Builder allowedUnsignedAttributePrefix(String allowedUnsignedAttributePrefix); + Builder allowedUnsignedAttributePrefix( + String allowedUnsignedAttributePrefix + ); /** * @return A prefix such that, if during decryption any attribute has a name with this prefix, it is treated as unsigned. @@ -309,6 +315,7 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String logicalTableName; protected String partitionKeyName; @@ -333,8 +340,7 @@ static class BuilderImpl implements Builder { protected PlaintextOverride plaintextOverride; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(DynamoDbTableEncryptionConfig model) { this.logicalTableName = model.logicalTableName(); @@ -343,7 +349,8 @@ protected BuilderImpl(DynamoDbTableEncryptionConfig model) { this.search = model.search(); this.attributeActionsOnEncrypt = model.attributeActionsOnEncrypt(); this.allowedUnsignedAttributes = model.allowedUnsignedAttributes(); - this.allowedUnsignedAttributePrefix = model.allowedUnsignedAttributePrefix(); + this.allowedUnsignedAttributePrefix = + model.allowedUnsignedAttributePrefix(); this.algorithmSuiteId = model.algorithmSuiteId(); this.keyring = model.keyring(); this.cmm = model.cmm(); @@ -387,7 +394,9 @@ public SearchConfig search() { return this.search; } - public Builder attributeActionsOnEncrypt(Map attributeActionsOnEncrypt) { + public Builder attributeActionsOnEncrypt( + Map attributeActionsOnEncrypt + ) { this.attributeActionsOnEncrypt = attributeActionsOnEncrypt; return this; } @@ -396,7 +405,9 @@ public Map attributeActionsOnEncrypt() { return this.attributeActionsOnEncrypt; } - public Builder allowedUnsignedAttributes(List allowedUnsignedAttributes) { + public Builder allowedUnsignedAttributes( + List allowedUnsignedAttributes + ) { this.allowedUnsignedAttributes = allowedUnsignedAttributes; return this; } @@ -405,7 +416,9 @@ public List allowedUnsignedAttributes() { return this.allowedUnsignedAttributes; } - public Builder allowedUnsignedAttributePrefix(String allowedUnsignedAttributePrefix) { + public Builder allowedUnsignedAttributePrefix( + String allowedUnsignedAttributePrefix + ) { this.allowedUnsignedAttributePrefix = allowedUnsignedAttributePrefix; return this; } @@ -460,29 +473,58 @@ public PlaintextOverride plaintextOverride() { } public DynamoDbTableEncryptionConfig build() { - if (Objects.isNull(this.logicalTableName())) { - throw new IllegalArgumentException("Missing value for required field `logicalTableName`"); + if (Objects.isNull(this.logicalTableName())) { + throw new IllegalArgumentException( + "Missing value for required field `logicalTableName`" + ); } - if (Objects.isNull(this.partitionKeyName())) { - throw new IllegalArgumentException("Missing value for required field `partitionKeyName`"); + if (Objects.isNull(this.partitionKeyName())) { + throw new IllegalArgumentException( + "Missing value for required field `partitionKeyName`" + ); } - if (Objects.nonNull(this.partitionKeyName()) && this.partitionKeyName().length() < 1) { - throw new IllegalArgumentException("The size of `partitionKeyName` must be greater than or equal to 1"); + if ( + Objects.nonNull(this.partitionKeyName()) && + this.partitionKeyName().length() < 1 + ) { + throw new IllegalArgumentException( + "The size of `partitionKeyName` must be greater than or equal to 1" + ); } - if (Objects.nonNull(this.partitionKeyName()) && this.partitionKeyName().length() > 255) { - throw new IllegalArgumentException("The size of `partitionKeyName` must be less than or equal to 255"); + if ( + Objects.nonNull(this.partitionKeyName()) && + this.partitionKeyName().length() > 255 + ) { + throw new IllegalArgumentException( + "The size of `partitionKeyName` must be less than or equal to 255" + ); } - if (Objects.nonNull(this.sortKeyName()) && this.sortKeyName().length() < 1) { - throw new IllegalArgumentException("The size of `sortKeyName` must be greater than or equal to 1"); + if ( + Objects.nonNull(this.sortKeyName()) && this.sortKeyName().length() < 1 + ) { + throw new IllegalArgumentException( + "The size of `sortKeyName` must be greater than or equal to 1" + ); } - if (Objects.nonNull(this.sortKeyName()) && this.sortKeyName().length() > 255) { - throw new IllegalArgumentException("The size of `sortKeyName` must be less than or equal to 255"); + if ( + Objects.nonNull(this.sortKeyName()) && this.sortKeyName().length() > 255 + ) { + throw new IllegalArgumentException( + "The size of `sortKeyName` must be less than or equal to 255" + ); } - if (Objects.isNull(this.attributeActionsOnEncrypt())) { - throw new IllegalArgumentException("Missing value for required field `attributeActionsOnEncrypt`"); + if (Objects.isNull(this.attributeActionsOnEncrypt())) { + throw new IllegalArgumentException( + "Missing value for required field `attributeActionsOnEncrypt`" + ); } - if (Objects.nonNull(this.allowedUnsignedAttributes()) && this.allowedUnsignedAttributes().size() < 1) { - throw new IllegalArgumentException("The size of `allowedUnsignedAttributes` must be greater than or equal to 1"); + if ( + Objects.nonNull(this.allowedUnsignedAttributes()) && + this.allowedUnsignedAttributes().size() < 1 + ) { + throw new IllegalArgumentException( + "The size of `allowedUnsignedAttributes` must be greater than or equal to 1" + ); } return new DynamoDbTableEncryptionConfig(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/DynamoDbTablesEncryptionConfig.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/DynamoDbTablesEncryptionConfig.java index 4a1f1c333..95d71c53a 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/DynamoDbTablesEncryptionConfig.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/DynamoDbTablesEncryptionConfig.java @@ -10,10 +10,14 @@ * The configuration for client-side encryption with multiple DynamoDB table. */ public class DynamoDbTablesEncryptionConfig { + /** * A map of DynamoDB table name to its configuration for client-side encryption. */ - private final Map tableEncryptionConfigs; + private final Map< + String, + DynamoDbTableEncryptionConfig + > tableEncryptionConfigs; protected DynamoDbTablesEncryptionConfig(BuilderImpl builder) { this.tableEncryptionConfigs = builder.tableEncryptionConfigs(); @@ -39,7 +43,8 @@ public interface Builder { * @param tableEncryptionConfigs A map of DynamoDB table name to its configuration for client-side encryption. */ Builder tableEncryptionConfigs( - Map tableEncryptionConfigs); + Map tableEncryptionConfigs + ); /** * @return A map of DynamoDB table name to its configuration for client-side encryption. @@ -50,17 +55,18 @@ Builder tableEncryptionConfigs( } static class BuilderImpl implements Builder { + protected Map tableEncryptionConfigs; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(DynamoDbTablesEncryptionConfig model) { this.tableEncryptionConfigs = model.tableEncryptionConfigs(); } public Builder tableEncryptionConfigs( - Map tableEncryptionConfigs) { + Map tableEncryptionConfigs + ) { this.tableEncryptionConfigs = tableEncryptionConfigs; return this; } @@ -70,8 +76,10 @@ public Map tableEncryptionConfigs() { } public DynamoDbTablesEncryptionConfig build() { - if (Objects.isNull(this.tableEncryptionConfigs())) { - throw new IllegalArgumentException("Missing value for required field `tableEncryptionConfigs`"); + if (Objects.isNull(this.tableEncryptionConfigs())) { + throw new IllegalArgumentException( + "Missing value for required field `tableEncryptionConfigs`" + ); } return new DynamoDbTablesEncryptionConfig(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/EncryptedPart.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/EncryptedPart.java index 934cd47fa..9437e980c 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/EncryptedPart.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/EncryptedPart.java @@ -9,6 +9,7 @@ * A part of a Compound Beacon that contains a beacon over encrypted data. */ public class EncryptedPart { + /** * The name of the Standard Beacon, whose value this Part will hold. */ @@ -71,12 +72,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String name; protected String prefix; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(EncryptedPart model) { this.name = model.name(); @@ -102,14 +103,20 @@ public String prefix() { } public EncryptedPart build() { - if (Objects.isNull(this.name())) { - throw new IllegalArgumentException("Missing value for required field `name`"); + if (Objects.isNull(this.name())) { + throw new IllegalArgumentException( + "Missing value for required field `name`" + ); } - if (Objects.isNull(this.prefix())) { - throw new IllegalArgumentException("Missing value for required field `prefix`"); + if (Objects.isNull(this.prefix())) { + throw new IllegalArgumentException( + "Missing value for required field `prefix`" + ); } if (Objects.nonNull(this.prefix()) && this.prefix().length() < 1) { - throw new IllegalArgumentException("The size of `prefix` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "The size of `prefix` must be greater than or equal to 1" + ); } return new EncryptedPart(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetBranchKeyIdFromDdbKeyInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetBranchKeyIdFromDdbKeyInput.java index db7c03974..260c42bcf 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetBranchKeyIdFromDdbKeyInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetBranchKeyIdFromDdbKeyInput.java @@ -11,6 +11,7 @@ * Inputs for getting the Branch Key that should be used for wrapping and unwrapping data keys. */ public class GetBranchKeyIdFromDdbKeyInput { + /** * The partition and sort (if it exists) attributes on the item being read or written. */ @@ -50,10 +51,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected Map ddbKey; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(GetBranchKeyIdFromDdbKeyInput model) { this.ddbKey = model.ddbKey(); @@ -69,8 +70,10 @@ public Map ddbKey() { } public GetBranchKeyIdFromDdbKeyInput build() { - if (Objects.isNull(this.ddbKey())) { - throw new IllegalArgumentException("Missing value for required field `ddbKey`"); + if (Objects.isNull(this.ddbKey())) { + throw new IllegalArgumentException( + "Missing value for required field `ddbKey`" + ); } return new GetBranchKeyIdFromDdbKeyInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetBranchKeyIdFromDdbKeyOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetBranchKeyIdFromDdbKeyOutput.java index e4ec8d1f1..44fc40090 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetBranchKeyIdFromDdbKeyOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetBranchKeyIdFromDdbKeyOutput.java @@ -9,6 +9,7 @@ * Outputs for getting the Branch Key that should be used for wrapping and unwrapping data keys. */ public class GetBranchKeyIdFromDdbKeyOutput { + /** * The ID of the Branch Key that should be used to wrap and unwrap data keys for this item. */ @@ -48,10 +49,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String branchKeyId; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(GetBranchKeyIdFromDdbKeyOutput model) { this.branchKeyId = model.branchKeyId(); @@ -67,8 +68,10 @@ public String branchKeyId() { } public GetBranchKeyIdFromDdbKeyOutput build() { - if (Objects.isNull(this.branchKeyId())) { - throw new IllegalArgumentException("Missing value for required field `branchKeyId`"); + if (Objects.isNull(this.branchKeyId())) { + throw new IllegalArgumentException( + "Missing value for required field `branchKeyId`" + ); } return new GetBranchKeyIdFromDdbKeyOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetPrefix.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetPrefix.java index 29c7bad04..3f340bac2 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetPrefix.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetPrefix.java @@ -9,6 +9,7 @@ * The Virtual Part Transformation that gets the prefix of a string. */ public class GetPrefix { + /** * If positive, the number of characters to return from the front. If negative, the absolute number of characters to exclude from the end. e.g. GetPrefix(-1) returns all but the last character. */ @@ -48,10 +49,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected Integer length; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(GetPrefix model) { this.length = model.length(); @@ -67,8 +68,10 @@ public Integer length() { } public GetPrefix build() { - if (Objects.isNull(this.length())) { - throw new IllegalArgumentException("Missing value for required field `length`"); + if (Objects.isNull(this.length())) { + throw new IllegalArgumentException( + "Missing value for required field `length`" + ); } return new GetPrefix(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSegment.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSegment.java index ec5481bbe..42b9f61b8 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSegment.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSegment.java @@ -9,6 +9,7 @@ * The Virtual Part Transformation that splits a string and gets a particular segment of that split. */ public class GetSegment { + /** * The characters to split on. */ @@ -71,12 +72,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String split; protected Integer index; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(GetSegment model) { this.split = model.split(); @@ -102,17 +103,25 @@ public Integer index() { } public GetSegment build() { - if (Objects.isNull(this.split())) { - throw new IllegalArgumentException("Missing value for required field `split`"); + if (Objects.isNull(this.split())) { + throw new IllegalArgumentException( + "Missing value for required field `split`" + ); } if (Objects.nonNull(this.split()) && this.split().length() < 1) { - throw new IllegalArgumentException("The size of `split` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "The size of `split` must be greater than or equal to 1" + ); } if (Objects.nonNull(this.split()) && this.split().length() > 1) { - throw new IllegalArgumentException("The size of `split` must be less than or equal to 1"); + throw new IllegalArgumentException( + "The size of `split` must be less than or equal to 1" + ); } - if (Objects.isNull(this.index())) { - throw new IllegalArgumentException("Missing value for required field `index`"); + if (Objects.isNull(this.index())) { + throw new IllegalArgumentException( + "Missing value for required field `index`" + ); } return new GetSegment(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSegments.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSegments.java index d1cbc0771..f367196df 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSegments.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSegments.java @@ -9,6 +9,7 @@ * The Virtual Part Transformation that splits a string and gets a range of segments of that split. */ public class GetSegments { + /** * The characters to split on. */ @@ -94,14 +95,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String split; protected Integer low; protected Integer high; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(GetSegments model) { this.split = model.split(); @@ -137,20 +138,30 @@ public Integer high() { } public GetSegments build() { - if (Objects.isNull(this.split())) { - throw new IllegalArgumentException("Missing value for required field `split`"); + if (Objects.isNull(this.split())) { + throw new IllegalArgumentException( + "Missing value for required field `split`" + ); } if (Objects.nonNull(this.split()) && this.split().length() < 1) { - throw new IllegalArgumentException("The size of `split` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "The size of `split` must be greater than or equal to 1" + ); } if (Objects.nonNull(this.split()) && this.split().length() > 1) { - throw new IllegalArgumentException("The size of `split` must be less than or equal to 1"); + throw new IllegalArgumentException( + "The size of `split` must be less than or equal to 1" + ); } - if (Objects.isNull(this.low())) { - throw new IllegalArgumentException("Missing value for required field `low`"); + if (Objects.isNull(this.low())) { + throw new IllegalArgumentException( + "Missing value for required field `low`" + ); } - if (Objects.isNull(this.high())) { - throw new IllegalArgumentException("Missing value for required field `high`"); + if (Objects.isNull(this.high())) { + throw new IllegalArgumentException( + "Missing value for required field `high`" + ); } return new GetSegments(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSubstring.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSubstring.java index 7db87057e..d08faba18 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSubstring.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSubstring.java @@ -9,6 +9,7 @@ * The Virtual Part Transformation that gets a substring from a string. */ public class GetSubstring { + /** * The index to start the substring from, inclusive. Negative numbers count from the end. -1 is the last character of a string. */ @@ -71,12 +72,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected Integer low; protected Integer high; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(GetSubstring model) { this.low = model.low(); @@ -102,11 +103,15 @@ public Integer high() { } public GetSubstring build() { - if (Objects.isNull(this.low())) { - throw new IllegalArgumentException("Missing value for required field `low`"); + if (Objects.isNull(this.low())) { + throw new IllegalArgumentException( + "Missing value for required field `low`" + ); } - if (Objects.isNull(this.high())) { - throw new IllegalArgumentException("Missing value for required field `high`"); + if (Objects.isNull(this.high())) { + throw new IllegalArgumentException( + "Missing value for required field `high`" + ); } return new GetSubstring(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSuffix.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSuffix.java index fd421a413..294b083a9 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSuffix.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSuffix.java @@ -9,6 +9,7 @@ * The Virtual Part Transformation that gets the suffix of a string. */ public class GetSuffix { + /** * If positive, the number of characters to return from the end. If negative, the absolute number of characters to exclude from the front. e.g. GetSuffix(-1) returns all but the first character. */ @@ -48,10 +49,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected Integer length; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(GetSuffix model) { this.length = model.length(); @@ -67,8 +68,10 @@ public Integer length() { } public GetSuffix build() { - if (Objects.isNull(this.length())) { - throw new IllegalArgumentException("Missing value for required field `length`"); + if (Objects.isNull(this.length())) { + throw new IllegalArgumentException( + "Missing value for required field `length`" + ); } return new GetSuffix(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Insert.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Insert.java index 031648da5..6ad371e87 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Insert.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Insert.java @@ -9,6 +9,7 @@ * The Virtual Part Transformation that appends a literal string. */ public class Insert { + /** * The literal string to append. */ @@ -48,10 +49,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String literal; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(Insert model) { this.literal = model.literal(); @@ -67,8 +68,10 @@ public String literal() { } public Insert build() { - if (Objects.isNull(this.literal())) { - throw new IllegalArgumentException("Missing value for required field `literal`"); + if (Objects.isNull(this.literal())) { + throw new IllegalArgumentException( + "Missing value for required field `literal`" + ); } return new Insert(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/LegacyOverride.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/LegacyOverride.java index 268864f59..d4e5b0f1d 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/LegacyOverride.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/LegacyOverride.java @@ -13,6 +13,7 @@ * A configuration for overriding encryption and/or decryption to instead perform legacy encryption and decryption. */ public class LegacyOverride { + /** * A policy which configurates whether legacy behavior overrides encryption and/or decryption. */ @@ -100,7 +101,9 @@ public interface Builder { /** * @param attributeActionsOnEncrypt Overrides which attributes are encrypted and/or signed for any items read or written with legacy behavior. */ - Builder attributeActionsOnEncrypt(Map attributeActionsOnEncrypt); + Builder attributeActionsOnEncrypt( + Map attributeActionsOnEncrypt + ); /** * @return Overrides which attributes are encrypted and/or signed for any items read or written with legacy behavior. @@ -121,6 +124,7 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected LegacyPolicy policy; protected ILegacyDynamoDbEncryptor encryptor; @@ -129,8 +133,7 @@ static class BuilderImpl implements Builder { protected CryptoAction defaultAttributeFlag; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(LegacyOverride model) { this.policy = model.policy(); @@ -157,7 +160,9 @@ public ILegacyDynamoDbEncryptor encryptor() { return this.encryptor; } - public Builder attributeActionsOnEncrypt(Map attributeActionsOnEncrypt) { + public Builder attributeActionsOnEncrypt( + Map attributeActionsOnEncrypt + ) { this.attributeActionsOnEncrypt = attributeActionsOnEncrypt; return this; } @@ -176,14 +181,20 @@ public CryptoAction defaultAttributeFlag() { } public LegacyOverride build() { - if (Objects.isNull(this.policy())) { - throw new IllegalArgumentException("Missing value for required field `policy`"); + if (Objects.isNull(this.policy())) { + throw new IllegalArgumentException( + "Missing value for required field `policy`" + ); } - if (Objects.isNull(this.encryptor())) { - throw new IllegalArgumentException("Missing value for required field `encryptor`"); + if (Objects.isNull(this.encryptor())) { + throw new IllegalArgumentException( + "Missing value for required field `encryptor`" + ); } - if (Objects.isNull(this.attributeActionsOnEncrypt())) { - throw new IllegalArgumentException("Missing value for required field `attributeActionsOnEncrypt`"); + if (Objects.isNull(this.attributeActionsOnEncrypt())) { + throw new IllegalArgumentException( + "Missing value for required field `attributeActionsOnEncrypt`" + ); } return new LegacyOverride(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/LegacyPolicy.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/LegacyPolicy.java index 6b56e2c5d..f611d70d8 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/LegacyPolicy.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/LegacyPolicy.java @@ -4,11 +4,17 @@ package software.amazon.cryptography.dbencryptionsdk.dynamodb.model; public enum LegacyPolicy { - FORCE_LEGACY_ENCRYPT_ALLOW_LEGACY_DECRYPT("FORCE_LEGACY_ENCRYPT_ALLOW_LEGACY_DECRYPT"), + FORCE_LEGACY_ENCRYPT_ALLOW_LEGACY_DECRYPT( + "FORCE_LEGACY_ENCRYPT_ALLOW_LEGACY_DECRYPT" + ), - FORBID_LEGACY_ENCRYPT_ALLOW_LEGACY_DECRYPT("FORBID_LEGACY_ENCRYPT_ALLOW_LEGACY_DECRYPT"), + FORBID_LEGACY_ENCRYPT_ALLOW_LEGACY_DECRYPT( + "FORBID_LEGACY_ENCRYPT_ALLOW_LEGACY_DECRYPT" + ), - FORBID_LEGACY_ENCRYPT_FORBID_LEGACY_DECRYPT("FORBID_LEGACY_ENCRYPT_FORBID_LEGACY_DECRYPT"); + FORBID_LEGACY_ENCRYPT_FORBID_LEGACY_DECRYPT( + "FORBID_LEGACY_ENCRYPT_FORBID_LEGACY_DECRYPT" + ); private final String value; diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Lower.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Lower.java index f7d1637c1..37014d70a 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Lower.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Lower.java @@ -7,8 +7,8 @@ * The Virtual Part Transformation that converts ASCII characters to lower case. */ public class Lower { - protected Lower(BuilderImpl builder) { - } + + protected Lower(BuilderImpl builder) {} public Builder toBuilder() { return new BuilderImpl(this); @@ -23,11 +23,10 @@ public interface Builder { } static class BuilderImpl implements Builder { - protected BuilderImpl() { - } - protected BuilderImpl(Lower model) { - } + protected BuilderImpl() {} + + protected BuilderImpl(Lower model) {} public Lower build() { return new Lower(this); diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/MultiKeyStore.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/MultiKeyStore.java index cbb58f3f8..0f1420eaa 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/MultiKeyStore.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/MultiKeyStore.java @@ -10,6 +10,7 @@ * The configuration for using multiple Beacon Keys. */ public class MultiKeyStore { + /** * The name of the field that stores the Beacon Key. This may be a Virtual Field. */ @@ -95,14 +96,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String keyFieldName; protected Integer cacheTTL; protected CacheType cache; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(MultiKeyStore model) { this.keyFieldName = model.keyFieldName(); @@ -138,11 +139,15 @@ public CacheType cache() { } public MultiKeyStore build() { - if (Objects.isNull(this.keyFieldName())) { - throw new IllegalArgumentException("Missing value for required field `keyFieldName`"); + if (Objects.isNull(this.keyFieldName())) { + throw new IllegalArgumentException( + "Missing value for required field `keyFieldName`" + ); } - if (Objects.isNull(this.cacheTTL())) { - throw new IllegalArgumentException("Missing value for required field `cacheTTL`"); + if (Objects.isNull(this.cacheTTL())) { + throw new IllegalArgumentException( + "Missing value for required field `cacheTTL`" + ); } return new MultiKeyStore(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/OpaqueError.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/OpaqueError.java index 377a322a5..4d14ddd42 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/OpaqueError.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/OpaqueError.java @@ -4,6 +4,7 @@ package software.amazon.cryptography.dbencryptionsdk.dynamodb.model; public class OpaqueError extends RuntimeException { + /** * The unexpected object encountered. It MIGHT BE an Exception, but that is not guaranteed. */ @@ -88,14 +89,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String message; protected Throwable cause; protected Object obj; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(OpaqueError model) { this.cause = model.getCause(); @@ -131,7 +132,9 @@ public Object obj() { } public OpaqueError build() { - if (this.obj != null && this.cause == null && this.obj instanceof Throwable) { + if ( + this.obj != null && this.cause == null && this.obj instanceof Throwable + ) { this.cause = (Throwable) this.obj; } else if (this.obj == null && this.cause != null) { this.obj = this.cause; diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/PartOnly.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/PartOnly.java index dfd41a508..2dcfa4e65 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/PartOnly.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/PartOnly.java @@ -7,8 +7,8 @@ * Attribute must be used as part of a Compound Beacon, never alone. */ public class PartOnly { - protected PartOnly(BuilderImpl builder) { - } + + protected PartOnly(BuilderImpl builder) {} public Builder toBuilder() { return new BuilderImpl(this); @@ -23,11 +23,10 @@ public interface Builder { } static class BuilderImpl implements Builder { - protected BuilderImpl() { - } - protected BuilderImpl(PartOnly model) { - } + protected BuilderImpl() {} + + protected BuilderImpl(PartOnly model) {} public PartOnly build() { return new PartOnly(this); diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/PlaintextOverride.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/PlaintextOverride.java index e440ef064..a5985a5e7 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/PlaintextOverride.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/PlaintextOverride.java @@ -4,11 +4,17 @@ package software.amazon.cryptography.dbencryptionsdk.dynamodb.model; public enum PlaintextOverride { - FORCE_PLAINTEXT_WRITE_ALLOW_PLAINTEXT_READ("FORCE_PLAINTEXT_WRITE_ALLOW_PLAINTEXT_READ"), + FORCE_PLAINTEXT_WRITE_ALLOW_PLAINTEXT_READ( + "FORCE_PLAINTEXT_WRITE_ALLOW_PLAINTEXT_READ" + ), - FORBID_PLAINTEXT_WRITE_ALLOW_PLAINTEXT_READ("FORBID_PLAINTEXT_WRITE_ALLOW_PLAINTEXT_READ"), + FORBID_PLAINTEXT_WRITE_ALLOW_PLAINTEXT_READ( + "FORBID_PLAINTEXT_WRITE_ALLOW_PLAINTEXT_READ" + ), - FORBID_PLAINTEXT_WRITE_FORBID_PLAINTEXT_READ("FORBID_PLAINTEXT_WRITE_FORBID_PLAINTEXT_READ"); + FORBID_PLAINTEXT_WRITE_FORBID_PLAINTEXT_READ( + "FORBID_PLAINTEXT_WRITE_FORBID_PLAINTEXT_READ" + ); private final String value; diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SearchConfig.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SearchConfig.java index 2f73db6f5..e0561ef49 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SearchConfig.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SearchConfig.java @@ -10,6 +10,7 @@ * The configuration for searchable encryption. */ public class SearchConfig { + /** * The versions of searchable encryption to support reading. Currently must contain a single configuration with version '1'. */ @@ -72,14 +73,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected List versions; protected int writeVersion; private boolean _writeVersionSet = false; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(SearchConfig model) { this.versions = model.versions(); @@ -107,20 +108,30 @@ public int writeVersion() { } public SearchConfig build() { - if (Objects.isNull(this.versions())) { - throw new IllegalArgumentException("Missing value for required field `versions`"); + if (Objects.isNull(this.versions())) { + throw new IllegalArgumentException( + "Missing value for required field `versions`" + ); } if (Objects.nonNull(this.versions()) && this.versions().size() < 1) { - throw new IllegalArgumentException("The size of `versions` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "The size of `versions` must be greater than or equal to 1" + ); } if (Objects.nonNull(this.versions()) && this.versions().size() > 1) { - throw new IllegalArgumentException("The size of `versions` must be less than or equal to 1"); + throw new IllegalArgumentException( + "The size of `versions` must be less than or equal to 1" + ); } if (!this._writeVersionSet) { - throw new IllegalArgumentException("Missing value for required field `writeVersion`"); + throw new IllegalArgumentException( + "Missing value for required field `writeVersion`" + ); } if (this._writeVersionSet && this.writeVersion() < 1) { - throw new IllegalArgumentException("`writeVersion` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "`writeVersion` must be greater than or equal to 1" + ); } return new SearchConfig(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Shared.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Shared.java index 4be82055a..427959039 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Shared.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Shared.java @@ -9,6 +9,7 @@ * This beacon should calculate values like another beacon, so they can be compared. */ public class Shared { + /** * Calculate beacon values as for this beacon. */ @@ -48,10 +49,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String other; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(Shared model) { this.other = model.other(); @@ -67,8 +68,10 @@ public String other() { } public Shared build() { - if (Objects.isNull(this.other())) { - throw new IllegalArgumentException("Missing value for required field `other`"); + if (Objects.isNull(this.other())) { + throw new IllegalArgumentException( + "Missing value for required field `other`" + ); } return new Shared(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SharedSet.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SharedSet.java index 9b51d0c98..41d27514e 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SharedSet.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SharedSet.java @@ -9,6 +9,7 @@ * Both Shared and AsSet. */ public class SharedSet { + /** * Calculate beacon values as for this beacon. */ @@ -48,10 +49,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String other; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(SharedSet model) { this.other = model.other(); @@ -67,8 +68,10 @@ public String other() { } public SharedSet build() { - if (Objects.isNull(this.other())) { - throw new IllegalArgumentException("Missing value for required field `other`"); + if (Objects.isNull(this.other())) { + throw new IllegalArgumentException( + "Missing value for required field `other`" + ); } return new SharedSet(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SignedPart.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SignedPart.java index 2166a61f2..3d999ad6e 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SignedPart.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SignedPart.java @@ -9,6 +9,7 @@ * A part of a Compound Beacon that contains signed plaintext data. */ public class SignedPart { + /** * The name for this Signed Part. */ @@ -94,14 +95,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String name; protected String prefix; protected String loc; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(SignedPart model) { this.name = model.name(); @@ -137,17 +138,25 @@ public String loc() { } public SignedPart build() { - if (Objects.isNull(this.name())) { - throw new IllegalArgumentException("Missing value for required field `name`"); + if (Objects.isNull(this.name())) { + throw new IllegalArgumentException( + "Missing value for required field `name`" + ); } - if (Objects.isNull(this.prefix())) { - throw new IllegalArgumentException("Missing value for required field `prefix`"); + if (Objects.isNull(this.prefix())) { + throw new IllegalArgumentException( + "Missing value for required field `prefix`" + ); } if (Objects.nonNull(this.prefix()) && this.prefix().length() < 1) { - throw new IllegalArgumentException("The size of `prefix` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "The size of `prefix` must be greater than or equal to 1" + ); } if (Objects.nonNull(this.loc()) && this.loc().length() < 1) { - throw new IllegalArgumentException("The size of `loc` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "The size of `loc` must be greater than or equal to 1" + ); } return new SignedPart(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SingleKeyStore.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SingleKeyStore.java index b4b520805..9ece5763f 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SingleKeyStore.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SingleKeyStore.java @@ -9,6 +9,7 @@ * The configuration for using a single Beacon Key. */ public class SingleKeyStore { + /** * The Beacon Key ID. */ @@ -71,12 +72,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String keyId; protected Integer cacheTTL; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(SingleKeyStore model) { this.keyId = model.keyId(); @@ -102,11 +103,15 @@ public Integer cacheTTL() { } public SingleKeyStore build() { - if (Objects.isNull(this.keyId())) { - throw new IllegalArgumentException("Missing value for required field `keyId`"); + if (Objects.isNull(this.keyId())) { + throw new IllegalArgumentException( + "Missing value for required field `keyId`" + ); } - if (Objects.isNull(this.cacheTTL())) { - throw new IllegalArgumentException("Missing value for required field `cacheTTL`"); + if (Objects.isNull(this.cacheTTL())) { + throw new IllegalArgumentException( + "Missing value for required field `cacheTTL`" + ); } return new SingleKeyStore(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/StandardBeacon.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/StandardBeacon.java index bcd24a6ca..88bcbc1ef 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/StandardBeacon.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/StandardBeacon.java @@ -9,6 +9,7 @@ * The configuration for a Standard Beacon. */ public class StandardBeacon { + /** * The name for this Standard Beacon. */ @@ -117,6 +118,7 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String name; protected int length; @@ -127,8 +129,7 @@ static class BuilderImpl implements Builder { protected BeaconStyle style; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(StandardBeacon model) { this.name = model.name(); @@ -176,20 +177,30 @@ public BeaconStyle style() { } public StandardBeacon build() { - if (Objects.isNull(this.name())) { - throw new IllegalArgumentException("Missing value for required field `name`"); + if (Objects.isNull(this.name())) { + throw new IllegalArgumentException( + "Missing value for required field `name`" + ); } if (!this._lengthSet) { - throw new IllegalArgumentException("Missing value for required field `length`"); + throw new IllegalArgumentException( + "Missing value for required field `length`" + ); } if (this._lengthSet && this.length() < 1) { - throw new IllegalArgumentException("`length` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "`length` must be greater than or equal to 1" + ); } if (this._lengthSet && this.length() > 63) { - throw new IllegalArgumentException("`length` must be less than or equal to 63."); + throw new IllegalArgumentException( + "`length` must be less than or equal to 63." + ); } if (Objects.nonNull(this.loc()) && this.loc().length() < 1) { - throw new IllegalArgumentException("The size of `loc` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "The size of `loc` must be greater than or equal to 1" + ); } return new StandardBeacon(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Upper.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Upper.java index faed92ccb..8e39072c9 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Upper.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/Upper.java @@ -7,8 +7,8 @@ * The Virtual Part Transformation that converts ASCII characters to upper case. */ public class Upper { - protected Upper(BuilderImpl builder) { - } + + protected Upper(BuilderImpl builder) {} public Builder toBuilder() { return new BuilderImpl(this); @@ -23,11 +23,10 @@ public interface Builder { } static class BuilderImpl implements Builder { - protected BuilderImpl() { - } - protected BuilderImpl(Upper model) { - } + protected BuilderImpl() {} + + protected BuilderImpl(Upper model) {} public Upper build() { return new Upper(this); diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/VirtualField.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/VirtualField.java index 55fbeaad5..e95319fc2 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/VirtualField.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/VirtualField.java @@ -10,6 +10,7 @@ * The configuration for a Virtual Field. A Virtual Field is a field constructed from parts of other fields for use with beacons, but never itself stored on items. */ public class VirtualField { + /** * The name of the Virtual Field. */ @@ -72,12 +73,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String name; protected List parts; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(VirtualField model) { this.name = model.name(); @@ -103,14 +104,20 @@ public List parts() { } public VirtualField build() { - if (Objects.isNull(this.name())) { - throw new IllegalArgumentException("Missing value for required field `name`"); + if (Objects.isNull(this.name())) { + throw new IllegalArgumentException( + "Missing value for required field `name`" + ); } - if (Objects.isNull(this.parts())) { - throw new IllegalArgumentException("Missing value for required field `parts`"); + if (Objects.isNull(this.parts())) { + throw new IllegalArgumentException( + "Missing value for required field `parts`" + ); } if (Objects.nonNull(this.parts()) && this.parts().size() < 1) { - throw new IllegalArgumentException("The size of `parts` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "The size of `parts` must be greater than or equal to 1" + ); } return new VirtualField(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/VirtualPart.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/VirtualPart.java index 0f92bc95d..1bace2d92 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/VirtualPart.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/VirtualPart.java @@ -10,6 +10,7 @@ * A Virtual Part is the configuration of a transformation on an existing field in an item. */ public class VirtualPart { + /** * The DynamoDB document path to the value for this part. */ @@ -72,12 +73,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String loc; protected List trans; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(VirtualPart model) { this.loc = model.loc(); @@ -103,14 +104,20 @@ public List trans() { } public VirtualPart build() { - if (Objects.isNull(this.loc())) { - throw new IllegalArgumentException("Missing value for required field `loc`"); + if (Objects.isNull(this.loc())) { + throw new IllegalArgumentException( + "Missing value for required field `loc`" + ); } if (Objects.nonNull(this.loc()) && this.loc().length() < 1) { - throw new IllegalArgumentException("The size of `loc` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "The size of `loc` must be greater than or equal to 1" + ); } if (Objects.nonNull(this.trans()) && this.trans().size() < 1) { - throw new IllegalArgumentException("The size of `trans` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "The size of `trans` must be greater than or equal to 1" + ); } return new VirtualPart(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/VirtualTransform.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/VirtualTransform.java index 84d29ea14..e38113e46 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/VirtualTransform.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/VirtualTransform.java @@ -6,6 +6,7 @@ import java.util.Objects; public class VirtualTransform { + /** * The Virtual Part Transformation that converts ASCII characters to upper case. */ @@ -206,6 +207,7 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected Upper upper; protected Lower lower; @@ -222,8 +224,7 @@ static class BuilderImpl implements Builder { protected GetSegments segments; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(VirtualTransform model) { this.upper = model.upper(); @@ -310,13 +311,24 @@ public GetSegments segments() { public VirtualTransform build() { if (!onlyOneNonNull()) { - throw new IllegalArgumentException("`VirtualTransform` is a Union. A Union MUST have one and only one value set."); + throw new IllegalArgumentException( + "`VirtualTransform` is a Union. A Union MUST have one and only one value set." + ); } return new VirtualTransform(this); } private boolean onlyOneNonNull() { - Object[] allValues = {this.upper, this.lower, this.insert, this.prefix, this.suffix, this.substring, this.segment, this.segments}; + Object[] allValues = { + this.upper, + this.lower, + this.insert, + this.prefix, + this.suffix, + this.substring, + this.segment, + this.segments, + }; boolean haveOneNonNull = false; for (Object o : allValues) { if (Objects.nonNull(o)) { diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/DynamoDbEncryptionTransforms.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/DynamoDbEncryptionTransforms.java index 35d961639..a37c90cfe 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/DynamoDbEncryptionTransforms.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/DynamoDbEncryptionTransforms.java @@ -7,6 +7,7 @@ import java.lang.IllegalArgumentException; import java.util.Objects; import software.amazon.cryptography.dbencryptionsdk.dynamodb.model.DynamoDbTablesEncryptionConfig; +import software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.DynamoDbEncryptionTransformsClient; import software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.__default; import software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.Error; import software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.IDynamoDbEncryptionTransformsClient; @@ -66,12 +67,18 @@ import software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.UpdateItemOutputTransformOutput; public class DynamoDbEncryptionTransforms { + private final IDynamoDbEncryptionTransformsClient _impl; protected DynamoDbEncryptionTransforms(BuilderImpl builder) { - DynamoDbTablesEncryptionConfig input = builder.DynamoDbTablesEncryptionConfig(); - software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbTablesEncryptionConfig dafnyValue = software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny.DynamoDbTablesEncryptionConfig(input); - Result result = __default.DynamoDbEncryptionTransforms(dafnyValue); + DynamoDbTablesEncryptionConfig input = + builder.DynamoDbTablesEncryptionConfig(); + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbTablesEncryptionConfig dafnyValue = + software.amazon.cryptography.dbencryptionsdk.dynamodb.ToDafny.DynamoDbTablesEncryptionConfig( + input + ); + Result result = + __default.DynamoDbEncryptionTransforms(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -87,29 +94,48 @@ public static Builder builder() { } public BatchExecuteStatementInputTransformOutput BatchExecuteStatementInputTransform( - BatchExecuteStatementInputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementInputTransformInput dafnyValue = ToDafny.BatchExecuteStatementInputTransformInput(input); - Result result = this._impl.BatchExecuteStatementInputTransform(dafnyValue); + BatchExecuteStatementInputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementInputTransformInput dafnyValue = + ToDafny.BatchExecuteStatementInputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementInputTransformOutput, + Error + > result = this._impl.BatchExecuteStatementInputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } - return ToNative.BatchExecuteStatementInputTransformOutput(result.dtor_value()); + return ToNative.BatchExecuteStatementInputTransformOutput( + result.dtor_value() + ); } public BatchExecuteStatementOutputTransformOutput BatchExecuteStatementOutputTransform( - BatchExecuteStatementOutputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementOutputTransformInput dafnyValue = ToDafny.BatchExecuteStatementOutputTransformInput(input); - Result result = this._impl.BatchExecuteStatementOutputTransform(dafnyValue); + BatchExecuteStatementOutputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementOutputTransformInput dafnyValue = + ToDafny.BatchExecuteStatementOutputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementOutputTransformOutput, + Error + > result = this._impl.BatchExecuteStatementOutputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } - return ToNative.BatchExecuteStatementOutputTransformOutput(result.dtor_value()); + return ToNative.BatchExecuteStatementOutputTransformOutput( + result.dtor_value() + ); } public BatchGetItemInputTransformOutput BatchGetItemInputTransform( - BatchGetItemInputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemInputTransformInput dafnyValue = ToDafny.BatchGetItemInputTransformInput(input); - Result result = this._impl.BatchGetItemInputTransform(dafnyValue); + BatchGetItemInputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemInputTransformInput dafnyValue = + ToDafny.BatchGetItemInputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemInputTransformOutput, + Error + > result = this._impl.BatchGetItemInputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -117,9 +143,14 @@ public BatchGetItemInputTransformOutput BatchGetItemInputTransform( } public BatchGetItemOutputTransformOutput BatchGetItemOutputTransform( - BatchGetItemOutputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemOutputTransformInput dafnyValue = ToDafny.BatchGetItemOutputTransformInput(input); - Result result = this._impl.BatchGetItemOutputTransform(dafnyValue); + BatchGetItemOutputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemOutputTransformInput dafnyValue = + ToDafny.BatchGetItemOutputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemOutputTransformOutput, + Error + > result = this._impl.BatchGetItemOutputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -127,9 +158,14 @@ public BatchGetItemOutputTransformOutput BatchGetItemOutputTransform( } public BatchWriteItemInputTransformOutput BatchWriteItemInputTransform( - BatchWriteItemInputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemInputTransformInput dafnyValue = ToDafny.BatchWriteItemInputTransformInput(input); - Result result = this._impl.BatchWriteItemInputTransform(dafnyValue); + BatchWriteItemInputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemInputTransformInput dafnyValue = + ToDafny.BatchWriteItemInputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemInputTransformOutput, + Error + > result = this._impl.BatchWriteItemInputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -137,9 +173,14 @@ public BatchWriteItemInputTransformOutput BatchWriteItemInputTransform( } public BatchWriteItemOutputTransformOutput BatchWriteItemOutputTransform( - BatchWriteItemOutputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemOutputTransformInput dafnyValue = ToDafny.BatchWriteItemOutputTransformInput(input); - Result result = this._impl.BatchWriteItemOutputTransform(dafnyValue); + BatchWriteItemOutputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemOutputTransformInput dafnyValue = + ToDafny.BatchWriteItemOutputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemOutputTransformOutput, + Error + > result = this._impl.BatchWriteItemOutputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -147,9 +188,14 @@ public BatchWriteItemOutputTransformOutput BatchWriteItemOutputTransform( } public DeleteItemInputTransformOutput DeleteItemInputTransform( - DeleteItemInputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemInputTransformInput dafnyValue = ToDafny.DeleteItemInputTransformInput(input); - Result result = this._impl.DeleteItemInputTransform(dafnyValue); + DeleteItemInputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemInputTransformInput dafnyValue = + ToDafny.DeleteItemInputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemInputTransformOutput, + Error + > result = this._impl.DeleteItemInputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -157,9 +203,14 @@ public DeleteItemInputTransformOutput DeleteItemInputTransform( } public DeleteItemOutputTransformOutput DeleteItemOutputTransform( - DeleteItemOutputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemOutputTransformInput dafnyValue = ToDafny.DeleteItemOutputTransformInput(input); - Result result = this._impl.DeleteItemOutputTransform(dafnyValue); + DeleteItemOutputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemOutputTransformInput dafnyValue = + ToDafny.DeleteItemOutputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemOutputTransformOutput, + Error + > result = this._impl.DeleteItemOutputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -167,9 +218,14 @@ public DeleteItemOutputTransformOutput DeleteItemOutputTransform( } public ExecuteStatementInputTransformOutput ExecuteStatementInputTransform( - ExecuteStatementInputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementInputTransformInput dafnyValue = ToDafny.ExecuteStatementInputTransformInput(input); - Result result = this._impl.ExecuteStatementInputTransform(dafnyValue); + ExecuteStatementInputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementInputTransformInput dafnyValue = + ToDafny.ExecuteStatementInputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementInputTransformOutput, + Error + > result = this._impl.ExecuteStatementInputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -177,9 +233,14 @@ public ExecuteStatementInputTransformOutput ExecuteStatementInputTransform( } public ExecuteStatementOutputTransformOutput ExecuteStatementOutputTransform( - ExecuteStatementOutputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementOutputTransformInput dafnyValue = ToDafny.ExecuteStatementOutputTransformInput(input); - Result result = this._impl.ExecuteStatementOutputTransform(dafnyValue); + ExecuteStatementOutputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementOutputTransformInput dafnyValue = + ToDafny.ExecuteStatementOutputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementOutputTransformOutput, + Error + > result = this._impl.ExecuteStatementOutputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -187,9 +248,14 @@ public ExecuteStatementOutputTransformOutput ExecuteStatementOutputTransform( } public ExecuteTransactionInputTransformOutput ExecuteTransactionInputTransform( - ExecuteTransactionInputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionInputTransformInput dafnyValue = ToDafny.ExecuteTransactionInputTransformInput(input); - Result result = this._impl.ExecuteTransactionInputTransform(dafnyValue); + ExecuteTransactionInputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionInputTransformInput dafnyValue = + ToDafny.ExecuteTransactionInputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionInputTransformOutput, + Error + > result = this._impl.ExecuteTransactionInputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -197,63 +263,106 @@ public ExecuteTransactionInputTransformOutput ExecuteTransactionInputTransform( } public ExecuteTransactionOutputTransformOutput ExecuteTransactionOutputTransform( - ExecuteTransactionOutputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionOutputTransformInput dafnyValue = ToDafny.ExecuteTransactionOutputTransformInput(input); - Result result = this._impl.ExecuteTransactionOutputTransform(dafnyValue); + ExecuteTransactionOutputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionOutputTransformInput dafnyValue = + ToDafny.ExecuteTransactionOutputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionOutputTransformOutput, + Error + > result = this._impl.ExecuteTransactionOutputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } - return ToNative.ExecuteTransactionOutputTransformOutput(result.dtor_value()); + return ToNative.ExecuteTransactionOutputTransformOutput( + result.dtor_value() + ); } - public GetItemInputTransformOutput GetItemInputTransform(GetItemInputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemInputTransformInput dafnyValue = ToDafny.GetItemInputTransformInput(input); - Result result = this._impl.GetItemInputTransform(dafnyValue); + public GetItemInputTransformOutput GetItemInputTransform( + GetItemInputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemInputTransformInput dafnyValue = + ToDafny.GetItemInputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemInputTransformOutput, + Error + > result = this._impl.GetItemInputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } return ToNative.GetItemInputTransformOutput(result.dtor_value()); } - public GetItemOutputTransformOutput GetItemOutputTransform(GetItemOutputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemOutputTransformInput dafnyValue = ToDafny.GetItemOutputTransformInput(input); - Result result = this._impl.GetItemOutputTransform(dafnyValue); + public GetItemOutputTransformOutput GetItemOutputTransform( + GetItemOutputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemOutputTransformInput dafnyValue = + ToDafny.GetItemOutputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemOutputTransformOutput, + Error + > result = this._impl.GetItemOutputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } return ToNative.GetItemOutputTransformOutput(result.dtor_value()); } - public PutItemInputTransformOutput PutItemInputTransform(PutItemInputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemInputTransformInput dafnyValue = ToDafny.PutItemInputTransformInput(input); - Result result = this._impl.PutItemInputTransform(dafnyValue); + public PutItemInputTransformOutput PutItemInputTransform( + PutItemInputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemInputTransformInput dafnyValue = + ToDafny.PutItemInputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemInputTransformOutput, + Error + > result = this._impl.PutItemInputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } return ToNative.PutItemInputTransformOutput(result.dtor_value()); } - public PutItemOutputTransformOutput PutItemOutputTransform(PutItemOutputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemOutputTransformInput dafnyValue = ToDafny.PutItemOutputTransformInput(input); - Result result = this._impl.PutItemOutputTransform(dafnyValue); + public PutItemOutputTransformOutput PutItemOutputTransform( + PutItemOutputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemOutputTransformInput dafnyValue = + ToDafny.PutItemOutputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemOutputTransformOutput, + Error + > result = this._impl.PutItemOutputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } return ToNative.PutItemOutputTransformOutput(result.dtor_value()); } - public QueryInputTransformOutput QueryInputTransform(QueryInputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryInputTransformInput dafnyValue = ToDafny.QueryInputTransformInput(input); - Result result = this._impl.QueryInputTransform(dafnyValue); + public QueryInputTransformOutput QueryInputTransform( + QueryInputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryInputTransformInput dafnyValue = + ToDafny.QueryInputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryInputTransformOutput, + Error + > result = this._impl.QueryInputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } return ToNative.QueryInputTransformOutput(result.dtor_value()); } - public QueryOutputTransformOutput QueryOutputTransform(QueryOutputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryOutputTransformInput dafnyValue = ToDafny.QueryOutputTransformInput(input); - Result result = this._impl.QueryOutputTransform(dafnyValue); + public QueryOutputTransformOutput QueryOutputTransform( + QueryOutputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryOutputTransformInput dafnyValue = + ToDafny.QueryOutputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryOutputTransformOutput, + Error + > result = this._impl.QueryOutputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -264,27 +373,45 @@ public QueryOutputTransformOutput QueryOutputTransform(QueryOutputTransformInput * Given an Item, show the intermediate values (e.g. compound beacons, virtual fields). * */ - public ResolveAttributesOutput ResolveAttributes(ResolveAttributesInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ResolveAttributesInput dafnyValue = ToDafny.ResolveAttributesInput(input); - Result result = this._impl.ResolveAttributes(dafnyValue); + public ResolveAttributesOutput ResolveAttributes( + ResolveAttributesInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ResolveAttributesInput dafnyValue = + ToDafny.ResolveAttributesInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ResolveAttributesOutput, + Error + > result = this._impl.ResolveAttributes(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } return ToNative.ResolveAttributesOutput(result.dtor_value()); } - public ScanInputTransformOutput ScanInputTransform(ScanInputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanInputTransformInput dafnyValue = ToDafny.ScanInputTransformInput(input); - Result result = this._impl.ScanInputTransform(dafnyValue); + public ScanInputTransformOutput ScanInputTransform( + ScanInputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanInputTransformInput dafnyValue = + ToDafny.ScanInputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanInputTransformOutput, + Error + > result = this._impl.ScanInputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } return ToNative.ScanInputTransformOutput(result.dtor_value()); } - public ScanOutputTransformOutput ScanOutputTransform(ScanOutputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanOutputTransformInput dafnyValue = ToDafny.ScanOutputTransformInput(input); - Result result = this._impl.ScanOutputTransform(dafnyValue); + public ScanOutputTransformOutput ScanOutputTransform( + ScanOutputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanOutputTransformInput dafnyValue = + ToDafny.ScanOutputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanOutputTransformOutput, + Error + > result = this._impl.ScanOutputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -292,9 +419,14 @@ public ScanOutputTransformOutput ScanOutputTransform(ScanOutputTransformInput in } public TransactGetItemsInputTransformOutput TransactGetItemsInputTransform( - TransactGetItemsInputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsInputTransformInput dafnyValue = ToDafny.TransactGetItemsInputTransformInput(input); - Result result = this._impl.TransactGetItemsInputTransform(dafnyValue); + TransactGetItemsInputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsInputTransformInput dafnyValue = + ToDafny.TransactGetItemsInputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsInputTransformOutput, + Error + > result = this._impl.TransactGetItemsInputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -302,9 +434,14 @@ public TransactGetItemsInputTransformOutput TransactGetItemsInputTransform( } public TransactGetItemsOutputTransformOutput TransactGetItemsOutputTransform( - TransactGetItemsOutputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsOutputTransformInput dafnyValue = ToDafny.TransactGetItemsOutputTransformInput(input); - Result result = this._impl.TransactGetItemsOutputTransform(dafnyValue); + TransactGetItemsOutputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsOutputTransformInput dafnyValue = + ToDafny.TransactGetItemsOutputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsOutputTransformOutput, + Error + > result = this._impl.TransactGetItemsOutputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -312,9 +449,14 @@ public TransactGetItemsOutputTransformOutput TransactGetItemsOutputTransform( } public TransactWriteItemsInputTransformOutput TransactWriteItemsInputTransform( - TransactWriteItemsInputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsInputTransformInput dafnyValue = ToDafny.TransactWriteItemsInputTransformInput(input); - Result result = this._impl.TransactWriteItemsInputTransform(dafnyValue); + TransactWriteItemsInputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsInputTransformInput dafnyValue = + ToDafny.TransactWriteItemsInputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsInputTransformOutput, + Error + > result = this._impl.TransactWriteItemsInputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -322,19 +464,31 @@ public TransactWriteItemsInputTransformOutput TransactWriteItemsInputTransform( } public TransactWriteItemsOutputTransformOutput TransactWriteItemsOutputTransform( - TransactWriteItemsOutputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsOutputTransformInput dafnyValue = ToDafny.TransactWriteItemsOutputTransformInput(input); - Result result = this._impl.TransactWriteItemsOutputTransform(dafnyValue); + TransactWriteItemsOutputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsOutputTransformInput dafnyValue = + ToDafny.TransactWriteItemsOutputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsOutputTransformOutput, + Error + > result = this._impl.TransactWriteItemsOutputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } - return ToNative.TransactWriteItemsOutputTransformOutput(result.dtor_value()); + return ToNative.TransactWriteItemsOutputTransformOutput( + result.dtor_value() + ); } public UpdateItemInputTransformOutput UpdateItemInputTransform( - UpdateItemInputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemInputTransformInput dafnyValue = ToDafny.UpdateItemInputTransformInput(input); - Result result = this._impl.UpdateItemInputTransform(dafnyValue); + UpdateItemInputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemInputTransformInput dafnyValue = + ToDafny.UpdateItemInputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemInputTransformOutput, + Error + > result = this._impl.UpdateItemInputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -342,9 +496,14 @@ public UpdateItemInputTransformOutput UpdateItemInputTransform( } public UpdateItemOutputTransformOutput UpdateItemOutputTransform( - UpdateItemOutputTransformInput input) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemOutputTransformInput dafnyValue = ToDafny.UpdateItemOutputTransformInput(input); - Result result = this._impl.UpdateItemOutputTransform(dafnyValue); + UpdateItemOutputTransformInput input + ) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemOutputTransformInput dafnyValue = + ToDafny.UpdateItemOutputTransformInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemOutputTransformOutput, + Error + > result = this._impl.UpdateItemOutputTransform(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -360,7 +519,8 @@ public interface Builder { * @param DynamoDbTablesEncryptionConfig The configuration for client-side encryption with multiple DynamoDB table. */ Builder DynamoDbTablesEncryptionConfig( - DynamoDbTablesEncryptionConfig DynamoDbTablesEncryptionConfig); + DynamoDbTablesEncryptionConfig DynamoDbTablesEncryptionConfig + ); /** * @return The configuration for client-side encryption with multiple DynamoDB table. @@ -371,13 +531,14 @@ Builder DynamoDbTablesEncryptionConfig( } static class BuilderImpl implements Builder { + protected DynamoDbTablesEncryptionConfig DynamoDbTablesEncryptionConfig; - protected BuilderImpl() { - } + protected BuilderImpl() {} public Builder DynamoDbTablesEncryptionConfig( - DynamoDbTablesEncryptionConfig DynamoDbTablesEncryptionConfig) { + DynamoDbTablesEncryptionConfig DynamoDbTablesEncryptionConfig + ) { this.DynamoDbTablesEncryptionConfig = DynamoDbTablesEncryptionConfig; return this; } @@ -387,8 +548,10 @@ public DynamoDbTablesEncryptionConfig DynamoDbTablesEncryptionConfig() { } public DynamoDbEncryptionTransforms build() { - if (Objects.isNull(this.DynamoDbTablesEncryptionConfig())) { - throw new IllegalArgumentException("Missing value for required field `DynamoDbTablesEncryptionConfig`"); + if (Objects.isNull(this.DynamoDbTablesEncryptionConfig())) { + throw new IllegalArgumentException( + "Missing value for required field `DynamoDbTablesEncryptionConfig`" + ); } return new DynamoDbEncryptionTransforms(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/ToDafny.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/ToDafny.java index d543aeb3d..a2b9dc32a 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/ToDafny.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/ToDafny.java @@ -101,6 +101,7 @@ import software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateItemOutput; public class ToDafny { + public static Error Error(RuntimeException nativeValue) { if (nativeValue instanceof DynamoDbEncryptionTransformsException) { return ToDafny.Error((DynamoDbEncryptionTransformsException) nativeValue); @@ -119,442 +120,722 @@ public static Error Error(OpaqueError nativeValue) { } public static Error Error(CollectionOfErrors nativeValue) { - DafnySequence list = software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( - nativeValue.list(), - ToDafny::Error, - Error._typeDescriptor()); - DafnySequence message = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.getMessage()); + DafnySequence list = + software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( + nativeValue.list(), + ToDafny::Error, + Error._typeDescriptor() + ); + DafnySequence message = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.getMessage() + ); return Error.create_CollectionOfErrors(list, message); } public static BatchExecuteStatementInputTransformInput BatchExecuteStatementInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchExecuteStatementInputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchExecuteStatementInputTransformInput nativeValue + ) { BatchExecuteStatementInput sdkInput; - sdkInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchExecuteStatementInput(nativeValue.sdkInput()); + sdkInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchExecuteStatementInput( + nativeValue.sdkInput() + ); return new BatchExecuteStatementInputTransformInput(sdkInput); } public static BatchExecuteStatementInputTransformOutput BatchExecuteStatementInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchExecuteStatementInputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchExecuteStatementInputTransformOutput nativeValue + ) { BatchExecuteStatementInput transformedInput; - transformedInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchExecuteStatementInput(nativeValue.transformedInput()); + transformedInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchExecuteStatementInput( + nativeValue.transformedInput() + ); return new BatchExecuteStatementInputTransformOutput(transformedInput); } public static BatchExecuteStatementOutputTransformInput BatchExecuteStatementOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchExecuteStatementOutputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchExecuteStatementOutputTransformInput nativeValue + ) { BatchExecuteStatementOutput sdkOutput; - sdkOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchExecuteStatementOutput(nativeValue.sdkOutput()); + sdkOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchExecuteStatementOutput( + nativeValue.sdkOutput() + ); BatchExecuteStatementInput originalInput; - originalInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchExecuteStatementInput(nativeValue.originalInput()); - return new BatchExecuteStatementOutputTransformInput(sdkOutput, originalInput); + originalInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchExecuteStatementInput( + nativeValue.originalInput() + ); + return new BatchExecuteStatementOutputTransformInput( + sdkOutput, + originalInput + ); } public static BatchExecuteStatementOutputTransformOutput BatchExecuteStatementOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchExecuteStatementOutputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchExecuteStatementOutputTransformOutput nativeValue + ) { BatchExecuteStatementOutput transformedOutput; - transformedOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchExecuteStatementOutput(nativeValue.transformedOutput()); + transformedOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchExecuteStatementOutput( + nativeValue.transformedOutput() + ); return new BatchExecuteStatementOutputTransformOutput(transformedOutput); } public static BatchGetItemInputTransformInput BatchGetItemInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchGetItemInputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchGetItemInputTransformInput nativeValue + ) { BatchGetItemInput sdkInput; - sdkInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchGetItemInput(nativeValue.sdkInput()); + sdkInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchGetItemInput( + nativeValue.sdkInput() + ); return new BatchGetItemInputTransformInput(sdkInput); } public static BatchGetItemInputTransformOutput BatchGetItemInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchGetItemInputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchGetItemInputTransformOutput nativeValue + ) { BatchGetItemInput transformedInput; - transformedInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchGetItemInput(nativeValue.transformedInput()); + transformedInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchGetItemInput( + nativeValue.transformedInput() + ); return new BatchGetItemInputTransformOutput(transformedInput); } public static BatchGetItemOutputTransformInput BatchGetItemOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchGetItemOutputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchGetItemOutputTransformInput nativeValue + ) { BatchGetItemOutput sdkOutput; - sdkOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchGetItemOutput(nativeValue.sdkOutput()); + sdkOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchGetItemOutput( + nativeValue.sdkOutput() + ); BatchGetItemInput originalInput; - originalInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchGetItemInput(nativeValue.originalInput()); + originalInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchGetItemInput( + nativeValue.originalInput() + ); return new BatchGetItemOutputTransformInput(sdkOutput, originalInput); } public static BatchGetItemOutputTransformOutput BatchGetItemOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchGetItemOutputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchGetItemOutputTransformOutput nativeValue + ) { BatchGetItemOutput transformedOutput; - transformedOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchGetItemOutput(nativeValue.transformedOutput()); + transformedOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchGetItemOutput( + nativeValue.transformedOutput() + ); return new BatchGetItemOutputTransformOutput(transformedOutput); } public static BatchWriteItemInputTransformInput BatchWriteItemInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchWriteItemInputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchWriteItemInputTransformInput nativeValue + ) { BatchWriteItemInput sdkInput; - sdkInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchWriteItemInput(nativeValue.sdkInput()); + sdkInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchWriteItemInput( + nativeValue.sdkInput() + ); return new BatchWriteItemInputTransformInput(sdkInput); } public static BatchWriteItemInputTransformOutput BatchWriteItemInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchWriteItemInputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchWriteItemInputTransformOutput nativeValue + ) { BatchWriteItemInput transformedInput; - transformedInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchWriteItemInput(nativeValue.transformedInput()); + transformedInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchWriteItemInput( + nativeValue.transformedInput() + ); return new BatchWriteItemInputTransformOutput(transformedInput); } public static BatchWriteItemOutputTransformInput BatchWriteItemOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchWriteItemOutputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchWriteItemOutputTransformInput nativeValue + ) { BatchWriteItemOutput sdkOutput; - sdkOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchWriteItemOutput(nativeValue.sdkOutput()); + sdkOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchWriteItemOutput( + nativeValue.sdkOutput() + ); BatchWriteItemInput originalInput; - originalInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchWriteItemInput(nativeValue.originalInput()); + originalInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchWriteItemInput( + nativeValue.originalInput() + ); return new BatchWriteItemOutputTransformInput(sdkOutput, originalInput); } public static BatchWriteItemOutputTransformOutput BatchWriteItemOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchWriteItemOutputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.BatchWriteItemOutputTransformOutput nativeValue + ) { BatchWriteItemOutput transformedOutput; - transformedOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchWriteItemOutput(nativeValue.transformedOutput()); + transformedOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.BatchWriteItemOutput( + nativeValue.transformedOutput() + ); return new BatchWriteItemOutputTransformOutput(transformedOutput); } public static DeleteItemInputTransformInput DeleteItemInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.DeleteItemInputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.DeleteItemInputTransformInput nativeValue + ) { DeleteItemInput sdkInput; - sdkInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.DeleteItemInput(nativeValue.sdkInput()); + sdkInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.DeleteItemInput( + nativeValue.sdkInput() + ); return new DeleteItemInputTransformInput(sdkInput); } public static DeleteItemInputTransformOutput DeleteItemInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.DeleteItemInputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.DeleteItemInputTransformOutput nativeValue + ) { DeleteItemInput transformedInput; - transformedInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.DeleteItemInput(nativeValue.transformedInput()); + transformedInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.DeleteItemInput( + nativeValue.transformedInput() + ); return new DeleteItemInputTransformOutput(transformedInput); } public static DeleteItemOutputTransformInput DeleteItemOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.DeleteItemOutputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.DeleteItemOutputTransformInput nativeValue + ) { DeleteItemOutput sdkOutput; - sdkOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.DeleteItemOutput(nativeValue.sdkOutput()); + sdkOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.DeleteItemOutput( + nativeValue.sdkOutput() + ); DeleteItemInput originalInput; - originalInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.DeleteItemInput(nativeValue.originalInput()); + originalInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.DeleteItemInput( + nativeValue.originalInput() + ); return new DeleteItemOutputTransformInput(sdkOutput, originalInput); } public static DeleteItemOutputTransformOutput DeleteItemOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.DeleteItemOutputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.DeleteItemOutputTransformOutput nativeValue + ) { DeleteItemOutput transformedOutput; - transformedOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.DeleteItemOutput(nativeValue.transformedOutput()); + transformedOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.DeleteItemOutput( + nativeValue.transformedOutput() + ); return new DeleteItemOutputTransformOutput(transformedOutput); } public static ExecuteStatementInputTransformInput ExecuteStatementInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ExecuteStatementInputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ExecuteStatementInputTransformInput nativeValue + ) { ExecuteStatementInput sdkInput; - sdkInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteStatementInput(nativeValue.sdkInput()); + sdkInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteStatementInput( + nativeValue.sdkInput() + ); return new ExecuteStatementInputTransformInput(sdkInput); } public static ExecuteStatementInputTransformOutput ExecuteStatementInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ExecuteStatementInputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ExecuteStatementInputTransformOutput nativeValue + ) { ExecuteStatementInput transformedInput; - transformedInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteStatementInput(nativeValue.transformedInput()); + transformedInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteStatementInput( + nativeValue.transformedInput() + ); return new ExecuteStatementInputTransformOutput(transformedInput); } public static ExecuteStatementOutputTransformInput ExecuteStatementOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ExecuteStatementOutputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ExecuteStatementOutputTransformInput nativeValue + ) { ExecuteStatementOutput sdkOutput; - sdkOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteStatementOutput(nativeValue.sdkOutput()); + sdkOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteStatementOutput( + nativeValue.sdkOutput() + ); ExecuteStatementInput originalInput; - originalInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteStatementInput(nativeValue.originalInput()); + originalInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteStatementInput( + nativeValue.originalInput() + ); return new ExecuteStatementOutputTransformInput(sdkOutput, originalInput); } public static ExecuteStatementOutputTransformOutput ExecuteStatementOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ExecuteStatementOutputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ExecuteStatementOutputTransformOutput nativeValue + ) { ExecuteStatementOutput transformedOutput; - transformedOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteStatementOutput(nativeValue.transformedOutput()); + transformedOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteStatementOutput( + nativeValue.transformedOutput() + ); return new ExecuteStatementOutputTransformOutput(transformedOutput); } public static ExecuteTransactionInputTransformInput ExecuteTransactionInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ExecuteTransactionInputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ExecuteTransactionInputTransformInput nativeValue + ) { ExecuteTransactionInput sdkInput; - sdkInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteTransactionInput(nativeValue.sdkInput()); + sdkInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteTransactionInput( + nativeValue.sdkInput() + ); return new ExecuteTransactionInputTransformInput(sdkInput); } public static ExecuteTransactionInputTransformOutput ExecuteTransactionInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ExecuteTransactionInputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ExecuteTransactionInputTransformOutput nativeValue + ) { ExecuteTransactionInput transformedInput; - transformedInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteTransactionInput(nativeValue.transformedInput()); + transformedInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteTransactionInput( + nativeValue.transformedInput() + ); return new ExecuteTransactionInputTransformOutput(transformedInput); } public static ExecuteTransactionOutputTransformInput ExecuteTransactionOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ExecuteTransactionOutputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ExecuteTransactionOutputTransformInput nativeValue + ) { ExecuteTransactionOutput sdkOutput; - sdkOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteTransactionOutput(nativeValue.sdkOutput()); + sdkOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteTransactionOutput( + nativeValue.sdkOutput() + ); ExecuteTransactionInput originalInput; - originalInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteTransactionInput(nativeValue.originalInput()); + originalInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteTransactionInput( + nativeValue.originalInput() + ); return new ExecuteTransactionOutputTransformInput(sdkOutput, originalInput); } public static ExecuteTransactionOutputTransformOutput ExecuteTransactionOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ExecuteTransactionOutputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ExecuteTransactionOutputTransformOutput nativeValue + ) { ExecuteTransactionOutput transformedOutput; - transformedOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteTransactionOutput(nativeValue.transformedOutput()); + transformedOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ExecuteTransactionOutput( + nativeValue.transformedOutput() + ); return new ExecuteTransactionOutputTransformOutput(transformedOutput); } public static GetItemInputTransformInput GetItemInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.GetItemInputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.GetItemInputTransformInput nativeValue + ) { GetItemInput sdkInput; - sdkInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.GetItemInput(nativeValue.sdkInput()); + sdkInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.GetItemInput( + nativeValue.sdkInput() + ); return new GetItemInputTransformInput(sdkInput); } public static GetItemInputTransformOutput GetItemInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.GetItemInputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.GetItemInputTransformOutput nativeValue + ) { GetItemInput transformedInput; - transformedInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.GetItemInput(nativeValue.transformedInput()); + transformedInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.GetItemInput( + nativeValue.transformedInput() + ); return new GetItemInputTransformOutput(transformedInput); } public static GetItemOutputTransformInput GetItemOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.GetItemOutputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.GetItemOutputTransformInput nativeValue + ) { GetItemOutput sdkOutput; - sdkOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.GetItemOutput(nativeValue.sdkOutput()); + sdkOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.GetItemOutput( + nativeValue.sdkOutput() + ); GetItemInput originalInput; - originalInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.GetItemInput(nativeValue.originalInput()); + originalInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.GetItemInput( + nativeValue.originalInput() + ); return new GetItemOutputTransformInput(sdkOutput, originalInput); } public static GetItemOutputTransformOutput GetItemOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.GetItemOutputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.GetItemOutputTransformOutput nativeValue + ) { GetItemOutput transformedOutput; - transformedOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.GetItemOutput(nativeValue.transformedOutput()); + transformedOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.GetItemOutput( + nativeValue.transformedOutput() + ); return new GetItemOutputTransformOutput(transformedOutput); } public static PutItemInputTransformInput PutItemInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.PutItemInputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.PutItemInputTransformInput nativeValue + ) { PutItemInput sdkInput; - sdkInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.PutItemInput(nativeValue.sdkInput()); + sdkInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.PutItemInput( + nativeValue.sdkInput() + ); return new PutItemInputTransformInput(sdkInput); } public static PutItemInputTransformOutput PutItemInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.PutItemInputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.PutItemInputTransformOutput nativeValue + ) { PutItemInput transformedInput; - transformedInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.PutItemInput(nativeValue.transformedInput()); + transformedInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.PutItemInput( + nativeValue.transformedInput() + ); return new PutItemInputTransformOutput(transformedInput); } public static PutItemOutputTransformInput PutItemOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.PutItemOutputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.PutItemOutputTransformInput nativeValue + ) { PutItemOutput sdkOutput; - sdkOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.PutItemOutput(nativeValue.sdkOutput()); + sdkOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.PutItemOutput( + nativeValue.sdkOutput() + ); PutItemInput originalInput; - originalInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.PutItemInput(nativeValue.originalInput()); + originalInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.PutItemInput( + nativeValue.originalInput() + ); return new PutItemOutputTransformInput(sdkOutput, originalInput); } public static PutItemOutputTransformOutput PutItemOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.PutItemOutputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.PutItemOutputTransformOutput nativeValue + ) { PutItemOutput transformedOutput; - transformedOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.PutItemOutput(nativeValue.transformedOutput()); + transformedOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.PutItemOutput( + nativeValue.transformedOutput() + ); return new PutItemOutputTransformOutput(transformedOutput); } public static QueryInputTransformInput QueryInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.QueryInputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.QueryInputTransformInput nativeValue + ) { QueryInput sdkInput; - sdkInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.QueryInput(nativeValue.sdkInput()); + sdkInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.QueryInput( + nativeValue.sdkInput() + ); return new QueryInputTransformInput(sdkInput); } public static QueryInputTransformOutput QueryInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.QueryInputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.QueryInputTransformOutput nativeValue + ) { QueryInput transformedInput; - transformedInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.QueryInput(nativeValue.transformedInput()); + transformedInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.QueryInput( + nativeValue.transformedInput() + ); return new QueryInputTransformOutput(transformedInput); } public static QueryOutputTransformInput QueryOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.QueryOutputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.QueryOutputTransformInput nativeValue + ) { QueryOutput sdkOutput; - sdkOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.QueryOutput(nativeValue.sdkOutput()); + sdkOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.QueryOutput( + nativeValue.sdkOutput() + ); QueryInput originalInput; - originalInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.QueryInput(nativeValue.originalInput()); + originalInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.QueryInput( + nativeValue.originalInput() + ); return new QueryOutputTransformInput(sdkOutput, originalInput); } public static QueryOutputTransformOutput QueryOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.QueryOutputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.QueryOutputTransformOutput nativeValue + ) { QueryOutput transformedOutput; - transformedOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.QueryOutput(nativeValue.transformedOutput()); + transformedOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.QueryOutput( + nativeValue.transformedOutput() + ); return new QueryOutputTransformOutput(transformedOutput); } public static ResolveAttributesInput ResolveAttributesInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ResolveAttributesInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ResolveAttributesInput nativeValue + ) { DafnySequence tableName; - tableName = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.TableName()); - DafnyMap, ? extends AttributeValue> item; - item = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.AttributeMap(nativeValue.Item()); + tableName = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.TableName() + ); + DafnyMap< + ? extends DafnySequence, + ? extends AttributeValue + > item; + item = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.AttributeMap( + nativeValue.Item() + ); Option version; - version = Objects.nonNull(nativeValue.Version()) ? - Option.create_Some((nativeValue.Version())) + version = + Objects.nonNull(nativeValue.Version()) + ? Option.create_Some((nativeValue.Version())) : Option.create_None(); return new ResolveAttributesInput(tableName, item, version); } public static ResolveAttributesOutput ResolveAttributesOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ResolveAttributesOutput nativeValue) { - DafnyMap, ? extends DafnySequence> virtualFields; + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ResolveAttributesOutput nativeValue + ) { + DafnyMap< + ? extends DafnySequence, + ? extends DafnySequence + > virtualFields; virtualFields = ToDafny.StringMap(nativeValue.VirtualFields()); - DafnyMap, ? extends DafnySequence> compoundBeacons; + DafnyMap< + ? extends DafnySequence, + ? extends DafnySequence + > compoundBeacons; compoundBeacons = ToDafny.StringMap(nativeValue.CompoundBeacons()); return new ResolveAttributesOutput(virtualFields, compoundBeacons); } public static ScanInputTransformInput ScanInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ScanInputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ScanInputTransformInput nativeValue + ) { ScanInput sdkInput; - sdkInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ScanInput(nativeValue.sdkInput()); + sdkInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ScanInput( + nativeValue.sdkInput() + ); return new ScanInputTransformInput(sdkInput); } public static ScanInputTransformOutput ScanInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ScanInputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ScanInputTransformOutput nativeValue + ) { ScanInput transformedInput; - transformedInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ScanInput(nativeValue.transformedInput()); + transformedInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ScanInput( + nativeValue.transformedInput() + ); return new ScanInputTransformOutput(transformedInput); } public static ScanOutputTransformInput ScanOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ScanOutputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ScanOutputTransformInput nativeValue + ) { ScanOutput sdkOutput; - sdkOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ScanOutput(nativeValue.sdkOutput()); + sdkOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ScanOutput( + nativeValue.sdkOutput() + ); ScanInput originalInput; - originalInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ScanInput(nativeValue.originalInput()); + originalInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ScanInput( + nativeValue.originalInput() + ); return new ScanOutputTransformInput(sdkOutput, originalInput); } public static ScanOutputTransformOutput ScanOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ScanOutputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.ScanOutputTransformOutput nativeValue + ) { ScanOutput transformedOutput; - transformedOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ScanOutput(nativeValue.transformedOutput()); + transformedOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.ScanOutput( + nativeValue.transformedOutput() + ); return new ScanOutputTransformOutput(transformedOutput); } public static TransactGetItemsInputTransformInput TransactGetItemsInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.TransactGetItemsInputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.TransactGetItemsInputTransformInput nativeValue + ) { TransactGetItemsInput sdkInput; - sdkInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactGetItemsInput(nativeValue.sdkInput()); + sdkInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactGetItemsInput( + nativeValue.sdkInput() + ); return new TransactGetItemsInputTransformInput(sdkInput); } public static TransactGetItemsInputTransformOutput TransactGetItemsInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.TransactGetItemsInputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.TransactGetItemsInputTransformOutput nativeValue + ) { TransactGetItemsInput transformedInput; - transformedInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactGetItemsInput(nativeValue.transformedInput()); + transformedInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactGetItemsInput( + nativeValue.transformedInput() + ); return new TransactGetItemsInputTransformOutput(transformedInput); } public static TransactGetItemsOutputTransformInput TransactGetItemsOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.TransactGetItemsOutputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.TransactGetItemsOutputTransformInput nativeValue + ) { TransactGetItemsOutput sdkOutput; - sdkOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactGetItemsOutput(nativeValue.sdkOutput()); + sdkOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactGetItemsOutput( + nativeValue.sdkOutput() + ); TransactGetItemsInput originalInput; - originalInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactGetItemsInput(nativeValue.originalInput()); + originalInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactGetItemsInput( + nativeValue.originalInput() + ); return new TransactGetItemsOutputTransformInput(sdkOutput, originalInput); } public static TransactGetItemsOutputTransformOutput TransactGetItemsOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.TransactGetItemsOutputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.TransactGetItemsOutputTransformOutput nativeValue + ) { TransactGetItemsOutput transformedOutput; - transformedOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactGetItemsOutput(nativeValue.transformedOutput()); + transformedOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactGetItemsOutput( + nativeValue.transformedOutput() + ); return new TransactGetItemsOutputTransformOutput(transformedOutput); } public static TransactWriteItemsInputTransformInput TransactWriteItemsInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.TransactWriteItemsInputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.TransactWriteItemsInputTransformInput nativeValue + ) { TransactWriteItemsInput sdkInput; - sdkInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactWriteItemsInput(nativeValue.sdkInput()); + sdkInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactWriteItemsInput( + nativeValue.sdkInput() + ); return new TransactWriteItemsInputTransformInput(sdkInput); } public static TransactWriteItemsInputTransformOutput TransactWriteItemsInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.TransactWriteItemsInputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.TransactWriteItemsInputTransformOutput nativeValue + ) { TransactWriteItemsInput transformedInput; - transformedInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactWriteItemsInput(nativeValue.transformedInput()); + transformedInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactWriteItemsInput( + nativeValue.transformedInput() + ); return new TransactWriteItemsInputTransformOutput(transformedInput); } public static TransactWriteItemsOutputTransformInput TransactWriteItemsOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.TransactWriteItemsOutputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.TransactWriteItemsOutputTransformInput nativeValue + ) { TransactWriteItemsOutput sdkOutput; - sdkOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactWriteItemsOutput(nativeValue.sdkOutput()); + sdkOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactWriteItemsOutput( + nativeValue.sdkOutput() + ); TransactWriteItemsInput originalInput; - originalInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactWriteItemsInput(nativeValue.originalInput()); + originalInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactWriteItemsInput( + nativeValue.originalInput() + ); return new TransactWriteItemsOutputTransformInput(sdkOutput, originalInput); } public static TransactWriteItemsOutputTransformOutput TransactWriteItemsOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.TransactWriteItemsOutputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.TransactWriteItemsOutputTransformOutput nativeValue + ) { TransactWriteItemsOutput transformedOutput; - transformedOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactWriteItemsOutput(nativeValue.transformedOutput()); + transformedOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.TransactWriteItemsOutput( + nativeValue.transformedOutput() + ); return new TransactWriteItemsOutputTransformOutput(transformedOutput); } public static UpdateItemInputTransformInput UpdateItemInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.UpdateItemInputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.UpdateItemInputTransformInput nativeValue + ) { UpdateItemInput sdkInput; - sdkInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.UpdateItemInput(nativeValue.sdkInput()); + sdkInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.UpdateItemInput( + nativeValue.sdkInput() + ); return new UpdateItemInputTransformInput(sdkInput); } public static UpdateItemInputTransformOutput UpdateItemInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.UpdateItemInputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.UpdateItemInputTransformOutput nativeValue + ) { UpdateItemInput transformedInput; - transformedInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.UpdateItemInput(nativeValue.transformedInput()); + transformedInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.UpdateItemInput( + nativeValue.transformedInput() + ); return new UpdateItemInputTransformOutput(transformedInput); } public static UpdateItemOutputTransformInput UpdateItemOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.UpdateItemOutputTransformInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.UpdateItemOutputTransformInput nativeValue + ) { UpdateItemOutput sdkOutput; - sdkOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.UpdateItemOutput(nativeValue.sdkOutput()); + sdkOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.UpdateItemOutput( + nativeValue.sdkOutput() + ); UpdateItemInput originalInput; - originalInput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.UpdateItemInput(nativeValue.originalInput()); + originalInput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.UpdateItemInput( + nativeValue.originalInput() + ); return new UpdateItemOutputTransformInput(sdkOutput, originalInput); } public static UpdateItemOutputTransformOutput UpdateItemOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.UpdateItemOutputTransformOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.UpdateItemOutputTransformOutput nativeValue + ) { UpdateItemOutput transformedOutput; - transformedOutput = software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.UpdateItemOutput(nativeValue.transformedOutput()); + transformedOutput = + software.amazon.cryptography.services.dynamodb.internaldafny.ToDafny.UpdateItemOutput( + nativeValue.transformedOutput() + ); return new UpdateItemOutputTransformOutput(transformedOutput); } public static Error Error(DynamoDbEncryptionTransformsException nativeValue) { DafnySequence message; - message = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.message()); + message = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.message() + ); return new Error_DynamoDbEncryptionTransformsException(message); } - public static DafnyMap, ? extends DafnySequence> StringMap( - Map nativeValue) { + public static DafnyMap< + ? extends DafnySequence, + ? extends DafnySequence + > StringMap(Map nativeValue) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToMap( - nativeValue, - software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, - software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence); + nativeValue, + software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, + software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence + ); } public static IDynamoDbEncryptionTransformsClient DynamoDbEncryptionTransforms( - DynamoDbEncryptionTransforms nativeValue) { + DynamoDbEncryptionTransforms nativeValue + ) { return nativeValue.impl(); } } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/ToNative.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/ToNative.java index e50bde40c..0d8cb2a2e 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/ToNative.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/ToNative.java @@ -73,6 +73,7 @@ import software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model.UpdateItemOutputTransformOutput; public class ToNative { + public static OpaqueError Error(Error_Opaque dafnyValue) { OpaqueError.Builder nativeBuilder = OpaqueError.builder(); nativeBuilder.obj(dafnyValue.dtor_obj()); @@ -82,23 +83,37 @@ public static OpaqueError Error(Error_Opaque dafnyValue) { public static CollectionOfErrors Error(Error_CollectionOfErrors dafnyValue) { CollectionOfErrors.Builder nativeBuilder = CollectionOfErrors.builder(); nativeBuilder.list( - software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( - dafnyValue.dtor_list(), - ToNative::Error)); - nativeBuilder.message(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_message())); + software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( + dafnyValue.dtor_list(), + ToNative::Error + ) + ); + nativeBuilder.message( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_message() + ) + ); return nativeBuilder.build(); } public static DynamoDbEncryptionTransformsException Error( - Error_DynamoDbEncryptionTransformsException dafnyValue) { - DynamoDbEncryptionTransformsException.Builder nativeBuilder = DynamoDbEncryptionTransformsException.builder(); - nativeBuilder.message(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_message())); + Error_DynamoDbEncryptionTransformsException dafnyValue + ) { + DynamoDbEncryptionTransformsException.Builder nativeBuilder = + DynamoDbEncryptionTransformsException.builder(); + nativeBuilder.message( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_message() + ) + ); return nativeBuilder.build(); } public static RuntimeException Error(Error dafnyValue) { if (dafnyValue.is_DynamoDbEncryptionTransformsException()) { - return ToNative.Error((Error_DynamoDbEncryptionTransformsException) dafnyValue); + return ToNative.Error( + (Error_DynamoDbEncryptionTransformsException) dafnyValue + ); } if (dafnyValue.is_Opaque()) { return ToNative.Error((Error_Opaque) dafnyValue); @@ -107,16 +122,24 @@ public static RuntimeException Error(Error dafnyValue) { return ToNative.Error((Error_CollectionOfErrors) dafnyValue); } if (dafnyValue.is_ComAmazonawsDynamodb()) { - return software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.Error(dafnyValue.dtor_ComAmazonawsDynamodb()); + return software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.Error( + dafnyValue.dtor_ComAmazonawsDynamodb() + ); } if (dafnyValue.is_AwsCryptographyDbEncryptionSdkDynamoDb()) { - return software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative.Error(dafnyValue.dtor_AwsCryptographyDbEncryptionSdkDynamoDb()); + return software.amazon.cryptography.dbencryptionsdk.dynamodb.ToNative.Error( + dafnyValue.dtor_AwsCryptographyDbEncryptionSdkDynamoDb() + ); } if (dafnyValue.is_AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptor()) { - return software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.ToNative.Error(dafnyValue.dtor_AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptor()); + return software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.ToNative.Error( + dafnyValue.dtor_AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptor() + ); } if (dafnyValue.is_AwsCryptographyDbEncryptionSdkStructuredEncryption()) { - return software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative.Error(dafnyValue.dtor_AwsCryptographyDbEncryptionSdkStructuredEncryption()); + return software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative.Error( + dafnyValue.dtor_AwsCryptographyDbEncryptionSdkStructuredEncryption() + ); } OpaqueError.Builder nativeBuilder = OpaqueError.builder(); nativeBuilder.obj(dafnyValue); @@ -124,271 +147,533 @@ public static RuntimeException Error(Error dafnyValue) { } public static BatchExecuteStatementInputTransformInput BatchExecuteStatementInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementInputTransformInput dafnyValue) { - BatchExecuteStatementInputTransformInput.Builder nativeBuilder = BatchExecuteStatementInputTransformInput.builder(); - nativeBuilder.sdkInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchExecuteStatementInput(dafnyValue.dtor_sdkInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementInputTransformInput dafnyValue + ) { + BatchExecuteStatementInputTransformInput.Builder nativeBuilder = + BatchExecuteStatementInputTransformInput.builder(); + nativeBuilder.sdkInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchExecuteStatementInput( + dafnyValue.dtor_sdkInput() + ) + ); return nativeBuilder.build(); } public static BatchExecuteStatementInputTransformOutput BatchExecuteStatementInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementInputTransformOutput dafnyValue) { - BatchExecuteStatementInputTransformOutput.Builder nativeBuilder = BatchExecuteStatementInputTransformOutput.builder(); - nativeBuilder.transformedInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchExecuteStatementInput(dafnyValue.dtor_transformedInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementInputTransformOutput dafnyValue + ) { + BatchExecuteStatementInputTransformOutput.Builder nativeBuilder = + BatchExecuteStatementInputTransformOutput.builder(); + nativeBuilder.transformedInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchExecuteStatementInput( + dafnyValue.dtor_transformedInput() + ) + ); return nativeBuilder.build(); } public static BatchExecuteStatementOutputTransformInput BatchExecuteStatementOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementOutputTransformInput dafnyValue) { - BatchExecuteStatementOutputTransformInput.Builder nativeBuilder = BatchExecuteStatementOutputTransformInput.builder(); - nativeBuilder.sdkOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchExecuteStatementOutput(dafnyValue.dtor_sdkOutput())); - nativeBuilder.originalInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchExecuteStatementInput(dafnyValue.dtor_originalInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementOutputTransformInput dafnyValue + ) { + BatchExecuteStatementOutputTransformInput.Builder nativeBuilder = + BatchExecuteStatementOutputTransformInput.builder(); + nativeBuilder.sdkOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchExecuteStatementOutput( + dafnyValue.dtor_sdkOutput() + ) + ); + nativeBuilder.originalInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchExecuteStatementInput( + dafnyValue.dtor_originalInput() + ) + ); return nativeBuilder.build(); } public static BatchExecuteStatementOutputTransformOutput BatchExecuteStatementOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementOutputTransformOutput dafnyValue) { - BatchExecuteStatementOutputTransformOutput.Builder nativeBuilder = BatchExecuteStatementOutputTransformOutput.builder(); - nativeBuilder.transformedOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchExecuteStatementOutput(dafnyValue.dtor_transformedOutput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementOutputTransformOutput dafnyValue + ) { + BatchExecuteStatementOutputTransformOutput.Builder nativeBuilder = + BatchExecuteStatementOutputTransformOutput.builder(); + nativeBuilder.transformedOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchExecuteStatementOutput( + dafnyValue.dtor_transformedOutput() + ) + ); return nativeBuilder.build(); } public static BatchGetItemInputTransformInput BatchGetItemInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemInputTransformInput dafnyValue) { - BatchGetItemInputTransformInput.Builder nativeBuilder = BatchGetItemInputTransformInput.builder(); - nativeBuilder.sdkInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchGetItemInput(dafnyValue.dtor_sdkInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemInputTransformInput dafnyValue + ) { + BatchGetItemInputTransformInput.Builder nativeBuilder = + BatchGetItemInputTransformInput.builder(); + nativeBuilder.sdkInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchGetItemInput( + dafnyValue.dtor_sdkInput() + ) + ); return nativeBuilder.build(); } public static BatchGetItemInputTransformOutput BatchGetItemInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemInputTransformOutput dafnyValue) { - BatchGetItemInputTransformOutput.Builder nativeBuilder = BatchGetItemInputTransformOutput.builder(); - nativeBuilder.transformedInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchGetItemInput(dafnyValue.dtor_transformedInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemInputTransformOutput dafnyValue + ) { + BatchGetItemInputTransformOutput.Builder nativeBuilder = + BatchGetItemInputTransformOutput.builder(); + nativeBuilder.transformedInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchGetItemInput( + dafnyValue.dtor_transformedInput() + ) + ); return nativeBuilder.build(); } public static BatchGetItemOutputTransformInput BatchGetItemOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemOutputTransformInput dafnyValue) { - BatchGetItemOutputTransformInput.Builder nativeBuilder = BatchGetItemOutputTransformInput.builder(); - nativeBuilder.sdkOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchGetItemOutput(dafnyValue.dtor_sdkOutput())); - nativeBuilder.originalInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchGetItemInput(dafnyValue.dtor_originalInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemOutputTransformInput dafnyValue + ) { + BatchGetItemOutputTransformInput.Builder nativeBuilder = + BatchGetItemOutputTransformInput.builder(); + nativeBuilder.sdkOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchGetItemOutput( + dafnyValue.dtor_sdkOutput() + ) + ); + nativeBuilder.originalInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchGetItemInput( + dafnyValue.dtor_originalInput() + ) + ); return nativeBuilder.build(); } public static BatchGetItemOutputTransformOutput BatchGetItemOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemOutputTransformOutput dafnyValue) { - BatchGetItemOutputTransformOutput.Builder nativeBuilder = BatchGetItemOutputTransformOutput.builder(); - nativeBuilder.transformedOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchGetItemOutput(dafnyValue.dtor_transformedOutput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemOutputTransformOutput dafnyValue + ) { + BatchGetItemOutputTransformOutput.Builder nativeBuilder = + BatchGetItemOutputTransformOutput.builder(); + nativeBuilder.transformedOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchGetItemOutput( + dafnyValue.dtor_transformedOutput() + ) + ); return nativeBuilder.build(); } public static BatchWriteItemInputTransformInput BatchWriteItemInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemInputTransformInput dafnyValue) { - BatchWriteItemInputTransformInput.Builder nativeBuilder = BatchWriteItemInputTransformInput.builder(); - nativeBuilder.sdkInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchWriteItemInput(dafnyValue.dtor_sdkInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemInputTransformInput dafnyValue + ) { + BatchWriteItemInputTransformInput.Builder nativeBuilder = + BatchWriteItemInputTransformInput.builder(); + nativeBuilder.sdkInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchWriteItemInput( + dafnyValue.dtor_sdkInput() + ) + ); return nativeBuilder.build(); } public static BatchWriteItemInputTransformOutput BatchWriteItemInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemInputTransformOutput dafnyValue) { - BatchWriteItemInputTransformOutput.Builder nativeBuilder = BatchWriteItemInputTransformOutput.builder(); - nativeBuilder.transformedInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchWriteItemInput(dafnyValue.dtor_transformedInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemInputTransformOutput dafnyValue + ) { + BatchWriteItemInputTransformOutput.Builder nativeBuilder = + BatchWriteItemInputTransformOutput.builder(); + nativeBuilder.transformedInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchWriteItemInput( + dafnyValue.dtor_transformedInput() + ) + ); return nativeBuilder.build(); } public static BatchWriteItemOutputTransformInput BatchWriteItemOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemOutputTransformInput dafnyValue) { - BatchWriteItemOutputTransformInput.Builder nativeBuilder = BatchWriteItemOutputTransformInput.builder(); - nativeBuilder.sdkOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchWriteItemOutput(dafnyValue.dtor_sdkOutput())); - nativeBuilder.originalInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchWriteItemInput(dafnyValue.dtor_originalInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemOutputTransformInput dafnyValue + ) { + BatchWriteItemOutputTransformInput.Builder nativeBuilder = + BatchWriteItemOutputTransformInput.builder(); + nativeBuilder.sdkOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchWriteItemOutput( + dafnyValue.dtor_sdkOutput() + ) + ); + nativeBuilder.originalInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchWriteItemInput( + dafnyValue.dtor_originalInput() + ) + ); return nativeBuilder.build(); } public static BatchWriteItemOutputTransformOutput BatchWriteItemOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemOutputTransformOutput dafnyValue) { - BatchWriteItemOutputTransformOutput.Builder nativeBuilder = BatchWriteItemOutputTransformOutput.builder(); - nativeBuilder.transformedOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchWriteItemOutput(dafnyValue.dtor_transformedOutput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemOutputTransformOutput dafnyValue + ) { + BatchWriteItemOutputTransformOutput.Builder nativeBuilder = + BatchWriteItemOutputTransformOutput.builder(); + nativeBuilder.transformedOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.BatchWriteItemOutput( + dafnyValue.dtor_transformedOutput() + ) + ); return nativeBuilder.build(); } public static DeleteItemInputTransformInput DeleteItemInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemInputTransformInput dafnyValue) { - DeleteItemInputTransformInput.Builder nativeBuilder = DeleteItemInputTransformInput.builder(); - nativeBuilder.sdkInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.DeleteItemInput(dafnyValue.dtor_sdkInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemInputTransformInput dafnyValue + ) { + DeleteItemInputTransformInput.Builder nativeBuilder = + DeleteItemInputTransformInput.builder(); + nativeBuilder.sdkInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.DeleteItemInput( + dafnyValue.dtor_sdkInput() + ) + ); return nativeBuilder.build(); } public static DeleteItemInputTransformOutput DeleteItemInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemInputTransformOutput dafnyValue) { - DeleteItemInputTransformOutput.Builder nativeBuilder = DeleteItemInputTransformOutput.builder(); - nativeBuilder.transformedInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.DeleteItemInput(dafnyValue.dtor_transformedInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemInputTransformOutput dafnyValue + ) { + DeleteItemInputTransformOutput.Builder nativeBuilder = + DeleteItemInputTransformOutput.builder(); + nativeBuilder.transformedInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.DeleteItemInput( + dafnyValue.dtor_transformedInput() + ) + ); return nativeBuilder.build(); } public static DeleteItemOutputTransformInput DeleteItemOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemOutputTransformInput dafnyValue) { - DeleteItemOutputTransformInput.Builder nativeBuilder = DeleteItemOutputTransformInput.builder(); - nativeBuilder.sdkOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.DeleteItemOutput(dafnyValue.dtor_sdkOutput())); - nativeBuilder.originalInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.DeleteItemInput(dafnyValue.dtor_originalInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemOutputTransformInput dafnyValue + ) { + DeleteItemOutputTransformInput.Builder nativeBuilder = + DeleteItemOutputTransformInput.builder(); + nativeBuilder.sdkOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.DeleteItemOutput( + dafnyValue.dtor_sdkOutput() + ) + ); + nativeBuilder.originalInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.DeleteItemInput( + dafnyValue.dtor_originalInput() + ) + ); return nativeBuilder.build(); } public static DeleteItemOutputTransformOutput DeleteItemOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemOutputTransformOutput dafnyValue) { - DeleteItemOutputTransformOutput.Builder nativeBuilder = DeleteItemOutputTransformOutput.builder(); - nativeBuilder.transformedOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.DeleteItemOutput(dafnyValue.dtor_transformedOutput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemOutputTransformOutput dafnyValue + ) { + DeleteItemOutputTransformOutput.Builder nativeBuilder = + DeleteItemOutputTransformOutput.builder(); + nativeBuilder.transformedOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.DeleteItemOutput( + dafnyValue.dtor_transformedOutput() + ) + ); return nativeBuilder.build(); } public static ExecuteStatementInputTransformInput ExecuteStatementInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementInputTransformInput dafnyValue) { - ExecuteStatementInputTransformInput.Builder nativeBuilder = ExecuteStatementInputTransformInput.builder(); - nativeBuilder.sdkInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteStatementInput(dafnyValue.dtor_sdkInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementInputTransformInput dafnyValue + ) { + ExecuteStatementInputTransformInput.Builder nativeBuilder = + ExecuteStatementInputTransformInput.builder(); + nativeBuilder.sdkInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteStatementInput( + dafnyValue.dtor_sdkInput() + ) + ); return nativeBuilder.build(); } public static ExecuteStatementInputTransformOutput ExecuteStatementInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementInputTransformOutput dafnyValue) { - ExecuteStatementInputTransformOutput.Builder nativeBuilder = ExecuteStatementInputTransformOutput.builder(); - nativeBuilder.transformedInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteStatementInput(dafnyValue.dtor_transformedInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementInputTransformOutput dafnyValue + ) { + ExecuteStatementInputTransformOutput.Builder nativeBuilder = + ExecuteStatementInputTransformOutput.builder(); + nativeBuilder.transformedInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteStatementInput( + dafnyValue.dtor_transformedInput() + ) + ); return nativeBuilder.build(); } public static ExecuteStatementOutputTransformInput ExecuteStatementOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementOutputTransformInput dafnyValue) { - ExecuteStatementOutputTransformInput.Builder nativeBuilder = ExecuteStatementOutputTransformInput.builder(); - nativeBuilder.sdkOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteStatementOutput(dafnyValue.dtor_sdkOutput())); - nativeBuilder.originalInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteStatementInput(dafnyValue.dtor_originalInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementOutputTransformInput dafnyValue + ) { + ExecuteStatementOutputTransformInput.Builder nativeBuilder = + ExecuteStatementOutputTransformInput.builder(); + nativeBuilder.sdkOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteStatementOutput( + dafnyValue.dtor_sdkOutput() + ) + ); + nativeBuilder.originalInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteStatementInput( + dafnyValue.dtor_originalInput() + ) + ); return nativeBuilder.build(); } public static ExecuteStatementOutputTransformOutput ExecuteStatementOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementOutputTransformOutput dafnyValue) { - ExecuteStatementOutputTransformOutput.Builder nativeBuilder = ExecuteStatementOutputTransformOutput.builder(); - nativeBuilder.transformedOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteStatementOutput(dafnyValue.dtor_transformedOutput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementOutputTransformOutput dafnyValue + ) { + ExecuteStatementOutputTransformOutput.Builder nativeBuilder = + ExecuteStatementOutputTransformOutput.builder(); + nativeBuilder.transformedOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteStatementOutput( + dafnyValue.dtor_transformedOutput() + ) + ); return nativeBuilder.build(); } public static ExecuteTransactionInputTransformInput ExecuteTransactionInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionInputTransformInput dafnyValue) { - ExecuteTransactionInputTransformInput.Builder nativeBuilder = ExecuteTransactionInputTransformInput.builder(); - nativeBuilder.sdkInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteTransactionInput(dafnyValue.dtor_sdkInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionInputTransformInput dafnyValue + ) { + ExecuteTransactionInputTransformInput.Builder nativeBuilder = + ExecuteTransactionInputTransformInput.builder(); + nativeBuilder.sdkInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteTransactionInput( + dafnyValue.dtor_sdkInput() + ) + ); return nativeBuilder.build(); } public static ExecuteTransactionInputTransformOutput ExecuteTransactionInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionInputTransformOutput dafnyValue) { - ExecuteTransactionInputTransformOutput.Builder nativeBuilder = ExecuteTransactionInputTransformOutput.builder(); - nativeBuilder.transformedInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteTransactionInput(dafnyValue.dtor_transformedInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionInputTransformOutput dafnyValue + ) { + ExecuteTransactionInputTransformOutput.Builder nativeBuilder = + ExecuteTransactionInputTransformOutput.builder(); + nativeBuilder.transformedInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteTransactionInput( + dafnyValue.dtor_transformedInput() + ) + ); return nativeBuilder.build(); } public static ExecuteTransactionOutputTransformInput ExecuteTransactionOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionOutputTransformInput dafnyValue) { - ExecuteTransactionOutputTransformInput.Builder nativeBuilder = ExecuteTransactionOutputTransformInput.builder(); - nativeBuilder.sdkOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteTransactionOutput(dafnyValue.dtor_sdkOutput())); - nativeBuilder.originalInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteTransactionInput(dafnyValue.dtor_originalInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionOutputTransformInput dafnyValue + ) { + ExecuteTransactionOutputTransformInput.Builder nativeBuilder = + ExecuteTransactionOutputTransformInput.builder(); + nativeBuilder.sdkOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteTransactionOutput( + dafnyValue.dtor_sdkOutput() + ) + ); + nativeBuilder.originalInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteTransactionInput( + dafnyValue.dtor_originalInput() + ) + ); return nativeBuilder.build(); } public static ExecuteTransactionOutputTransformOutput ExecuteTransactionOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionOutputTransformOutput dafnyValue) { - ExecuteTransactionOutputTransformOutput.Builder nativeBuilder = ExecuteTransactionOutputTransformOutput.builder(); - nativeBuilder.transformedOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteTransactionOutput(dafnyValue.dtor_transformedOutput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionOutputTransformOutput dafnyValue + ) { + ExecuteTransactionOutputTransformOutput.Builder nativeBuilder = + ExecuteTransactionOutputTransformOutput.builder(); + nativeBuilder.transformedOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ExecuteTransactionOutput( + dafnyValue.dtor_transformedOutput() + ) + ); return nativeBuilder.build(); } public static GetItemInputTransformInput GetItemInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemInputTransformInput dafnyValue) { - GetItemInputTransformInput.Builder nativeBuilder = GetItemInputTransformInput.builder(); - nativeBuilder.sdkInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.GetItemInput(dafnyValue.dtor_sdkInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemInputTransformInput dafnyValue + ) { + GetItemInputTransformInput.Builder nativeBuilder = + GetItemInputTransformInput.builder(); + nativeBuilder.sdkInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.GetItemInput( + dafnyValue.dtor_sdkInput() + ) + ); return nativeBuilder.build(); } public static GetItemInputTransformOutput GetItemInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemInputTransformOutput dafnyValue) { - GetItemInputTransformOutput.Builder nativeBuilder = GetItemInputTransformOutput.builder(); - nativeBuilder.transformedInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.GetItemInput(dafnyValue.dtor_transformedInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemInputTransformOutput dafnyValue + ) { + GetItemInputTransformOutput.Builder nativeBuilder = + GetItemInputTransformOutput.builder(); + nativeBuilder.transformedInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.GetItemInput( + dafnyValue.dtor_transformedInput() + ) + ); return nativeBuilder.build(); } public static GetItemOutputTransformInput GetItemOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemOutputTransformInput dafnyValue) { - GetItemOutputTransformInput.Builder nativeBuilder = GetItemOutputTransformInput.builder(); - nativeBuilder.sdkOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.GetItemOutput(dafnyValue.dtor_sdkOutput())); - nativeBuilder.originalInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.GetItemInput(dafnyValue.dtor_originalInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemOutputTransformInput dafnyValue + ) { + GetItemOutputTransformInput.Builder nativeBuilder = + GetItemOutputTransformInput.builder(); + nativeBuilder.sdkOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.GetItemOutput( + dafnyValue.dtor_sdkOutput() + ) + ); + nativeBuilder.originalInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.GetItemInput( + dafnyValue.dtor_originalInput() + ) + ); return nativeBuilder.build(); } public static GetItemOutputTransformOutput GetItemOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemOutputTransformOutput dafnyValue) { - GetItemOutputTransformOutput.Builder nativeBuilder = GetItemOutputTransformOutput.builder(); - nativeBuilder.transformedOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.GetItemOutput(dafnyValue.dtor_transformedOutput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemOutputTransformOutput dafnyValue + ) { + GetItemOutputTransformOutput.Builder nativeBuilder = + GetItemOutputTransformOutput.builder(); + nativeBuilder.transformedOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.GetItemOutput( + dafnyValue.dtor_transformedOutput() + ) + ); return nativeBuilder.build(); } public static PutItemInputTransformInput PutItemInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemInputTransformInput dafnyValue) { - PutItemInputTransformInput.Builder nativeBuilder = PutItemInputTransformInput.builder(); - nativeBuilder.sdkInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.PutItemInput(dafnyValue.dtor_sdkInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemInputTransformInput dafnyValue + ) { + PutItemInputTransformInput.Builder nativeBuilder = + PutItemInputTransformInput.builder(); + nativeBuilder.sdkInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.PutItemInput( + dafnyValue.dtor_sdkInput() + ) + ); return nativeBuilder.build(); } public static PutItemInputTransformOutput PutItemInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemInputTransformOutput dafnyValue) { - PutItemInputTransformOutput.Builder nativeBuilder = PutItemInputTransformOutput.builder(); - nativeBuilder.transformedInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.PutItemInput(dafnyValue.dtor_transformedInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemInputTransformOutput dafnyValue + ) { + PutItemInputTransformOutput.Builder nativeBuilder = + PutItemInputTransformOutput.builder(); + nativeBuilder.transformedInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.PutItemInput( + dafnyValue.dtor_transformedInput() + ) + ); return nativeBuilder.build(); } public static PutItemOutputTransformInput PutItemOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemOutputTransformInput dafnyValue) { - PutItemOutputTransformInput.Builder nativeBuilder = PutItemOutputTransformInput.builder(); - nativeBuilder.sdkOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.PutItemOutput(dafnyValue.dtor_sdkOutput())); - nativeBuilder.originalInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.PutItemInput(dafnyValue.dtor_originalInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemOutputTransformInput dafnyValue + ) { + PutItemOutputTransformInput.Builder nativeBuilder = + PutItemOutputTransformInput.builder(); + nativeBuilder.sdkOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.PutItemOutput( + dafnyValue.dtor_sdkOutput() + ) + ); + nativeBuilder.originalInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.PutItemInput( + dafnyValue.dtor_originalInput() + ) + ); return nativeBuilder.build(); } public static PutItemOutputTransformOutput PutItemOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemOutputTransformOutput dafnyValue) { - PutItemOutputTransformOutput.Builder nativeBuilder = PutItemOutputTransformOutput.builder(); - nativeBuilder.transformedOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.PutItemOutput(dafnyValue.dtor_transformedOutput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemOutputTransformOutput dafnyValue + ) { + PutItemOutputTransformOutput.Builder nativeBuilder = + PutItemOutputTransformOutput.builder(); + nativeBuilder.transformedOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.PutItemOutput( + dafnyValue.dtor_transformedOutput() + ) + ); return nativeBuilder.build(); } public static QueryInputTransformInput QueryInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryInputTransformInput dafnyValue) { - QueryInputTransformInput.Builder nativeBuilder = QueryInputTransformInput.builder(); - nativeBuilder.sdkInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.QueryInput(dafnyValue.dtor_sdkInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryInputTransformInput dafnyValue + ) { + QueryInputTransformInput.Builder nativeBuilder = + QueryInputTransformInput.builder(); + nativeBuilder.sdkInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.QueryInput( + dafnyValue.dtor_sdkInput() + ) + ); return nativeBuilder.build(); } public static QueryInputTransformOutput QueryInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryInputTransformOutput dafnyValue) { - QueryInputTransformOutput.Builder nativeBuilder = QueryInputTransformOutput.builder(); - nativeBuilder.transformedInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.QueryInput(dafnyValue.dtor_transformedInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryInputTransformOutput dafnyValue + ) { + QueryInputTransformOutput.Builder nativeBuilder = + QueryInputTransformOutput.builder(); + nativeBuilder.transformedInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.QueryInput( + dafnyValue.dtor_transformedInput() + ) + ); return nativeBuilder.build(); } public static QueryOutputTransformInput QueryOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryOutputTransformInput dafnyValue) { - QueryOutputTransformInput.Builder nativeBuilder = QueryOutputTransformInput.builder(); - nativeBuilder.sdkOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.QueryOutput(dafnyValue.dtor_sdkOutput())); - nativeBuilder.originalInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.QueryInput(dafnyValue.dtor_originalInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryOutputTransformInput dafnyValue + ) { + QueryOutputTransformInput.Builder nativeBuilder = + QueryOutputTransformInput.builder(); + nativeBuilder.sdkOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.QueryOutput( + dafnyValue.dtor_sdkOutput() + ) + ); + nativeBuilder.originalInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.QueryInput( + dafnyValue.dtor_originalInput() + ) + ); return nativeBuilder.build(); } public static QueryOutputTransformOutput QueryOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryOutputTransformOutput dafnyValue) { - QueryOutputTransformOutput.Builder nativeBuilder = QueryOutputTransformOutput.builder(); - nativeBuilder.transformedOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.QueryOutput(dafnyValue.dtor_transformedOutput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryOutputTransformOutput dafnyValue + ) { + QueryOutputTransformOutput.Builder nativeBuilder = + QueryOutputTransformOutput.builder(); + nativeBuilder.transformedOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.QueryOutput( + dafnyValue.dtor_transformedOutput() + ) + ); return nativeBuilder.build(); } public static ResolveAttributesInput ResolveAttributesInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ResolveAttributesInput dafnyValue) { - ResolveAttributesInput.Builder nativeBuilder = ResolveAttributesInput.builder(); - nativeBuilder.TableName(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_TableName())); - nativeBuilder.Item(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.AttributeMap(dafnyValue.dtor_Item())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ResolveAttributesInput dafnyValue + ) { + ResolveAttributesInput.Builder nativeBuilder = + ResolveAttributesInput.builder(); + nativeBuilder.TableName( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_TableName() + ) + ); + nativeBuilder.Item( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.AttributeMap( + dafnyValue.dtor_Item() + ) + ); if (dafnyValue.dtor_Version().is_Some()) { nativeBuilder.Version((dafnyValue.dtor_Version().dtor_value())); } @@ -396,139 +681,263 @@ public static ResolveAttributesInput ResolveAttributesInput( } public static ResolveAttributesOutput ResolveAttributesOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ResolveAttributesOutput dafnyValue) { - ResolveAttributesOutput.Builder nativeBuilder = ResolveAttributesOutput.builder(); - nativeBuilder.VirtualFields(ToNative.StringMap(dafnyValue.dtor_VirtualFields())); - nativeBuilder.CompoundBeacons(ToNative.StringMap(dafnyValue.dtor_CompoundBeacons())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ResolveAttributesOutput dafnyValue + ) { + ResolveAttributesOutput.Builder nativeBuilder = + ResolveAttributesOutput.builder(); + nativeBuilder.VirtualFields( + ToNative.StringMap(dafnyValue.dtor_VirtualFields()) + ); + nativeBuilder.CompoundBeacons( + ToNative.StringMap(dafnyValue.dtor_CompoundBeacons()) + ); return nativeBuilder.build(); } public static ScanInputTransformInput ScanInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanInputTransformInput dafnyValue) { - ScanInputTransformInput.Builder nativeBuilder = ScanInputTransformInput.builder(); - nativeBuilder.sdkInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ScanInput(dafnyValue.dtor_sdkInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanInputTransformInput dafnyValue + ) { + ScanInputTransformInput.Builder nativeBuilder = + ScanInputTransformInput.builder(); + nativeBuilder.sdkInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ScanInput( + dafnyValue.dtor_sdkInput() + ) + ); return nativeBuilder.build(); } public static ScanInputTransformOutput ScanInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanInputTransformOutput dafnyValue) { - ScanInputTransformOutput.Builder nativeBuilder = ScanInputTransformOutput.builder(); - nativeBuilder.transformedInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ScanInput(dafnyValue.dtor_transformedInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanInputTransformOutput dafnyValue + ) { + ScanInputTransformOutput.Builder nativeBuilder = + ScanInputTransformOutput.builder(); + nativeBuilder.transformedInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ScanInput( + dafnyValue.dtor_transformedInput() + ) + ); return nativeBuilder.build(); } public static ScanOutputTransformInput ScanOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanOutputTransformInput dafnyValue) { - ScanOutputTransformInput.Builder nativeBuilder = ScanOutputTransformInput.builder(); - nativeBuilder.sdkOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ScanOutput(dafnyValue.dtor_sdkOutput())); - nativeBuilder.originalInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ScanInput(dafnyValue.dtor_originalInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanOutputTransformInput dafnyValue + ) { + ScanOutputTransformInput.Builder nativeBuilder = + ScanOutputTransformInput.builder(); + nativeBuilder.sdkOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ScanOutput( + dafnyValue.dtor_sdkOutput() + ) + ); + nativeBuilder.originalInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ScanInput( + dafnyValue.dtor_originalInput() + ) + ); return nativeBuilder.build(); } public static ScanOutputTransformOutput ScanOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanOutputTransformOutput dafnyValue) { - ScanOutputTransformOutput.Builder nativeBuilder = ScanOutputTransformOutput.builder(); - nativeBuilder.transformedOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ScanOutput(dafnyValue.dtor_transformedOutput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanOutputTransformOutput dafnyValue + ) { + ScanOutputTransformOutput.Builder nativeBuilder = + ScanOutputTransformOutput.builder(); + nativeBuilder.transformedOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.ScanOutput( + dafnyValue.dtor_transformedOutput() + ) + ); return nativeBuilder.build(); } public static TransactGetItemsInputTransformInput TransactGetItemsInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsInputTransformInput dafnyValue) { - TransactGetItemsInputTransformInput.Builder nativeBuilder = TransactGetItemsInputTransformInput.builder(); - nativeBuilder.sdkInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactGetItemsInput(dafnyValue.dtor_sdkInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsInputTransformInput dafnyValue + ) { + TransactGetItemsInputTransformInput.Builder nativeBuilder = + TransactGetItemsInputTransformInput.builder(); + nativeBuilder.sdkInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactGetItemsInput( + dafnyValue.dtor_sdkInput() + ) + ); return nativeBuilder.build(); } public static TransactGetItemsInputTransformOutput TransactGetItemsInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsInputTransformOutput dafnyValue) { - TransactGetItemsInputTransformOutput.Builder nativeBuilder = TransactGetItemsInputTransformOutput.builder(); - nativeBuilder.transformedInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactGetItemsInput(dafnyValue.dtor_transformedInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsInputTransformOutput dafnyValue + ) { + TransactGetItemsInputTransformOutput.Builder nativeBuilder = + TransactGetItemsInputTransformOutput.builder(); + nativeBuilder.transformedInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactGetItemsInput( + dafnyValue.dtor_transformedInput() + ) + ); return nativeBuilder.build(); } public static TransactGetItemsOutputTransformInput TransactGetItemsOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsOutputTransformInput dafnyValue) { - TransactGetItemsOutputTransformInput.Builder nativeBuilder = TransactGetItemsOutputTransformInput.builder(); - nativeBuilder.sdkOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactGetItemsOutput(dafnyValue.dtor_sdkOutput())); - nativeBuilder.originalInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactGetItemsInput(dafnyValue.dtor_originalInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsOutputTransformInput dafnyValue + ) { + TransactGetItemsOutputTransformInput.Builder nativeBuilder = + TransactGetItemsOutputTransformInput.builder(); + nativeBuilder.sdkOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactGetItemsOutput( + dafnyValue.dtor_sdkOutput() + ) + ); + nativeBuilder.originalInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactGetItemsInput( + dafnyValue.dtor_originalInput() + ) + ); return nativeBuilder.build(); } public static TransactGetItemsOutputTransformOutput TransactGetItemsOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsOutputTransformOutput dafnyValue) { - TransactGetItemsOutputTransformOutput.Builder nativeBuilder = TransactGetItemsOutputTransformOutput.builder(); - nativeBuilder.transformedOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactGetItemsOutput(dafnyValue.dtor_transformedOutput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsOutputTransformOutput dafnyValue + ) { + TransactGetItemsOutputTransformOutput.Builder nativeBuilder = + TransactGetItemsOutputTransformOutput.builder(); + nativeBuilder.transformedOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactGetItemsOutput( + dafnyValue.dtor_transformedOutput() + ) + ); return nativeBuilder.build(); } public static TransactWriteItemsInputTransformInput TransactWriteItemsInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsInputTransformInput dafnyValue) { - TransactWriteItemsInputTransformInput.Builder nativeBuilder = TransactWriteItemsInputTransformInput.builder(); - nativeBuilder.sdkInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactWriteItemsInput(dafnyValue.dtor_sdkInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsInputTransformInput dafnyValue + ) { + TransactWriteItemsInputTransformInput.Builder nativeBuilder = + TransactWriteItemsInputTransformInput.builder(); + nativeBuilder.sdkInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactWriteItemsInput( + dafnyValue.dtor_sdkInput() + ) + ); return nativeBuilder.build(); } public static TransactWriteItemsInputTransformOutput TransactWriteItemsInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsInputTransformOutput dafnyValue) { - TransactWriteItemsInputTransformOutput.Builder nativeBuilder = TransactWriteItemsInputTransformOutput.builder(); - nativeBuilder.transformedInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactWriteItemsInput(dafnyValue.dtor_transformedInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsInputTransformOutput dafnyValue + ) { + TransactWriteItemsInputTransformOutput.Builder nativeBuilder = + TransactWriteItemsInputTransformOutput.builder(); + nativeBuilder.transformedInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactWriteItemsInput( + dafnyValue.dtor_transformedInput() + ) + ); return nativeBuilder.build(); } public static TransactWriteItemsOutputTransformInput TransactWriteItemsOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsOutputTransformInput dafnyValue) { - TransactWriteItemsOutputTransformInput.Builder nativeBuilder = TransactWriteItemsOutputTransformInput.builder(); - nativeBuilder.sdkOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactWriteItemsOutput(dafnyValue.dtor_sdkOutput())); - nativeBuilder.originalInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactWriteItemsInput(dafnyValue.dtor_originalInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsOutputTransformInput dafnyValue + ) { + TransactWriteItemsOutputTransformInput.Builder nativeBuilder = + TransactWriteItemsOutputTransformInput.builder(); + nativeBuilder.sdkOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactWriteItemsOutput( + dafnyValue.dtor_sdkOutput() + ) + ); + nativeBuilder.originalInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactWriteItemsInput( + dafnyValue.dtor_originalInput() + ) + ); return nativeBuilder.build(); } public static TransactWriteItemsOutputTransformOutput TransactWriteItemsOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsOutputTransformOutput dafnyValue) { - TransactWriteItemsOutputTransformOutput.Builder nativeBuilder = TransactWriteItemsOutputTransformOutput.builder(); - nativeBuilder.transformedOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactWriteItemsOutput(dafnyValue.dtor_transformedOutput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsOutputTransformOutput dafnyValue + ) { + TransactWriteItemsOutputTransformOutput.Builder nativeBuilder = + TransactWriteItemsOutputTransformOutput.builder(); + nativeBuilder.transformedOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.TransactWriteItemsOutput( + dafnyValue.dtor_transformedOutput() + ) + ); return nativeBuilder.build(); } public static UpdateItemInputTransformInput UpdateItemInputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemInputTransformInput dafnyValue) { - UpdateItemInputTransformInput.Builder nativeBuilder = UpdateItemInputTransformInput.builder(); - nativeBuilder.sdkInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.UpdateItemInput(dafnyValue.dtor_sdkInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemInputTransformInput dafnyValue + ) { + UpdateItemInputTransformInput.Builder nativeBuilder = + UpdateItemInputTransformInput.builder(); + nativeBuilder.sdkInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.UpdateItemInput( + dafnyValue.dtor_sdkInput() + ) + ); return nativeBuilder.build(); } public static UpdateItemInputTransformOutput UpdateItemInputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemInputTransformOutput dafnyValue) { - UpdateItemInputTransformOutput.Builder nativeBuilder = UpdateItemInputTransformOutput.builder(); - nativeBuilder.transformedInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.UpdateItemInput(dafnyValue.dtor_transformedInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemInputTransformOutput dafnyValue + ) { + UpdateItemInputTransformOutput.Builder nativeBuilder = + UpdateItemInputTransformOutput.builder(); + nativeBuilder.transformedInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.UpdateItemInput( + dafnyValue.dtor_transformedInput() + ) + ); return nativeBuilder.build(); } public static UpdateItemOutputTransformInput UpdateItemOutputTransformInput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemOutputTransformInput dafnyValue) { - UpdateItemOutputTransformInput.Builder nativeBuilder = UpdateItemOutputTransformInput.builder(); - nativeBuilder.sdkOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.UpdateItemOutput(dafnyValue.dtor_sdkOutput())); - nativeBuilder.originalInput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.UpdateItemInput(dafnyValue.dtor_originalInput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemOutputTransformInput dafnyValue + ) { + UpdateItemOutputTransformInput.Builder nativeBuilder = + UpdateItemOutputTransformInput.builder(); + nativeBuilder.sdkOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.UpdateItemOutput( + dafnyValue.dtor_sdkOutput() + ) + ); + nativeBuilder.originalInput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.UpdateItemInput( + dafnyValue.dtor_originalInput() + ) + ); return nativeBuilder.build(); } public static UpdateItemOutputTransformOutput UpdateItemOutputTransformOutput( - software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemOutputTransformOutput dafnyValue) { - UpdateItemOutputTransformOutput.Builder nativeBuilder = UpdateItemOutputTransformOutput.builder(); - nativeBuilder.transformedOutput(software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.UpdateItemOutput(dafnyValue.dtor_transformedOutput())); + software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemOutputTransformOutput dafnyValue + ) { + UpdateItemOutputTransformOutput.Builder nativeBuilder = + UpdateItemOutputTransformOutput.builder(); + nativeBuilder.transformedOutput( + software.amazon.cryptography.services.dynamodb.internaldafny.ToNative.UpdateItemOutput( + dafnyValue.dtor_transformedOutput() + ) + ); return nativeBuilder.build(); } public static Map StringMap( - DafnyMap, ? extends DafnySequence> dafnyValue) { + DafnyMap< + ? extends DafnySequence, + ? extends DafnySequence + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToMap( - dafnyValue, - software.amazon.smithy.dafny.conversion.ToNative.Simple::String, - software.amazon.smithy.dafny.conversion.ToNative.Simple::String); + dafnyValue, + software.amazon.smithy.dafny.conversion.ToNative.Simple::String, + software.amazon.smithy.dafny.conversion.ToNative.Simple::String + ); } public static DynamoDbEncryptionTransforms DynamoDbEncryptionTransforms( - IDynamoDbEncryptionTransformsClient dafnyValue) { + IDynamoDbEncryptionTransformsClient dafnyValue + ) { return new DynamoDbEncryptionTransforms(dafnyValue); } } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchExecuteStatementInputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchExecuteStatementInputTransformInput.java index 64474b374..81a2a90f9 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchExecuteStatementInputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchExecuteStatementInputTransformInput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.BatchExecuteStatementRequest; public class BatchExecuteStatementInputTransformInput { + private final BatchExecuteStatementRequest sdkInput; protected BatchExecuteStatementInputTransformInput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected BatchExecuteStatementRequest sdkInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(BatchExecuteStatementInputTransformInput model) { this.sdkInput = model.sdkInput(); @@ -53,8 +54,10 @@ public BatchExecuteStatementRequest sdkInput() { } public BatchExecuteStatementInputTransformInput build() { - if (Objects.isNull(this.sdkInput())) { - throw new IllegalArgumentException("Missing value for required field `sdkInput`"); + if (Objects.isNull(this.sdkInput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkInput`" + ); } return new BatchExecuteStatementInputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchExecuteStatementInputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchExecuteStatementInputTransformOutput.java index 4453a5f83..0a0fb3f25 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchExecuteStatementInputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchExecuteStatementInputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.BatchExecuteStatementRequest; public class BatchExecuteStatementInputTransformOutput { + private final BatchExecuteStatementRequest transformedInput; protected BatchExecuteStatementInputTransformOutput(BuilderImpl builder) { @@ -34,16 +35,18 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected BatchExecuteStatementRequest transformedInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(BatchExecuteStatementInputTransformOutput model) { this.transformedInput = model.transformedInput(); } - public Builder transformedInput(BatchExecuteStatementRequest transformedInput) { + public Builder transformedInput( + BatchExecuteStatementRequest transformedInput + ) { this.transformedInput = transformedInput; return this; } @@ -53,8 +56,10 @@ public BatchExecuteStatementRequest transformedInput() { } public BatchExecuteStatementInputTransformOutput build() { - if (Objects.isNull(this.transformedInput())) { - throw new IllegalArgumentException("Missing value for required field `transformedInput`"); + if (Objects.isNull(this.transformedInput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedInput`" + ); } return new BatchExecuteStatementInputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchExecuteStatementOutputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchExecuteStatementOutputTransformInput.java index 22077d4f8..2f89180cf 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchExecuteStatementOutputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchExecuteStatementOutputTransformInput.java @@ -8,6 +8,7 @@ import software.amazon.awssdk.services.dynamodb.model.BatchExecuteStatementResponse; public class BatchExecuteStatementOutputTransformInput { + private final BatchExecuteStatementResponse sdkOutput; private final BatchExecuteStatementRequest originalInput; @@ -46,12 +47,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected BatchExecuteStatementResponse sdkOutput; protected BatchExecuteStatementRequest originalInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(BatchExecuteStatementOutputTransformInput model) { this.sdkOutput = model.sdkOutput(); @@ -77,11 +78,15 @@ public BatchExecuteStatementRequest originalInput() { } public BatchExecuteStatementOutputTransformInput build() { - if (Objects.isNull(this.sdkOutput())) { - throw new IllegalArgumentException("Missing value for required field `sdkOutput`"); + if (Objects.isNull(this.sdkOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkOutput`" + ); } - if (Objects.isNull(this.originalInput())) { - throw new IllegalArgumentException("Missing value for required field `originalInput`"); + if (Objects.isNull(this.originalInput())) { + throw new IllegalArgumentException( + "Missing value for required field `originalInput`" + ); } return new BatchExecuteStatementOutputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchExecuteStatementOutputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchExecuteStatementOutputTransformOutput.java index 9c5bbfabc..c2185f9eb 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchExecuteStatementOutputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchExecuteStatementOutputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.BatchExecuteStatementResponse; public class BatchExecuteStatementOutputTransformOutput { + private final BatchExecuteStatementResponse transformedOutput; protected BatchExecuteStatementOutputTransformOutput(BuilderImpl builder) { @@ -34,16 +35,18 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected BatchExecuteStatementResponse transformedOutput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(BatchExecuteStatementOutputTransformOutput model) { this.transformedOutput = model.transformedOutput(); } - public Builder transformedOutput(BatchExecuteStatementResponse transformedOutput) { + public Builder transformedOutput( + BatchExecuteStatementResponse transformedOutput + ) { this.transformedOutput = transformedOutput; return this; } @@ -53,8 +56,10 @@ public BatchExecuteStatementResponse transformedOutput() { } public BatchExecuteStatementOutputTransformOutput build() { - if (Objects.isNull(this.transformedOutput())) { - throw new IllegalArgumentException("Missing value for required field `transformedOutput`"); + if (Objects.isNull(this.transformedOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedOutput`" + ); } return new BatchExecuteStatementOutputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchGetItemInputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchGetItemInputTransformInput.java index 24b208120..360c70c49 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchGetItemInputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchGetItemInputTransformInput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.BatchGetItemRequest; public class BatchGetItemInputTransformInput { + private final BatchGetItemRequest sdkInput; protected BatchGetItemInputTransformInput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected BatchGetItemRequest sdkInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(BatchGetItemInputTransformInput model) { this.sdkInput = model.sdkInput(); @@ -53,8 +54,10 @@ public BatchGetItemRequest sdkInput() { } public BatchGetItemInputTransformInput build() { - if (Objects.isNull(this.sdkInput())) { - throw new IllegalArgumentException("Missing value for required field `sdkInput`"); + if (Objects.isNull(this.sdkInput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkInput`" + ); } return new BatchGetItemInputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchGetItemInputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchGetItemInputTransformOutput.java index c71e6ea65..ca9f10aa4 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchGetItemInputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchGetItemInputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.BatchGetItemRequest; public class BatchGetItemInputTransformOutput { + private final BatchGetItemRequest transformedInput; protected BatchGetItemInputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected BatchGetItemRequest transformedInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(BatchGetItemInputTransformOutput model) { this.transformedInput = model.transformedInput(); @@ -53,8 +54,10 @@ public BatchGetItemRequest transformedInput() { } public BatchGetItemInputTransformOutput build() { - if (Objects.isNull(this.transformedInput())) { - throw new IllegalArgumentException("Missing value for required field `transformedInput`"); + if (Objects.isNull(this.transformedInput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedInput`" + ); } return new BatchGetItemInputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchGetItemOutputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchGetItemOutputTransformInput.java index b45da93d3..5769cb985 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchGetItemOutputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchGetItemOutputTransformInput.java @@ -8,6 +8,7 @@ import software.amazon.awssdk.services.dynamodb.model.BatchGetItemResponse; public class BatchGetItemOutputTransformInput { + private final BatchGetItemResponse sdkOutput; private final BatchGetItemRequest originalInput; @@ -46,12 +47,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected BatchGetItemResponse sdkOutput; protected BatchGetItemRequest originalInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(BatchGetItemOutputTransformInput model) { this.sdkOutput = model.sdkOutput(); @@ -77,11 +78,15 @@ public BatchGetItemRequest originalInput() { } public BatchGetItemOutputTransformInput build() { - if (Objects.isNull(this.sdkOutput())) { - throw new IllegalArgumentException("Missing value for required field `sdkOutput`"); + if (Objects.isNull(this.sdkOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkOutput`" + ); } - if (Objects.isNull(this.originalInput())) { - throw new IllegalArgumentException("Missing value for required field `originalInput`"); + if (Objects.isNull(this.originalInput())) { + throw new IllegalArgumentException( + "Missing value for required field `originalInput`" + ); } return new BatchGetItemOutputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchGetItemOutputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchGetItemOutputTransformOutput.java index 6e6e0e781..551a85a67 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchGetItemOutputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchGetItemOutputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.BatchGetItemResponse; public class BatchGetItemOutputTransformOutput { + private final BatchGetItemResponse transformedOutput; protected BatchGetItemOutputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected BatchGetItemResponse transformedOutput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(BatchGetItemOutputTransformOutput model) { this.transformedOutput = model.transformedOutput(); @@ -53,8 +54,10 @@ public BatchGetItemResponse transformedOutput() { } public BatchGetItemOutputTransformOutput build() { - if (Objects.isNull(this.transformedOutput())) { - throw new IllegalArgumentException("Missing value for required field `transformedOutput`"); + if (Objects.isNull(this.transformedOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedOutput`" + ); } return new BatchGetItemOutputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchWriteItemInputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchWriteItemInputTransformInput.java index de51b879d..2b162ea90 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchWriteItemInputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchWriteItemInputTransformInput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.BatchWriteItemRequest; public class BatchWriteItemInputTransformInput { + private final BatchWriteItemRequest sdkInput; protected BatchWriteItemInputTransformInput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected BatchWriteItemRequest sdkInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(BatchWriteItemInputTransformInput model) { this.sdkInput = model.sdkInput(); @@ -53,8 +54,10 @@ public BatchWriteItemRequest sdkInput() { } public BatchWriteItemInputTransformInput build() { - if (Objects.isNull(this.sdkInput())) { - throw new IllegalArgumentException("Missing value for required field `sdkInput`"); + if (Objects.isNull(this.sdkInput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkInput`" + ); } return new BatchWriteItemInputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchWriteItemInputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchWriteItemInputTransformOutput.java index a4fc9f66d..62014c5d1 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchWriteItemInputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchWriteItemInputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.BatchWriteItemRequest; public class BatchWriteItemInputTransformOutput { + private final BatchWriteItemRequest transformedInput; protected BatchWriteItemInputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected BatchWriteItemRequest transformedInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(BatchWriteItemInputTransformOutput model) { this.transformedInput = model.transformedInput(); @@ -53,8 +54,10 @@ public BatchWriteItemRequest transformedInput() { } public BatchWriteItemInputTransformOutput build() { - if (Objects.isNull(this.transformedInput())) { - throw new IllegalArgumentException("Missing value for required field `transformedInput`"); + if (Objects.isNull(this.transformedInput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedInput`" + ); } return new BatchWriteItemInputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchWriteItemOutputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchWriteItemOutputTransformInput.java index b45a48c9d..711e59ed8 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchWriteItemOutputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchWriteItemOutputTransformInput.java @@ -8,6 +8,7 @@ import software.amazon.awssdk.services.dynamodb.model.BatchWriteItemResponse; public class BatchWriteItemOutputTransformInput { + private final BatchWriteItemResponse sdkOutput; private final BatchWriteItemRequest originalInput; @@ -46,12 +47,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected BatchWriteItemResponse sdkOutput; protected BatchWriteItemRequest originalInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(BatchWriteItemOutputTransformInput model) { this.sdkOutput = model.sdkOutput(); @@ -77,11 +78,15 @@ public BatchWriteItemRequest originalInput() { } public BatchWriteItemOutputTransformInput build() { - if (Objects.isNull(this.sdkOutput())) { - throw new IllegalArgumentException("Missing value for required field `sdkOutput`"); + if (Objects.isNull(this.sdkOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkOutput`" + ); } - if (Objects.isNull(this.originalInput())) { - throw new IllegalArgumentException("Missing value for required field `originalInput`"); + if (Objects.isNull(this.originalInput())) { + throw new IllegalArgumentException( + "Missing value for required field `originalInput`" + ); } return new BatchWriteItemOutputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchWriteItemOutputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchWriteItemOutputTransformOutput.java index e3a7916e5..cb6d0a66c 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchWriteItemOutputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/BatchWriteItemOutputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.BatchWriteItemResponse; public class BatchWriteItemOutputTransformOutput { + private final BatchWriteItemResponse transformedOutput; protected BatchWriteItemOutputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected BatchWriteItemResponse transformedOutput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(BatchWriteItemOutputTransformOutput model) { this.transformedOutput = model.transformedOutput(); @@ -53,8 +54,10 @@ public BatchWriteItemResponse transformedOutput() { } public BatchWriteItemOutputTransformOutput build() { - if (Objects.isNull(this.transformedOutput())) { - throw new IllegalArgumentException("Missing value for required field `transformedOutput`"); + if (Objects.isNull(this.transformedOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedOutput`" + ); } return new BatchWriteItemOutputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/CollectionOfErrors.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/CollectionOfErrors.java index c7b54bec5..7a2ca9b05 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/CollectionOfErrors.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/CollectionOfErrors.java @@ -6,6 +6,7 @@ import java.util.List; public class CollectionOfErrors extends RuntimeException { + /** * The list of Exceptions encountered. */ @@ -90,14 +91,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String message; protected Throwable cause; protected List list; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(CollectionOfErrors model) { this.cause = model.getCause(); diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DeleteItemInputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DeleteItemInputTransformInput.java index 707acb9bb..94f14a622 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DeleteItemInputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DeleteItemInputTransformInput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.DeleteItemRequest; public class DeleteItemInputTransformInput { + private final DeleteItemRequest sdkInput; protected DeleteItemInputTransformInput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected DeleteItemRequest sdkInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(DeleteItemInputTransformInput model) { this.sdkInput = model.sdkInput(); @@ -53,8 +54,10 @@ public DeleteItemRequest sdkInput() { } public DeleteItemInputTransformInput build() { - if (Objects.isNull(this.sdkInput())) { - throw new IllegalArgumentException("Missing value for required field `sdkInput`"); + if (Objects.isNull(this.sdkInput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkInput`" + ); } return new DeleteItemInputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DeleteItemInputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DeleteItemInputTransformOutput.java index 3f7106590..f4295e34b 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DeleteItemInputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DeleteItemInputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.DeleteItemRequest; public class DeleteItemInputTransformOutput { + private final DeleteItemRequest transformedInput; protected DeleteItemInputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected DeleteItemRequest transformedInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(DeleteItemInputTransformOutput model) { this.transformedInput = model.transformedInput(); @@ -53,8 +54,10 @@ public DeleteItemRequest transformedInput() { } public DeleteItemInputTransformOutput build() { - if (Objects.isNull(this.transformedInput())) { - throw new IllegalArgumentException("Missing value for required field `transformedInput`"); + if (Objects.isNull(this.transformedInput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedInput`" + ); } return new DeleteItemInputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DeleteItemOutputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DeleteItemOutputTransformInput.java index 25208bd89..0147e9520 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DeleteItemOutputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DeleteItemOutputTransformInput.java @@ -8,6 +8,7 @@ import software.amazon.awssdk.services.dynamodb.model.DeleteItemResponse; public class DeleteItemOutputTransformInput { + private final DeleteItemResponse sdkOutput; private final DeleteItemRequest originalInput; @@ -46,12 +47,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected DeleteItemResponse sdkOutput; protected DeleteItemRequest originalInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(DeleteItemOutputTransformInput model) { this.sdkOutput = model.sdkOutput(); @@ -77,11 +78,15 @@ public DeleteItemRequest originalInput() { } public DeleteItemOutputTransformInput build() { - if (Objects.isNull(this.sdkOutput())) { - throw new IllegalArgumentException("Missing value for required field `sdkOutput`"); + if (Objects.isNull(this.sdkOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkOutput`" + ); } - if (Objects.isNull(this.originalInput())) { - throw new IllegalArgumentException("Missing value for required field `originalInput`"); + if (Objects.isNull(this.originalInput())) { + throw new IllegalArgumentException( + "Missing value for required field `originalInput`" + ); } return new DeleteItemOutputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DeleteItemOutputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DeleteItemOutputTransformOutput.java index 75cbb46e6..8c9f1d184 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DeleteItemOutputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DeleteItemOutputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.DeleteItemResponse; public class DeleteItemOutputTransformOutput { + private final DeleteItemResponse transformedOutput; protected DeleteItemOutputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected DeleteItemResponse transformedOutput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(DeleteItemOutputTransformOutput model) { this.transformedOutput = model.transformedOutput(); @@ -53,8 +54,10 @@ public DeleteItemResponse transformedOutput() { } public DeleteItemOutputTransformOutput build() { - if (Objects.isNull(this.transformedOutput())) { - throw new IllegalArgumentException("Missing value for required field `transformedOutput`"); + if (Objects.isNull(this.transformedOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedOutput`" + ); } return new DeleteItemOutputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DynamoDbEncryptionTransformsException.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DynamoDbEncryptionTransformsException.java index cd3ecbd41..0503f6bb1 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DynamoDbEncryptionTransformsException.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/DynamoDbEncryptionTransformsException.java @@ -6,6 +6,7 @@ import java.util.Objects; public class DynamoDbEncryptionTransformsException extends RuntimeException { + protected DynamoDbEncryptionTransformsException(BuilderImpl builder) { super(messageFromBuilder(builder), builder.cause()); } @@ -67,12 +68,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String message; protected Throwable cause; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(DynamoDbEncryptionTransformsException model) { this.message = model.message(); @@ -98,8 +99,10 @@ public Throwable cause() { } public DynamoDbEncryptionTransformsException build() { - if (Objects.isNull(this.message())) { - throw new IllegalArgumentException("Missing value for required field `message`"); + if (Objects.isNull(this.message())) { + throw new IllegalArgumentException( + "Missing value for required field `message`" + ); } return new DynamoDbEncryptionTransformsException(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteStatementInputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteStatementInputTransformInput.java index 50bcc0251..4b814da5f 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteStatementInputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteStatementInputTransformInput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.ExecuteStatementRequest; public class ExecuteStatementInputTransformInput { + private final ExecuteStatementRequest sdkInput; protected ExecuteStatementInputTransformInput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected ExecuteStatementRequest sdkInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(ExecuteStatementInputTransformInput model) { this.sdkInput = model.sdkInput(); @@ -53,8 +54,10 @@ public ExecuteStatementRequest sdkInput() { } public ExecuteStatementInputTransformInput build() { - if (Objects.isNull(this.sdkInput())) { - throw new IllegalArgumentException("Missing value for required field `sdkInput`"); + if (Objects.isNull(this.sdkInput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkInput`" + ); } return new ExecuteStatementInputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteStatementInputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteStatementInputTransformOutput.java index e35ffb88c..e2908f8f7 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteStatementInputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteStatementInputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.ExecuteStatementRequest; public class ExecuteStatementInputTransformOutput { + private final ExecuteStatementRequest transformedInput; protected ExecuteStatementInputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected ExecuteStatementRequest transformedInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(ExecuteStatementInputTransformOutput model) { this.transformedInput = model.transformedInput(); @@ -53,8 +54,10 @@ public ExecuteStatementRequest transformedInput() { } public ExecuteStatementInputTransformOutput build() { - if (Objects.isNull(this.transformedInput())) { - throw new IllegalArgumentException("Missing value for required field `transformedInput`"); + if (Objects.isNull(this.transformedInput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedInput`" + ); } return new ExecuteStatementInputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteStatementOutputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteStatementOutputTransformInput.java index d39c95ad2..ce29d9740 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteStatementOutputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteStatementOutputTransformInput.java @@ -8,6 +8,7 @@ import software.amazon.awssdk.services.dynamodb.model.ExecuteStatementResponse; public class ExecuteStatementOutputTransformInput { + private final ExecuteStatementResponse sdkOutput; private final ExecuteStatementRequest originalInput; @@ -46,12 +47,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected ExecuteStatementResponse sdkOutput; protected ExecuteStatementRequest originalInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(ExecuteStatementOutputTransformInput model) { this.sdkOutput = model.sdkOutput(); @@ -77,11 +78,15 @@ public ExecuteStatementRequest originalInput() { } public ExecuteStatementOutputTransformInput build() { - if (Objects.isNull(this.sdkOutput())) { - throw new IllegalArgumentException("Missing value for required field `sdkOutput`"); + if (Objects.isNull(this.sdkOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkOutput`" + ); } - if (Objects.isNull(this.originalInput())) { - throw new IllegalArgumentException("Missing value for required field `originalInput`"); + if (Objects.isNull(this.originalInput())) { + throw new IllegalArgumentException( + "Missing value for required field `originalInput`" + ); } return new ExecuteStatementOutputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteStatementOutputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteStatementOutputTransformOutput.java index ed5ce339a..069a8c6c9 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteStatementOutputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteStatementOutputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.ExecuteStatementResponse; public class ExecuteStatementOutputTransformOutput { + private final ExecuteStatementResponse transformedOutput; protected ExecuteStatementOutputTransformOutput(BuilderImpl builder) { @@ -34,16 +35,18 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected ExecuteStatementResponse transformedOutput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(ExecuteStatementOutputTransformOutput model) { this.transformedOutput = model.transformedOutput(); } - public Builder transformedOutput(ExecuteStatementResponse transformedOutput) { + public Builder transformedOutput( + ExecuteStatementResponse transformedOutput + ) { this.transformedOutput = transformedOutput; return this; } @@ -53,8 +56,10 @@ public ExecuteStatementResponse transformedOutput() { } public ExecuteStatementOutputTransformOutput build() { - if (Objects.isNull(this.transformedOutput())) { - throw new IllegalArgumentException("Missing value for required field `transformedOutput`"); + if (Objects.isNull(this.transformedOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedOutput`" + ); } return new ExecuteStatementOutputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteTransactionInputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteTransactionInputTransformInput.java index 1b3b82b20..989861111 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteTransactionInputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteTransactionInputTransformInput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.ExecuteTransactionRequest; public class ExecuteTransactionInputTransformInput { + private final ExecuteTransactionRequest sdkInput; protected ExecuteTransactionInputTransformInput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected ExecuteTransactionRequest sdkInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(ExecuteTransactionInputTransformInput model) { this.sdkInput = model.sdkInput(); @@ -53,8 +54,10 @@ public ExecuteTransactionRequest sdkInput() { } public ExecuteTransactionInputTransformInput build() { - if (Objects.isNull(this.sdkInput())) { - throw new IllegalArgumentException("Missing value for required field `sdkInput`"); + if (Objects.isNull(this.sdkInput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkInput`" + ); } return new ExecuteTransactionInputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteTransactionInputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteTransactionInputTransformOutput.java index 4719f8dfb..cbe5d906d 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteTransactionInputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteTransactionInputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.ExecuteTransactionRequest; public class ExecuteTransactionInputTransformOutput { + private final ExecuteTransactionRequest transformedInput; protected ExecuteTransactionInputTransformOutput(BuilderImpl builder) { @@ -34,16 +35,18 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected ExecuteTransactionRequest transformedInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(ExecuteTransactionInputTransformOutput model) { this.transformedInput = model.transformedInput(); } - public Builder transformedInput(ExecuteTransactionRequest transformedInput) { + public Builder transformedInput( + ExecuteTransactionRequest transformedInput + ) { this.transformedInput = transformedInput; return this; } @@ -53,8 +56,10 @@ public ExecuteTransactionRequest transformedInput() { } public ExecuteTransactionInputTransformOutput build() { - if (Objects.isNull(this.transformedInput())) { - throw new IllegalArgumentException("Missing value for required field `transformedInput`"); + if (Objects.isNull(this.transformedInput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedInput`" + ); } return new ExecuteTransactionInputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteTransactionOutputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteTransactionOutputTransformInput.java index b21ef19fd..9d24a982d 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteTransactionOutputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteTransactionOutputTransformInput.java @@ -8,6 +8,7 @@ import software.amazon.awssdk.services.dynamodb.model.ExecuteTransactionResponse; public class ExecuteTransactionOutputTransformInput { + private final ExecuteTransactionResponse sdkOutput; private final ExecuteTransactionRequest originalInput; @@ -46,12 +47,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected ExecuteTransactionResponse sdkOutput; protected ExecuteTransactionRequest originalInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(ExecuteTransactionOutputTransformInput model) { this.sdkOutput = model.sdkOutput(); @@ -77,11 +78,15 @@ public ExecuteTransactionRequest originalInput() { } public ExecuteTransactionOutputTransformInput build() { - if (Objects.isNull(this.sdkOutput())) { - throw new IllegalArgumentException("Missing value for required field `sdkOutput`"); + if (Objects.isNull(this.sdkOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkOutput`" + ); } - if (Objects.isNull(this.originalInput())) { - throw new IllegalArgumentException("Missing value for required field `originalInput`"); + if (Objects.isNull(this.originalInput())) { + throw new IllegalArgumentException( + "Missing value for required field `originalInput`" + ); } return new ExecuteTransactionOutputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteTransactionOutputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteTransactionOutputTransformOutput.java index 56d0e2c1c..2fbc7e0e2 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteTransactionOutputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ExecuteTransactionOutputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.ExecuteTransactionResponse; public class ExecuteTransactionOutputTransformOutput { + private final ExecuteTransactionResponse transformedOutput; protected ExecuteTransactionOutputTransformOutput(BuilderImpl builder) { @@ -34,16 +35,18 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected ExecuteTransactionResponse transformedOutput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(ExecuteTransactionOutputTransformOutput model) { this.transformedOutput = model.transformedOutput(); } - public Builder transformedOutput(ExecuteTransactionResponse transformedOutput) { + public Builder transformedOutput( + ExecuteTransactionResponse transformedOutput + ) { this.transformedOutput = transformedOutput; return this; } @@ -53,8 +56,10 @@ public ExecuteTransactionResponse transformedOutput() { } public ExecuteTransactionOutputTransformOutput build() { - if (Objects.isNull(this.transformedOutput())) { - throw new IllegalArgumentException("Missing value for required field `transformedOutput`"); + if (Objects.isNull(this.transformedOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedOutput`" + ); } return new ExecuteTransactionOutputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/GetItemInputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/GetItemInputTransformInput.java index 53f0f30bd..99808cc7d 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/GetItemInputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/GetItemInputTransformInput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.GetItemRequest; public class GetItemInputTransformInput { + private final GetItemRequest sdkInput; protected GetItemInputTransformInput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected GetItemRequest sdkInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(GetItemInputTransformInput model) { this.sdkInput = model.sdkInput(); @@ -53,8 +54,10 @@ public GetItemRequest sdkInput() { } public GetItemInputTransformInput build() { - if (Objects.isNull(this.sdkInput())) { - throw new IllegalArgumentException("Missing value for required field `sdkInput`"); + if (Objects.isNull(this.sdkInput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkInput`" + ); } return new GetItemInputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/GetItemInputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/GetItemInputTransformOutput.java index 2d00d235b..a94eb1600 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/GetItemInputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/GetItemInputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.GetItemRequest; public class GetItemInputTransformOutput { + private final GetItemRequest transformedInput; protected GetItemInputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected GetItemRequest transformedInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(GetItemInputTransformOutput model) { this.transformedInput = model.transformedInput(); @@ -53,8 +54,10 @@ public GetItemRequest transformedInput() { } public GetItemInputTransformOutput build() { - if (Objects.isNull(this.transformedInput())) { - throw new IllegalArgumentException("Missing value for required field `transformedInput`"); + if (Objects.isNull(this.transformedInput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedInput`" + ); } return new GetItemInputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/GetItemOutputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/GetItemOutputTransformInput.java index a573f4ce7..764fe7cdc 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/GetItemOutputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/GetItemOutputTransformInput.java @@ -8,6 +8,7 @@ import software.amazon.awssdk.services.dynamodb.model.GetItemResponse; public class GetItemOutputTransformInput { + private final GetItemResponse sdkOutput; private final GetItemRequest originalInput; @@ -46,12 +47,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected GetItemResponse sdkOutput; protected GetItemRequest originalInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(GetItemOutputTransformInput model) { this.sdkOutput = model.sdkOutput(); @@ -77,11 +78,15 @@ public GetItemRequest originalInput() { } public GetItemOutputTransformInput build() { - if (Objects.isNull(this.sdkOutput())) { - throw new IllegalArgumentException("Missing value for required field `sdkOutput`"); + if (Objects.isNull(this.sdkOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkOutput`" + ); } - if (Objects.isNull(this.originalInput())) { - throw new IllegalArgumentException("Missing value for required field `originalInput`"); + if (Objects.isNull(this.originalInput())) { + throw new IllegalArgumentException( + "Missing value for required field `originalInput`" + ); } return new GetItemOutputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/GetItemOutputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/GetItemOutputTransformOutput.java index 3c40cfb33..8ebf42a5b 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/GetItemOutputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/GetItemOutputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.GetItemResponse; public class GetItemOutputTransformOutput { + private final GetItemResponse transformedOutput; protected GetItemOutputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected GetItemResponse transformedOutput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(GetItemOutputTransformOutput model) { this.transformedOutput = model.transformedOutput(); @@ -53,8 +54,10 @@ public GetItemResponse transformedOutput() { } public GetItemOutputTransformOutput build() { - if (Objects.isNull(this.transformedOutput())) { - throw new IllegalArgumentException("Missing value for required field `transformedOutput`"); + if (Objects.isNull(this.transformedOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedOutput`" + ); } return new GetItemOutputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/OpaqueError.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/OpaqueError.java index 76776a8b3..86a831c90 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/OpaqueError.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/OpaqueError.java @@ -4,6 +4,7 @@ package software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.model; public class OpaqueError extends RuntimeException { + /** * The unexpected object encountered. It MIGHT BE an Exception, but that is not guaranteed. */ @@ -88,14 +89,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String message; protected Throwable cause; protected Object obj; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(OpaqueError model) { this.cause = model.getCause(); @@ -131,7 +132,9 @@ public Object obj() { } public OpaqueError build() { - if (this.obj != null && this.cause == null && this.obj instanceof Throwable) { + if ( + this.obj != null && this.cause == null && this.obj instanceof Throwable + ) { this.cause = (Throwable) this.obj; } else if (this.obj == null && this.cause != null) { this.obj = this.cause; diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/PutItemInputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/PutItemInputTransformInput.java index 275f2c189..9bf02f0fe 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/PutItemInputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/PutItemInputTransformInput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.PutItemRequest; public class PutItemInputTransformInput { + private final PutItemRequest sdkInput; protected PutItemInputTransformInput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected PutItemRequest sdkInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(PutItemInputTransformInput model) { this.sdkInput = model.sdkInput(); @@ -53,8 +54,10 @@ public PutItemRequest sdkInput() { } public PutItemInputTransformInput build() { - if (Objects.isNull(this.sdkInput())) { - throw new IllegalArgumentException("Missing value for required field `sdkInput`"); + if (Objects.isNull(this.sdkInput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkInput`" + ); } return new PutItemInputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/PutItemInputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/PutItemInputTransformOutput.java index 2e72597be..cc06df561 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/PutItemInputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/PutItemInputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.PutItemRequest; public class PutItemInputTransformOutput { + private final PutItemRequest transformedInput; protected PutItemInputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected PutItemRequest transformedInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(PutItemInputTransformOutput model) { this.transformedInput = model.transformedInput(); @@ -53,8 +54,10 @@ public PutItemRequest transformedInput() { } public PutItemInputTransformOutput build() { - if (Objects.isNull(this.transformedInput())) { - throw new IllegalArgumentException("Missing value for required field `transformedInput`"); + if (Objects.isNull(this.transformedInput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedInput`" + ); } return new PutItemInputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/PutItemOutputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/PutItemOutputTransformInput.java index c16510de1..7e5afed34 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/PutItemOutputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/PutItemOutputTransformInput.java @@ -8,6 +8,7 @@ import software.amazon.awssdk.services.dynamodb.model.PutItemResponse; public class PutItemOutputTransformInput { + private final PutItemResponse sdkOutput; private final PutItemRequest originalInput; @@ -46,12 +47,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected PutItemResponse sdkOutput; protected PutItemRequest originalInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(PutItemOutputTransformInput model) { this.sdkOutput = model.sdkOutput(); @@ -77,11 +78,15 @@ public PutItemRequest originalInput() { } public PutItemOutputTransformInput build() { - if (Objects.isNull(this.sdkOutput())) { - throw new IllegalArgumentException("Missing value for required field `sdkOutput`"); + if (Objects.isNull(this.sdkOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkOutput`" + ); } - if (Objects.isNull(this.originalInput())) { - throw new IllegalArgumentException("Missing value for required field `originalInput`"); + if (Objects.isNull(this.originalInput())) { + throw new IllegalArgumentException( + "Missing value for required field `originalInput`" + ); } return new PutItemOutputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/PutItemOutputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/PutItemOutputTransformOutput.java index ffb651b47..deec37efb 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/PutItemOutputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/PutItemOutputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.PutItemResponse; public class PutItemOutputTransformOutput { + private final PutItemResponse transformedOutput; protected PutItemOutputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected PutItemResponse transformedOutput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(PutItemOutputTransformOutput model) { this.transformedOutput = model.transformedOutput(); @@ -53,8 +54,10 @@ public PutItemResponse transformedOutput() { } public PutItemOutputTransformOutput build() { - if (Objects.isNull(this.transformedOutput())) { - throw new IllegalArgumentException("Missing value for required field `transformedOutput`"); + if (Objects.isNull(this.transformedOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedOutput`" + ); } return new PutItemOutputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/QueryInputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/QueryInputTransformInput.java index a895af125..fe180f0d0 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/QueryInputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/QueryInputTransformInput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.QueryRequest; public class QueryInputTransformInput { + private final QueryRequest sdkInput; protected QueryInputTransformInput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected QueryRequest sdkInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(QueryInputTransformInput model) { this.sdkInput = model.sdkInput(); @@ -53,8 +54,10 @@ public QueryRequest sdkInput() { } public QueryInputTransformInput build() { - if (Objects.isNull(this.sdkInput())) { - throw new IllegalArgumentException("Missing value for required field `sdkInput`"); + if (Objects.isNull(this.sdkInput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkInput`" + ); } return new QueryInputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/QueryInputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/QueryInputTransformOutput.java index afcb66860..9d8b0c0b6 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/QueryInputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/QueryInputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.QueryRequest; public class QueryInputTransformOutput { + private final QueryRequest transformedInput; protected QueryInputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected QueryRequest transformedInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(QueryInputTransformOutput model) { this.transformedInput = model.transformedInput(); @@ -53,8 +54,10 @@ public QueryRequest transformedInput() { } public QueryInputTransformOutput build() { - if (Objects.isNull(this.transformedInput())) { - throw new IllegalArgumentException("Missing value for required field `transformedInput`"); + if (Objects.isNull(this.transformedInput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedInput`" + ); } return new QueryInputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/QueryOutputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/QueryOutputTransformInput.java index e0b9bbb86..c645ff4fa 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/QueryOutputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/QueryOutputTransformInput.java @@ -8,6 +8,7 @@ import software.amazon.awssdk.services.dynamodb.model.QueryResponse; public class QueryOutputTransformInput { + private final QueryResponse sdkOutput; private final QueryRequest originalInput; @@ -46,12 +47,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected QueryResponse sdkOutput; protected QueryRequest originalInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(QueryOutputTransformInput model) { this.sdkOutput = model.sdkOutput(); @@ -77,11 +78,15 @@ public QueryRequest originalInput() { } public QueryOutputTransformInput build() { - if (Objects.isNull(this.sdkOutput())) { - throw new IllegalArgumentException("Missing value for required field `sdkOutput`"); + if (Objects.isNull(this.sdkOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkOutput`" + ); } - if (Objects.isNull(this.originalInput())) { - throw new IllegalArgumentException("Missing value for required field `originalInput`"); + if (Objects.isNull(this.originalInput())) { + throw new IllegalArgumentException( + "Missing value for required field `originalInput`" + ); } return new QueryOutputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/QueryOutputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/QueryOutputTransformOutput.java index 8ad5658b0..494b68583 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/QueryOutputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/QueryOutputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.QueryResponse; public class QueryOutputTransformOutput { + private final QueryResponse transformedOutput; protected QueryOutputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected QueryResponse transformedOutput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(QueryOutputTransformOutput model) { this.transformedOutput = model.transformedOutput(); @@ -53,8 +54,10 @@ public QueryResponse transformedOutput() { } public QueryOutputTransformOutput build() { - if (Objects.isNull(this.transformedOutput())) { - throw new IllegalArgumentException("Missing value for required field `transformedOutput`"); + if (Objects.isNull(this.transformedOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedOutput`" + ); } return new QueryOutputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ResolveAttributesInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ResolveAttributesInput.java index da8ecbedf..3b6eeec51 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ResolveAttributesInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ResolveAttributesInput.java @@ -8,6 +8,7 @@ import software.amazon.awssdk.services.dynamodb.model.AttributeValue; public class ResolveAttributesInput { + /** * Use the config for this Table. */ @@ -93,6 +94,7 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String TableName; protected Map Item; @@ -101,8 +103,7 @@ static class BuilderImpl implements Builder { private boolean _VersionSet = false; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(ResolveAttributesInput model) { this.TableName = model.TableName(); @@ -140,20 +141,32 @@ public int Version() { } public ResolveAttributesInput build() { - if (Objects.isNull(this.TableName())) { - throw new IllegalArgumentException("Missing value for required field `TableName`"); + if (Objects.isNull(this.TableName())) { + throw new IllegalArgumentException( + "Missing value for required field `TableName`" + ); } if (Objects.nonNull(this.TableName()) && this.TableName().length() < 3) { - throw new IllegalArgumentException("The size of `TableName` must be greater than or equal to 3"); + throw new IllegalArgumentException( + "The size of `TableName` must be greater than or equal to 3" + ); } - if (Objects.nonNull(this.TableName()) && this.TableName().length() > 255) { - throw new IllegalArgumentException("The size of `TableName` must be less than or equal to 255"); + if ( + Objects.nonNull(this.TableName()) && this.TableName().length() > 255 + ) { + throw new IllegalArgumentException( + "The size of `TableName` must be less than or equal to 255" + ); } - if (Objects.isNull(this.Item())) { - throw new IllegalArgumentException("Missing value for required field `Item`"); + if (Objects.isNull(this.Item())) { + throw new IllegalArgumentException( + "Missing value for required field `Item`" + ); } if (this._VersionSet && this.Version() < 1) { - throw new IllegalArgumentException("`Version` must be greater than or equal to 1"); + throw new IllegalArgumentException( + "`Version` must be greater than or equal to 1" + ); } return new ResolveAttributesInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ResolveAttributesOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ResolveAttributesOutput.java index 478756a90..86f54dfb0 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ResolveAttributesOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ResolveAttributesOutput.java @@ -7,6 +7,7 @@ import java.util.Objects; public class ResolveAttributesOutput { + /** * Full plaintext of all calculable virtual fields. */ @@ -69,12 +70,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected Map VirtualFields; protected Map CompoundBeacons; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(ResolveAttributesOutput model) { this.VirtualFields = model.VirtualFields(); @@ -100,11 +101,15 @@ public Map CompoundBeacons() { } public ResolveAttributesOutput build() { - if (Objects.isNull(this.VirtualFields())) { - throw new IllegalArgumentException("Missing value for required field `VirtualFields`"); + if (Objects.isNull(this.VirtualFields())) { + throw new IllegalArgumentException( + "Missing value for required field `VirtualFields`" + ); } - if (Objects.isNull(this.CompoundBeacons())) { - throw new IllegalArgumentException("Missing value for required field `CompoundBeacons`"); + if (Objects.isNull(this.CompoundBeacons())) { + throw new IllegalArgumentException( + "Missing value for required field `CompoundBeacons`" + ); } return new ResolveAttributesOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ScanInputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ScanInputTransformInput.java index 6f2dfbfe6..1c6ce9ae1 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ScanInputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ScanInputTransformInput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.ScanRequest; public class ScanInputTransformInput { + private final ScanRequest sdkInput; protected ScanInputTransformInput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected ScanRequest sdkInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(ScanInputTransformInput model) { this.sdkInput = model.sdkInput(); @@ -53,8 +54,10 @@ public ScanRequest sdkInput() { } public ScanInputTransformInput build() { - if (Objects.isNull(this.sdkInput())) { - throw new IllegalArgumentException("Missing value for required field `sdkInput`"); + if (Objects.isNull(this.sdkInput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkInput`" + ); } return new ScanInputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ScanInputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ScanInputTransformOutput.java index aa572fb2d..295b284a5 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ScanInputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ScanInputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.ScanRequest; public class ScanInputTransformOutput { + private final ScanRequest transformedInput; protected ScanInputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected ScanRequest transformedInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(ScanInputTransformOutput model) { this.transformedInput = model.transformedInput(); @@ -53,8 +54,10 @@ public ScanRequest transformedInput() { } public ScanInputTransformOutput build() { - if (Objects.isNull(this.transformedInput())) { - throw new IllegalArgumentException("Missing value for required field `transformedInput`"); + if (Objects.isNull(this.transformedInput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedInput`" + ); } return new ScanInputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ScanOutputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ScanOutputTransformInput.java index 1083aaf3c..f2b693935 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ScanOutputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ScanOutputTransformInput.java @@ -8,6 +8,7 @@ import software.amazon.awssdk.services.dynamodb.model.ScanResponse; public class ScanOutputTransformInput { + private final ScanResponse sdkOutput; private final ScanRequest originalInput; @@ -46,12 +47,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected ScanResponse sdkOutput; protected ScanRequest originalInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(ScanOutputTransformInput model) { this.sdkOutput = model.sdkOutput(); @@ -77,11 +78,15 @@ public ScanRequest originalInput() { } public ScanOutputTransformInput build() { - if (Objects.isNull(this.sdkOutput())) { - throw new IllegalArgumentException("Missing value for required field `sdkOutput`"); + if (Objects.isNull(this.sdkOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkOutput`" + ); } - if (Objects.isNull(this.originalInput())) { - throw new IllegalArgumentException("Missing value for required field `originalInput`"); + if (Objects.isNull(this.originalInput())) { + throw new IllegalArgumentException( + "Missing value for required field `originalInput`" + ); } return new ScanOutputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ScanOutputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ScanOutputTransformOutput.java index 701eccd28..bcf82a72d 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ScanOutputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/ScanOutputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.ScanResponse; public class ScanOutputTransformOutput { + private final ScanResponse transformedOutput; protected ScanOutputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected ScanResponse transformedOutput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(ScanOutputTransformOutput model) { this.transformedOutput = model.transformedOutput(); @@ -53,8 +54,10 @@ public ScanResponse transformedOutput() { } public ScanOutputTransformOutput build() { - if (Objects.isNull(this.transformedOutput())) { - throw new IllegalArgumentException("Missing value for required field `transformedOutput`"); + if (Objects.isNull(this.transformedOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedOutput`" + ); } return new ScanOutputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactGetItemsInputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactGetItemsInputTransformInput.java index 2013f1e1e..7b9fefee2 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactGetItemsInputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactGetItemsInputTransformInput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.TransactGetItemsRequest; public class TransactGetItemsInputTransformInput { + private final TransactGetItemsRequest sdkInput; protected TransactGetItemsInputTransformInput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected TransactGetItemsRequest sdkInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(TransactGetItemsInputTransformInput model) { this.sdkInput = model.sdkInput(); @@ -53,8 +54,10 @@ public TransactGetItemsRequest sdkInput() { } public TransactGetItemsInputTransformInput build() { - if (Objects.isNull(this.sdkInput())) { - throw new IllegalArgumentException("Missing value for required field `sdkInput`"); + if (Objects.isNull(this.sdkInput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkInput`" + ); } return new TransactGetItemsInputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactGetItemsInputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactGetItemsInputTransformOutput.java index 1ff70bae6..c84dd95c4 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactGetItemsInputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactGetItemsInputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.TransactGetItemsRequest; public class TransactGetItemsInputTransformOutput { + private final TransactGetItemsRequest transformedInput; protected TransactGetItemsInputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected TransactGetItemsRequest transformedInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(TransactGetItemsInputTransformOutput model) { this.transformedInput = model.transformedInput(); @@ -53,8 +54,10 @@ public TransactGetItemsRequest transformedInput() { } public TransactGetItemsInputTransformOutput build() { - if (Objects.isNull(this.transformedInput())) { - throw new IllegalArgumentException("Missing value for required field `transformedInput`"); + if (Objects.isNull(this.transformedInput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedInput`" + ); } return new TransactGetItemsInputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactGetItemsOutputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactGetItemsOutputTransformInput.java index 45e520842..3c12c1fef 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactGetItemsOutputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactGetItemsOutputTransformInput.java @@ -8,6 +8,7 @@ import software.amazon.awssdk.services.dynamodb.model.TransactGetItemsResponse; public class TransactGetItemsOutputTransformInput { + private final TransactGetItemsResponse sdkOutput; private final TransactGetItemsRequest originalInput; @@ -46,12 +47,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected TransactGetItemsResponse sdkOutput; protected TransactGetItemsRequest originalInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(TransactGetItemsOutputTransformInput model) { this.sdkOutput = model.sdkOutput(); @@ -77,11 +78,15 @@ public TransactGetItemsRequest originalInput() { } public TransactGetItemsOutputTransformInput build() { - if (Objects.isNull(this.sdkOutput())) { - throw new IllegalArgumentException("Missing value for required field `sdkOutput`"); + if (Objects.isNull(this.sdkOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkOutput`" + ); } - if (Objects.isNull(this.originalInput())) { - throw new IllegalArgumentException("Missing value for required field `originalInput`"); + if (Objects.isNull(this.originalInput())) { + throw new IllegalArgumentException( + "Missing value for required field `originalInput`" + ); } return new TransactGetItemsOutputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactGetItemsOutputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactGetItemsOutputTransformOutput.java index 378fffa53..af56561ee 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactGetItemsOutputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactGetItemsOutputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.TransactGetItemsResponse; public class TransactGetItemsOutputTransformOutput { + private final TransactGetItemsResponse transformedOutput; protected TransactGetItemsOutputTransformOutput(BuilderImpl builder) { @@ -34,16 +35,18 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected TransactGetItemsResponse transformedOutput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(TransactGetItemsOutputTransformOutput model) { this.transformedOutput = model.transformedOutput(); } - public Builder transformedOutput(TransactGetItemsResponse transformedOutput) { + public Builder transformedOutput( + TransactGetItemsResponse transformedOutput + ) { this.transformedOutput = transformedOutput; return this; } @@ -53,8 +56,10 @@ public TransactGetItemsResponse transformedOutput() { } public TransactGetItemsOutputTransformOutput build() { - if (Objects.isNull(this.transformedOutput())) { - throw new IllegalArgumentException("Missing value for required field `transformedOutput`"); + if (Objects.isNull(this.transformedOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedOutput`" + ); } return new TransactGetItemsOutputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactWriteItemsInputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactWriteItemsInputTransformInput.java index 3d6a5f424..87cb3fbe2 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactWriteItemsInputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactWriteItemsInputTransformInput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.TransactWriteItemsRequest; public class TransactWriteItemsInputTransformInput { + private final TransactWriteItemsRequest sdkInput; protected TransactWriteItemsInputTransformInput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected TransactWriteItemsRequest sdkInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(TransactWriteItemsInputTransformInput model) { this.sdkInput = model.sdkInput(); @@ -53,8 +54,10 @@ public TransactWriteItemsRequest sdkInput() { } public TransactWriteItemsInputTransformInput build() { - if (Objects.isNull(this.sdkInput())) { - throw new IllegalArgumentException("Missing value for required field `sdkInput`"); + if (Objects.isNull(this.sdkInput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkInput`" + ); } return new TransactWriteItemsInputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactWriteItemsInputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactWriteItemsInputTransformOutput.java index 964f5a65f..b82753fcb 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactWriteItemsInputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactWriteItemsInputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.TransactWriteItemsRequest; public class TransactWriteItemsInputTransformOutput { + private final TransactWriteItemsRequest transformedInput; protected TransactWriteItemsInputTransformOutput(BuilderImpl builder) { @@ -34,16 +35,18 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected TransactWriteItemsRequest transformedInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(TransactWriteItemsInputTransformOutput model) { this.transformedInput = model.transformedInput(); } - public Builder transformedInput(TransactWriteItemsRequest transformedInput) { + public Builder transformedInput( + TransactWriteItemsRequest transformedInput + ) { this.transformedInput = transformedInput; return this; } @@ -53,8 +56,10 @@ public TransactWriteItemsRequest transformedInput() { } public TransactWriteItemsInputTransformOutput build() { - if (Objects.isNull(this.transformedInput())) { - throw new IllegalArgumentException("Missing value for required field `transformedInput`"); + if (Objects.isNull(this.transformedInput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedInput`" + ); } return new TransactWriteItemsInputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactWriteItemsOutputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactWriteItemsOutputTransformInput.java index ce401d6ea..83dcc77d2 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactWriteItemsOutputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactWriteItemsOutputTransformInput.java @@ -8,6 +8,7 @@ import software.amazon.awssdk.services.dynamodb.model.TransactWriteItemsResponse; public class TransactWriteItemsOutputTransformInput { + private final TransactWriteItemsResponse sdkOutput; private final TransactWriteItemsRequest originalInput; @@ -46,12 +47,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected TransactWriteItemsResponse sdkOutput; protected TransactWriteItemsRequest originalInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(TransactWriteItemsOutputTransformInput model) { this.sdkOutput = model.sdkOutput(); @@ -77,11 +78,15 @@ public TransactWriteItemsRequest originalInput() { } public TransactWriteItemsOutputTransformInput build() { - if (Objects.isNull(this.sdkOutput())) { - throw new IllegalArgumentException("Missing value for required field `sdkOutput`"); + if (Objects.isNull(this.sdkOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkOutput`" + ); } - if (Objects.isNull(this.originalInput())) { - throw new IllegalArgumentException("Missing value for required field `originalInput`"); + if (Objects.isNull(this.originalInput())) { + throw new IllegalArgumentException( + "Missing value for required field `originalInput`" + ); } return new TransactWriteItemsOutputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactWriteItemsOutputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactWriteItemsOutputTransformOutput.java index 2880b3b1c..0ee1ba869 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactWriteItemsOutputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/TransactWriteItemsOutputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.TransactWriteItemsResponse; public class TransactWriteItemsOutputTransformOutput { + private final TransactWriteItemsResponse transformedOutput; protected TransactWriteItemsOutputTransformOutput(BuilderImpl builder) { @@ -34,16 +35,18 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected TransactWriteItemsResponse transformedOutput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(TransactWriteItemsOutputTransformOutput model) { this.transformedOutput = model.transformedOutput(); } - public Builder transformedOutput(TransactWriteItemsResponse transformedOutput) { + public Builder transformedOutput( + TransactWriteItemsResponse transformedOutput + ) { this.transformedOutput = transformedOutput; return this; } @@ -53,8 +56,10 @@ public TransactWriteItemsResponse transformedOutput() { } public TransactWriteItemsOutputTransformOutput build() { - if (Objects.isNull(this.transformedOutput())) { - throw new IllegalArgumentException("Missing value for required field `transformedOutput`"); + if (Objects.isNull(this.transformedOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedOutput`" + ); } return new TransactWriteItemsOutputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/UpdateItemInputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/UpdateItemInputTransformInput.java index f0965d1cf..8c9a6ffde 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/UpdateItemInputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/UpdateItemInputTransformInput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.UpdateItemRequest; public class UpdateItemInputTransformInput { + private final UpdateItemRequest sdkInput; protected UpdateItemInputTransformInput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected UpdateItemRequest sdkInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(UpdateItemInputTransformInput model) { this.sdkInput = model.sdkInput(); @@ -53,8 +54,10 @@ public UpdateItemRequest sdkInput() { } public UpdateItemInputTransformInput build() { - if (Objects.isNull(this.sdkInput())) { - throw new IllegalArgumentException("Missing value for required field `sdkInput`"); + if (Objects.isNull(this.sdkInput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkInput`" + ); } return new UpdateItemInputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/UpdateItemInputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/UpdateItemInputTransformOutput.java index 1bccc530d..7b9635893 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/UpdateItemInputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/UpdateItemInputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.UpdateItemRequest; public class UpdateItemInputTransformOutput { + private final UpdateItemRequest transformedInput; protected UpdateItemInputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected UpdateItemRequest transformedInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(UpdateItemInputTransformOutput model) { this.transformedInput = model.transformedInput(); @@ -53,8 +54,10 @@ public UpdateItemRequest transformedInput() { } public UpdateItemInputTransformOutput build() { - if (Objects.isNull(this.transformedInput())) { - throw new IllegalArgumentException("Missing value for required field `transformedInput`"); + if (Objects.isNull(this.transformedInput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedInput`" + ); } return new UpdateItemInputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/UpdateItemOutputTransformInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/UpdateItemOutputTransformInput.java index 34dc72075..702b7c5fb 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/UpdateItemOutputTransformInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/UpdateItemOutputTransformInput.java @@ -8,6 +8,7 @@ import software.amazon.awssdk.services.dynamodb.model.UpdateItemResponse; public class UpdateItemOutputTransformInput { + private final UpdateItemResponse sdkOutput; private final UpdateItemRequest originalInput; @@ -46,12 +47,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected UpdateItemResponse sdkOutput; protected UpdateItemRequest originalInput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(UpdateItemOutputTransformInput model) { this.sdkOutput = model.sdkOutput(); @@ -77,11 +78,15 @@ public UpdateItemRequest originalInput() { } public UpdateItemOutputTransformInput build() { - if (Objects.isNull(this.sdkOutput())) { - throw new IllegalArgumentException("Missing value for required field `sdkOutput`"); + if (Objects.isNull(this.sdkOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `sdkOutput`" + ); } - if (Objects.isNull(this.originalInput())) { - throw new IllegalArgumentException("Missing value for required field `originalInput`"); + if (Objects.isNull(this.originalInput())) { + throw new IllegalArgumentException( + "Missing value for required field `originalInput`" + ); } return new UpdateItemOutputTransformInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/UpdateItemOutputTransformOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/UpdateItemOutputTransformOutput.java index fb61b0be4..e7a5f5c83 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/UpdateItemOutputTransformOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/transforms/model/UpdateItemOutputTransformOutput.java @@ -7,6 +7,7 @@ import software.amazon.awssdk.services.dynamodb.model.UpdateItemResponse; public class UpdateItemOutputTransformOutput { + private final UpdateItemResponse transformedOutput; protected UpdateItemOutputTransformOutput(BuilderImpl builder) { @@ -34,10 +35,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected UpdateItemResponse transformedOutput; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(UpdateItemOutputTransformOutput model) { this.transformedOutput = model.transformedOutput(); @@ -53,8 +54,10 @@ public UpdateItemResponse transformedOutput() { } public UpdateItemOutputTransformOutput build() { - if (Objects.isNull(this.transformedOutput())) { - throw new IllegalArgumentException("Missing value for required field `transformedOutput`"); + if (Objects.isNull(this.transformedOutput())) { + throw new IllegalArgumentException( + "Missing value for required field `transformedOutput`" + ); } return new UpdateItemOutputTransformOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/StructuredEncryption.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/StructuredEncryption.java index d242a3a4e..13a86ef6c 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/StructuredEncryption.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/StructuredEncryption.java @@ -6,6 +6,7 @@ import Wrappers_Compile.Result; import java.lang.IllegalArgumentException; import java.util.Objects; +import software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.StructuredEncryptionClient; import software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.__default; import software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.Error; import software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.IStructuredEncryptionClient; @@ -16,12 +17,15 @@ import software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.StructuredEncryptionConfig; public class StructuredEncryption { + private final IStructuredEncryptionClient _impl; protected StructuredEncryption(BuilderImpl builder) { StructuredEncryptionConfig input = builder.StructuredEncryptionConfig(); - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredEncryptionConfig dafnyValue = ToDafny.StructuredEncryptionConfig(input); - Result result = __default.StructuredEncryption(dafnyValue); + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredEncryptionConfig dafnyValue = + ToDafny.StructuredEncryptionConfig(input); + Result result = + __default.StructuredEncryption(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -37,8 +41,12 @@ public static Builder builder() { } public DecryptStructureOutput DecryptStructure(DecryptStructureInput input) { - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.DecryptStructureInput dafnyValue = ToDafny.DecryptStructureInput(input); - Result result = this._impl.DecryptStructure(dafnyValue); + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.DecryptStructureInput dafnyValue = + ToDafny.DecryptStructureInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.DecryptStructureOutput, + Error + > result = this._impl.DecryptStructure(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -46,8 +54,12 @@ public DecryptStructureOutput DecryptStructure(DecryptStructureInput input) { } public EncryptStructureOutput EncryptStructure(EncryptStructureInput input) { - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.EncryptStructureInput dafnyValue = ToDafny.EncryptStructureInput(input); - Result result = this._impl.EncryptStructure(dafnyValue); + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.EncryptStructureInput dafnyValue = + ToDafny.EncryptStructureInput(input); + Result< + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.EncryptStructureOutput, + Error + > result = this._impl.EncryptStructure(dafnyValue); if (result.is_Failure()) { throw ToNative.Error(result.dtor_error()); } @@ -59,7 +71,9 @@ protected IStructuredEncryptionClient impl() { } public interface Builder { - Builder StructuredEncryptionConfig(StructuredEncryptionConfig StructuredEncryptionConfig); + Builder StructuredEncryptionConfig( + StructuredEncryptionConfig StructuredEncryptionConfig + ); StructuredEncryptionConfig StructuredEncryptionConfig(); @@ -67,13 +81,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected StructuredEncryptionConfig StructuredEncryptionConfig; - protected BuilderImpl() { - } + protected BuilderImpl() {} public Builder StructuredEncryptionConfig( - StructuredEncryptionConfig StructuredEncryptionConfig) { + StructuredEncryptionConfig StructuredEncryptionConfig + ) { this.StructuredEncryptionConfig = StructuredEncryptionConfig; return this; } @@ -83,8 +98,10 @@ public StructuredEncryptionConfig StructuredEncryptionConfig() { } public StructuredEncryption build() { - if (Objects.isNull(this.StructuredEncryptionConfig())) { - throw new IllegalArgumentException("Missing value for required field `StructuredEncryptionConfig`"); + if (Objects.isNull(this.StructuredEncryptionConfig())) { + throw new IllegalArgumentException( + "Missing value for required field `StructuredEncryptionConfig`" + ); } return new StructuredEncryption(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/ToDafny.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/ToDafny.java index c60cfb420..983c37717 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/ToDafny.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/ToDafny.java @@ -40,6 +40,7 @@ import software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsManager; public class ToDafny { + public static Error Error(RuntimeException nativeValue) { if (nativeValue instanceof StructuredEncryptionException) { return ToDafny.Error((StructuredEncryptionException) nativeValue); @@ -58,289 +59,536 @@ public static Error Error(OpaqueError nativeValue) { } public static Error Error(CollectionOfErrors nativeValue) { - DafnySequence list = software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( - nativeValue.list(), - ToDafny::Error, - Error._typeDescriptor()); - DafnySequence message = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.getMessage()); + DafnySequence list = + software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( + nativeValue.list(), + ToDafny::Error, + Error._typeDescriptor() + ); + DafnySequence message = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.getMessage() + ); return Error.create_CollectionOfErrors(list, message); } public static AuthenticateSchema AuthenticateSchema( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.AuthenticateSchema nativeValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.AuthenticateSchema nativeValue + ) { AuthenticateSchemaContent content; content = ToDafny.AuthenticateSchemaContent(nativeValue.content()); - Option, ? extends AuthenticateAction>> attributes; - attributes = (Objects.nonNull(nativeValue.attributes()) && nativeValue.attributes().size() > 0) ? - Option.create_Some(ToDafny.AuthenticateSchemaAttributes(nativeValue.attributes())) + Option< + DafnyMap< + ? extends DafnySequence, + ? extends AuthenticateAction + > + > attributes; + attributes = + (Objects.nonNull(nativeValue.attributes()) && + nativeValue.attributes().size() > 0) + ? Option.create_Some( + ToDafny.AuthenticateSchemaAttributes(nativeValue.attributes()) + ) : Option.create_None(); return new AuthenticateSchema(content, attributes); } public static CryptoSchema CryptoSchema( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.CryptoSchema nativeValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.CryptoSchema nativeValue + ) { CryptoSchemaContent content; content = ToDafny.CryptoSchemaContent(nativeValue.content()); - Option, ? extends AuthenticateAction>> attributes; - attributes = (Objects.nonNull(nativeValue.attributes()) && nativeValue.attributes().size() > 0) ? - Option.create_Some(ToDafny.CryptoSchemaAttributes(nativeValue.attributes())) + Option< + DafnyMap< + ? extends DafnySequence, + ? extends AuthenticateAction + > + > attributes; + attributes = + (Objects.nonNull(nativeValue.attributes()) && + nativeValue.attributes().size() > 0) + ? Option.create_Some( + ToDafny.CryptoSchemaAttributes(nativeValue.attributes()) + ) : Option.create_None(); return new CryptoSchema(content, attributes); } public static DecryptStructureInput DecryptStructureInput( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.DecryptStructureInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.DecryptStructureInput nativeValue + ) { DafnySequence tableName; - tableName = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.tableName()); + tableName = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.tableName() + ); StructuredData encryptedStructure; - encryptedStructure = ToDafny.StructuredData(nativeValue.encryptedStructure()); + encryptedStructure = + ToDafny.StructuredData(nativeValue.encryptedStructure()); AuthenticateSchema authenticateSchema; - authenticateSchema = ToDafny.AuthenticateSchema(nativeValue.authenticateSchema()); + authenticateSchema = + ToDafny.AuthenticateSchema(nativeValue.authenticateSchema()); ICryptographicMaterialsManager cmm; - cmm = software.amazon.cryptography.materialproviders.ToDafny.CryptographicMaterialsManager(nativeValue.cmm()); - Option, ? extends DafnySequence>> encryptionContext; - encryptionContext = (Objects.nonNull(nativeValue.encryptionContext()) && nativeValue.encryptionContext().size() > 0) ? - Option.create_Some(software.amazon.cryptography.materialproviders.ToDafny.EncryptionContext(nativeValue.encryptionContext())) + cmm = + software.amazon.cryptography.materialproviders.ToDafny.CryptographicMaterialsManager( + nativeValue.cmm() + ); + Option< + DafnyMap< + ? extends DafnySequence, + ? extends DafnySequence + > + > encryptionContext; + encryptionContext = + (Objects.nonNull(nativeValue.encryptionContext()) && + nativeValue.encryptionContext().size() > 0) + ? Option.create_Some( + software.amazon.cryptography.materialproviders.ToDafny.EncryptionContext( + nativeValue.encryptionContext() + ) + ) : Option.create_None(); - return new DecryptStructureInput(tableName, encryptedStructure, authenticateSchema, cmm, encryptionContext); + return new DecryptStructureInput( + tableName, + encryptedStructure, + authenticateSchema, + cmm, + encryptionContext + ); } public static DecryptStructureOutput DecryptStructureOutput( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.DecryptStructureOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.DecryptStructureOutput nativeValue + ) { StructuredData plaintextStructure; - plaintextStructure = ToDafny.StructuredData(nativeValue.plaintextStructure()); + plaintextStructure = + ToDafny.StructuredData(nativeValue.plaintextStructure()); ParsedHeader parsedHeader; parsedHeader = ToDafny.ParsedHeader(nativeValue.parsedHeader()); return new DecryptStructureOutput(plaintextStructure, parsedHeader); } public static EncryptStructureInput EncryptStructureInput( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.EncryptStructureInput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.EncryptStructureInput nativeValue + ) { DafnySequence tableName; - tableName = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.tableName()); + tableName = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.tableName() + ); StructuredData plaintextStructure; - plaintextStructure = ToDafny.StructuredData(nativeValue.plaintextStructure()); + plaintextStructure = + ToDafny.StructuredData(nativeValue.plaintextStructure()); CryptoSchema cryptoSchema; cryptoSchema = ToDafny.CryptoSchema(nativeValue.cryptoSchema()); ICryptographicMaterialsManager cmm; - cmm = software.amazon.cryptography.materialproviders.ToDafny.CryptographicMaterialsManager(nativeValue.cmm()); + cmm = + software.amazon.cryptography.materialproviders.ToDafny.CryptographicMaterialsManager( + nativeValue.cmm() + ); Option algorithmSuiteId; - algorithmSuiteId = Objects.nonNull(nativeValue.algorithmSuiteId()) ? - Option.create_Some(software.amazon.cryptography.materialproviders.ToDafny.DBEAlgorithmSuiteId(nativeValue.algorithmSuiteId())) + algorithmSuiteId = + Objects.nonNull(nativeValue.algorithmSuiteId()) + ? Option.create_Some( + software.amazon.cryptography.materialproviders.ToDafny.DBEAlgorithmSuiteId( + nativeValue.algorithmSuiteId() + ) + ) : Option.create_None(); - Option, ? extends DafnySequence>> encryptionContext; - encryptionContext = (Objects.nonNull(nativeValue.encryptionContext()) && nativeValue.encryptionContext().size() > 0) ? - Option.create_Some(software.amazon.cryptography.materialproviders.ToDafny.EncryptionContext(nativeValue.encryptionContext())) + Option< + DafnyMap< + ? extends DafnySequence, + ? extends DafnySequence + > + > encryptionContext; + encryptionContext = + (Objects.nonNull(nativeValue.encryptionContext()) && + nativeValue.encryptionContext().size() > 0) + ? Option.create_Some( + software.amazon.cryptography.materialproviders.ToDafny.EncryptionContext( + nativeValue.encryptionContext() + ) + ) : Option.create_None(); - return new EncryptStructureInput(tableName, plaintextStructure, cryptoSchema, cmm, algorithmSuiteId, encryptionContext); + return new EncryptStructureInput( + tableName, + plaintextStructure, + cryptoSchema, + cmm, + algorithmSuiteId, + encryptionContext + ); } public static EncryptStructureOutput EncryptStructureOutput( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.EncryptStructureOutput nativeValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.EncryptStructureOutput nativeValue + ) { StructuredData encryptedStructure; - encryptedStructure = ToDafny.StructuredData(nativeValue.encryptedStructure()); + encryptedStructure = + ToDafny.StructuredData(nativeValue.encryptedStructure()); ParsedHeader parsedHeader; parsedHeader = ToDafny.ParsedHeader(nativeValue.parsedHeader()); return new EncryptStructureOutput(encryptedStructure, parsedHeader); } public static ParsedHeader ParsedHeader( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.ParsedHeader nativeValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.ParsedHeader nativeValue + ) { CryptoSchema cryptoSchema; cryptoSchema = ToDafny.CryptoSchema(nativeValue.cryptoSchema()); DBEAlgorithmSuiteId algorithmSuiteId; - algorithmSuiteId = software.amazon.cryptography.materialproviders.ToDafny.DBEAlgorithmSuiteId(nativeValue.algorithmSuiteId()); + algorithmSuiteId = + software.amazon.cryptography.materialproviders.ToDafny.DBEAlgorithmSuiteId( + nativeValue.algorithmSuiteId() + ); DafnySequence encryptedDataKeys; - encryptedDataKeys = software.amazon.cryptography.materialproviders.ToDafny.EncryptedDataKeyList(nativeValue.encryptedDataKeys()); - DafnyMap, ? extends DafnySequence> storedEncryptionContext; - storedEncryptionContext = software.amazon.cryptography.materialproviders.ToDafny.EncryptionContext(nativeValue.storedEncryptionContext()); - DafnyMap, ? extends DafnySequence> encryptionContext; - encryptionContext = software.amazon.cryptography.materialproviders.ToDafny.EncryptionContext(nativeValue.encryptionContext()); - return new ParsedHeader(cryptoSchema, algorithmSuiteId, encryptedDataKeys, storedEncryptionContext, encryptionContext); + encryptedDataKeys = + software.amazon.cryptography.materialproviders.ToDafny.EncryptedDataKeyList( + nativeValue.encryptedDataKeys() + ); + DafnyMap< + ? extends DafnySequence, + ? extends DafnySequence + > storedEncryptionContext; + storedEncryptionContext = + software.amazon.cryptography.materialproviders.ToDafny.EncryptionContext( + nativeValue.storedEncryptionContext() + ); + DafnyMap< + ? extends DafnySequence, + ? extends DafnySequence + > encryptionContext; + encryptionContext = + software.amazon.cryptography.materialproviders.ToDafny.EncryptionContext( + nativeValue.encryptionContext() + ); + return new ParsedHeader( + cryptoSchema, + algorithmSuiteId, + encryptedDataKeys, + storedEncryptionContext, + encryptionContext + ); } public static StructuredData StructuredData( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.StructuredData nativeValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.StructuredData nativeValue + ) { StructuredDataContent content; content = ToDafny.StructuredDataContent(nativeValue.content()); - Option, ? extends StructuredDataTerminal>> attributes; - attributes = (Objects.nonNull(nativeValue.attributes()) && nativeValue.attributes().size() > 0) ? - Option.create_Some(ToDafny.StructuredDataAttributes(nativeValue.attributes())) + Option< + DafnyMap< + ? extends DafnySequence, + ? extends StructuredDataTerminal + > + > attributes; + attributes = + (Objects.nonNull(nativeValue.attributes()) && + nativeValue.attributes().size() > 0) + ? Option.create_Some( + ToDafny.StructuredDataAttributes(nativeValue.attributes()) + ) : Option.create_None(); return new StructuredData(content, attributes); } public static StructuredDataTerminal StructuredDataTerminal( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.StructuredDataTerminal nativeValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.StructuredDataTerminal nativeValue + ) { DafnySequence value; - value = software.amazon.smithy.dafny.conversion.ToDafny.Simple.ByteSequence(nativeValue.value()); + value = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.ByteSequence( + nativeValue.value() + ); DafnySequence typeId; - typeId = software.amazon.smithy.dafny.conversion.ToDafny.Simple.ByteSequence(nativeValue.typeId()); + typeId = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.ByteSequence( + nativeValue.typeId() + ); return new StructuredDataTerminal(value, typeId); } public static StructuredEncryptionConfig StructuredEncryptionConfig( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.StructuredEncryptionConfig nativeValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.StructuredEncryptionConfig nativeValue + ) { return new StructuredEncryptionConfig(); } public static Error Error(StructuredEncryptionException nativeValue) { DafnySequence message; - message = software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence(nativeValue.message()); + message = + software.amazon.smithy.dafny.conversion.ToDafny.Simple.CharacterSequence( + nativeValue.message() + ); return new Error_StructuredEncryptionException(message); } public static AuthenticateAction AuthenticateAction( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.AuthenticateAction nativeValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.AuthenticateAction nativeValue + ) { switch (nativeValue) { - case SIGN: { - return AuthenticateAction.create_SIGN(); - } - case DO_NOT_SIGN: { - return AuthenticateAction.create_DO__NOT__SIGN(); - } - default: { - throw new RuntimeException("Cannot convert " + nativeValue + " to software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateAction."); - } + case SIGN: + { + return AuthenticateAction.create_SIGN(); + } + case DO_NOT_SIGN: + { + return AuthenticateAction.create_DO__NOT__SIGN(); + } + default: + { + throw new RuntimeException( + "Cannot convert " + + nativeValue + + " to software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateAction." + ); + } } } public static CryptoAction CryptoAction( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.CryptoAction nativeValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.CryptoAction nativeValue + ) { switch (nativeValue) { - case ENCRYPT_AND_SIGN: { - return CryptoAction.create_ENCRYPT__AND__SIGN(); - } - case SIGN_AND_INCLUDE_IN_ENCRYPTION_CONTEXT: { - return CryptoAction.create_SIGN__AND__INCLUDE__IN__ENCRYPTION__CONTEXT(); - } - case SIGN_ONLY: { - return CryptoAction.create_SIGN__ONLY(); - } - case DO_NOTHING: { - return CryptoAction.create_DO__NOTHING(); - } - default: { - throw new RuntimeException("Cannot convert " + nativeValue + " to software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.CryptoAction."); - } + case ENCRYPT_AND_SIGN: + { + return CryptoAction.create_ENCRYPT__AND__SIGN(); + } + case SIGN_AND_INCLUDE_IN_ENCRYPTION_CONTEXT: + { + return CryptoAction.create_SIGN__AND__INCLUDE__IN__ENCRYPTION__CONTEXT(); + } + case SIGN_ONLY: + { + return CryptoAction.create_SIGN__ONLY(); + } + case DO_NOTHING: + { + return CryptoAction.create_DO__NOTHING(); + } + default: + { + throw new RuntimeException( + "Cannot convert " + + nativeValue + + " to software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.CryptoAction." + ); + } } } public static AuthenticateSchemaContent AuthenticateSchemaContent( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.AuthenticateSchemaContent nativeValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.AuthenticateSchemaContent nativeValue + ) { if (Objects.nonNull(nativeValue.Action())) { - return AuthenticateSchemaContent.create_Action(ToDafny.AuthenticateAction(nativeValue.Action())); + return AuthenticateSchemaContent.create_Action( + ToDafny.AuthenticateAction(nativeValue.Action()) + ); } if (Objects.nonNull(nativeValue.SchemaMap())) { - return AuthenticateSchemaContent.create_SchemaMap(ToDafny.AuthenticateSchemaMap(nativeValue.SchemaMap())); + return AuthenticateSchemaContent.create_SchemaMap( + ToDafny.AuthenticateSchemaMap(nativeValue.SchemaMap()) + ); } if (Objects.nonNull(nativeValue.SchemaList())) { - return AuthenticateSchemaContent.create_SchemaList(ToDafny.AuthenticateSchemaList(nativeValue.SchemaList())); + return AuthenticateSchemaContent.create_SchemaList( + ToDafny.AuthenticateSchemaList(nativeValue.SchemaList()) + ); } - throw new IllegalArgumentException("Cannot convert " + nativeValue + " to software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateSchemaContent."); + throw new IllegalArgumentException( + "Cannot convert " + + nativeValue + + " to software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateSchemaContent." + ); } public static CryptoSchemaContent CryptoSchemaContent( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.CryptoSchemaContent nativeValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.CryptoSchemaContent nativeValue + ) { if (Objects.nonNull(nativeValue.Action())) { - return CryptoSchemaContent.create_Action(ToDafny.CryptoAction(nativeValue.Action())); + return CryptoSchemaContent.create_Action( + ToDafny.CryptoAction(nativeValue.Action()) + ); } if (Objects.nonNull(nativeValue.SchemaMap())) { - return CryptoSchemaContent.create_SchemaMap(ToDafny.CryptoSchemaMap(nativeValue.SchemaMap())); + return CryptoSchemaContent.create_SchemaMap( + ToDafny.CryptoSchemaMap(nativeValue.SchemaMap()) + ); } if (Objects.nonNull(nativeValue.SchemaList())) { - return CryptoSchemaContent.create_SchemaList(ToDafny.CryptoSchemaList(nativeValue.SchemaList())); + return CryptoSchemaContent.create_SchemaList( + ToDafny.CryptoSchemaList(nativeValue.SchemaList()) + ); } - throw new IllegalArgumentException("Cannot convert " + nativeValue + " to software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.CryptoSchemaContent."); + throw new IllegalArgumentException( + "Cannot convert " + + nativeValue + + " to software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.CryptoSchemaContent." + ); } public static StructuredDataContent StructuredDataContent( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.StructuredDataContent nativeValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.StructuredDataContent nativeValue + ) { if (Objects.nonNull(nativeValue.Terminal())) { - return StructuredDataContent.create_Terminal(ToDafny.StructuredDataTerminal(nativeValue.Terminal())); + return StructuredDataContent.create_Terminal( + ToDafny.StructuredDataTerminal(nativeValue.Terminal()) + ); } if (Objects.nonNull(nativeValue.DataList())) { - return StructuredDataContent.create_DataList(ToDafny.StructuredDataList(nativeValue.DataList())); + return StructuredDataContent.create_DataList( + ToDafny.StructuredDataList(nativeValue.DataList()) + ); } if (Objects.nonNull(nativeValue.DataMap())) { - return StructuredDataContent.create_DataMap(ToDafny.StructuredDataMap(nativeValue.DataMap())); + return StructuredDataContent.create_DataMap( + ToDafny.StructuredDataMap(nativeValue.DataMap()) + ); } - throw new IllegalArgumentException("Cannot convert " + nativeValue + " to software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredDataContent."); + throw new IllegalArgumentException( + "Cannot convert " + + nativeValue + + " to software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredDataContent." + ); } - public static DafnySequence AuthenticateSchemaList( - List nativeValue) { + public static DafnySequence< + ? extends AuthenticateSchema + > AuthenticateSchemaList( + List< + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.AuthenticateSchema + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( - nativeValue, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::AuthenticateSchema, - AuthenticateSchema._typeDescriptor()); + nativeValue, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::AuthenticateSchema, + AuthenticateSchema._typeDescriptor() + ); } public static DafnySequence CryptoSchemaList( - List nativeValue) { + List< + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.CryptoSchema + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( - nativeValue, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::CryptoSchema, - CryptoSchema._typeDescriptor()); + nativeValue, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::CryptoSchema, + CryptoSchema._typeDescriptor() + ); } public static DafnySequence StructuredDataList( - List nativeValue) { + List< + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.StructuredData + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToSequence( - nativeValue, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::StructuredData, - StructuredData._typeDescriptor()); + nativeValue, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::StructuredData, + StructuredData._typeDescriptor() + ); } - public static DafnyMap, ? extends AuthenticateAction> AuthenticateSchemaAttributes( - Map nativeValue) { + public static DafnyMap< + ? extends DafnySequence, + ? extends AuthenticateAction + > AuthenticateSchemaAttributes( + Map< + String, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.AuthenticateAction + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToMap( - nativeValue, - software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::AuthenticateAction); + nativeValue, + software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::AuthenticateAction + ); } - public static DafnyMap, ? extends AuthenticateSchema> AuthenticateSchemaMap( - Map nativeValue) { + public static DafnyMap< + ? extends DafnySequence, + ? extends AuthenticateSchema + > AuthenticateSchemaMap( + Map< + String, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.AuthenticateSchema + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToMap( - nativeValue, - software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::AuthenticateSchema); + nativeValue, + software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::AuthenticateSchema + ); } - public static DafnyMap, ? extends AuthenticateAction> CryptoSchemaAttributes( - Map nativeValue) { + public static DafnyMap< + ? extends DafnySequence, + ? extends AuthenticateAction + > CryptoSchemaAttributes( + Map< + String, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.AuthenticateAction + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToMap( - nativeValue, - software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::AuthenticateAction); + nativeValue, + software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::AuthenticateAction + ); } - public static DafnyMap, ? extends CryptoSchema> CryptoSchemaMap( - Map nativeValue) { + public static DafnyMap< + ? extends DafnySequence, + ? extends CryptoSchema + > CryptoSchemaMap( + Map< + String, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.CryptoSchema + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToMap( - nativeValue, - software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::CryptoSchema); + nativeValue, + software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::CryptoSchema + ); } - public static DafnyMap, ? extends StructuredDataTerminal> StructuredDataAttributes( - Map nativeValue) { + public static DafnyMap< + ? extends DafnySequence, + ? extends StructuredDataTerminal + > StructuredDataAttributes( + Map< + String, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.StructuredDataTerminal + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToMap( - nativeValue, - software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::StructuredDataTerminal); + nativeValue, + software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::StructuredDataTerminal + ); } - public static DafnyMap, ? extends StructuredData> StructuredDataMap( - Map nativeValue) { + public static DafnyMap< + ? extends DafnySequence, + ? extends StructuredData + > StructuredDataMap( + Map< + String, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.StructuredData + > nativeValue + ) { return software.amazon.smithy.dafny.conversion.ToDafny.Aggregate.GenericToMap( - nativeValue, - software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::StructuredData); + nativeValue, + software.amazon.smithy.dafny.conversion.ToDafny.Simple::CharacterSequence, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToDafny::StructuredData + ); } - public static IStructuredEncryptionClient StructuredEncryption(StructuredEncryption nativeValue) { + public static IStructuredEncryptionClient StructuredEncryption( + StructuredEncryption nativeValue + ) { return nativeValue.impl(); } } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/ToNative.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/ToNative.java index 97bbd90cc..205442164 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/ToNative.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/ToNative.java @@ -36,6 +36,7 @@ import software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.StructuredEncryptionException; public class ToNative { + public static OpaqueError Error(Error_Opaque dafnyValue) { OpaqueError.Builder nativeBuilder = OpaqueError.builder(); nativeBuilder.obj(dafnyValue.dtor_obj()); @@ -45,17 +46,29 @@ public static OpaqueError Error(Error_Opaque dafnyValue) { public static CollectionOfErrors Error(Error_CollectionOfErrors dafnyValue) { CollectionOfErrors.Builder nativeBuilder = CollectionOfErrors.builder(); nativeBuilder.list( - software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( - dafnyValue.dtor_list(), - ToNative::Error)); - nativeBuilder.message(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_message())); + software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( + dafnyValue.dtor_list(), + ToNative::Error + ) + ); + nativeBuilder.message( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_message() + ) + ); return nativeBuilder.build(); } public static StructuredEncryptionException Error( - Error_StructuredEncryptionException dafnyValue) { - StructuredEncryptionException.Builder nativeBuilder = StructuredEncryptionException.builder(); - nativeBuilder.message(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_message())); + Error_StructuredEncryptionException dafnyValue + ) { + StructuredEncryptionException.Builder nativeBuilder = + StructuredEncryptionException.builder(); + nativeBuilder.message( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_message() + ) + ); return nativeBuilder.build(); } @@ -70,10 +83,14 @@ public static RuntimeException Error(Error dafnyValue) { return ToNative.Error((Error_CollectionOfErrors) dafnyValue); } if (dafnyValue.is_AwsCryptographyPrimitives()) { - return software.amazon.cryptography.primitives.ToNative.Error(dafnyValue.dtor_AwsCryptographyPrimitives()); + return software.amazon.cryptography.primitives.ToNative.Error( + dafnyValue.dtor_AwsCryptographyPrimitives() + ); } if (dafnyValue.is_AwsCryptographyMaterialProviders()) { - return software.amazon.cryptography.materialproviders.ToNative.Error(dafnyValue.dtor_AwsCryptographyMaterialProviders()); + return software.amazon.cryptography.materialproviders.ToNative.Error( + dafnyValue.dtor_AwsCryptographyMaterialProviders() + ); } OpaqueError.Builder nativeBuilder = OpaqueError.builder(); nativeBuilder.obj(dafnyValue); @@ -81,118 +98,227 @@ public static RuntimeException Error(Error dafnyValue) { } public static AuthenticateSchema AuthenticateSchema( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateSchema dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateSchema dafnyValue + ) { AuthenticateSchema.Builder nativeBuilder = AuthenticateSchema.builder(); - nativeBuilder.content(ToNative.AuthenticateSchemaContent(dafnyValue.dtor_content())); + nativeBuilder.content( + ToNative.AuthenticateSchemaContent(dafnyValue.dtor_content()) + ); if (dafnyValue.dtor_attributes().is_Some()) { - nativeBuilder.attributes(ToNative.AuthenticateSchemaAttributes(dafnyValue.dtor_attributes().dtor_value())); + nativeBuilder.attributes( + ToNative.AuthenticateSchemaAttributes( + dafnyValue.dtor_attributes().dtor_value() + ) + ); } return nativeBuilder.build(); } public static CryptoSchema CryptoSchema( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.CryptoSchema dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.CryptoSchema dafnyValue + ) { CryptoSchema.Builder nativeBuilder = CryptoSchema.builder(); - nativeBuilder.content(ToNative.CryptoSchemaContent(dafnyValue.dtor_content())); + nativeBuilder.content( + ToNative.CryptoSchemaContent(dafnyValue.dtor_content()) + ); if (dafnyValue.dtor_attributes().is_Some()) { - nativeBuilder.attributes(ToNative.CryptoSchemaAttributes(dafnyValue.dtor_attributes().dtor_value())); + nativeBuilder.attributes( + ToNative.CryptoSchemaAttributes( + dafnyValue.dtor_attributes().dtor_value() + ) + ); } return nativeBuilder.build(); } public static DecryptStructureInput DecryptStructureInput( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.DecryptStructureInput dafnyValue) { - DecryptStructureInput.Builder nativeBuilder = DecryptStructureInput.builder(); - nativeBuilder.tableName(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_tableName())); - nativeBuilder.encryptedStructure(ToNative.StructuredData(dafnyValue.dtor_encryptedStructure())); - nativeBuilder.authenticateSchema(ToNative.AuthenticateSchema(dafnyValue.dtor_authenticateSchema())); - nativeBuilder.cmm(software.amazon.cryptography.materialproviders.ToNative.CryptographicMaterialsManager(dafnyValue.dtor_cmm())); + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.DecryptStructureInput dafnyValue + ) { + DecryptStructureInput.Builder nativeBuilder = + DecryptStructureInput.builder(); + nativeBuilder.tableName( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_tableName() + ) + ); + nativeBuilder.encryptedStructure( + ToNative.StructuredData(dafnyValue.dtor_encryptedStructure()) + ); + nativeBuilder.authenticateSchema( + ToNative.AuthenticateSchema(dafnyValue.dtor_authenticateSchema()) + ); + nativeBuilder.cmm( + software.amazon.cryptography.materialproviders.ToNative.CryptographicMaterialsManager( + dafnyValue.dtor_cmm() + ) + ); if (dafnyValue.dtor_encryptionContext().is_Some()) { - nativeBuilder.encryptionContext(software.amazon.cryptography.materialproviders.ToNative.EncryptionContext(dafnyValue.dtor_encryptionContext().dtor_value())); + nativeBuilder.encryptionContext( + software.amazon.cryptography.materialproviders.ToNative.EncryptionContext( + dafnyValue.dtor_encryptionContext().dtor_value() + ) + ); } return nativeBuilder.build(); } public static DecryptStructureOutput DecryptStructureOutput( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.DecryptStructureOutput dafnyValue) { - DecryptStructureOutput.Builder nativeBuilder = DecryptStructureOutput.builder(); - nativeBuilder.plaintextStructure(ToNative.StructuredData(dafnyValue.dtor_plaintextStructure())); - nativeBuilder.parsedHeader(ToNative.ParsedHeader(dafnyValue.dtor_parsedHeader())); + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.DecryptStructureOutput dafnyValue + ) { + DecryptStructureOutput.Builder nativeBuilder = + DecryptStructureOutput.builder(); + nativeBuilder.plaintextStructure( + ToNative.StructuredData(dafnyValue.dtor_plaintextStructure()) + ); + nativeBuilder.parsedHeader( + ToNative.ParsedHeader(dafnyValue.dtor_parsedHeader()) + ); return nativeBuilder.build(); } public static EncryptStructureInput EncryptStructureInput( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.EncryptStructureInput dafnyValue) { - EncryptStructureInput.Builder nativeBuilder = EncryptStructureInput.builder(); - nativeBuilder.tableName(software.amazon.smithy.dafny.conversion.ToNative.Simple.String(dafnyValue.dtor_tableName())); - nativeBuilder.plaintextStructure(ToNative.StructuredData(dafnyValue.dtor_plaintextStructure())); - nativeBuilder.cryptoSchema(ToNative.CryptoSchema(dafnyValue.dtor_cryptoSchema())); - nativeBuilder.cmm(software.amazon.cryptography.materialproviders.ToNative.CryptographicMaterialsManager(dafnyValue.dtor_cmm())); + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.EncryptStructureInput dafnyValue + ) { + EncryptStructureInput.Builder nativeBuilder = + EncryptStructureInput.builder(); + nativeBuilder.tableName( + software.amazon.smithy.dafny.conversion.ToNative.Simple.String( + dafnyValue.dtor_tableName() + ) + ); + nativeBuilder.plaintextStructure( + ToNative.StructuredData(dafnyValue.dtor_plaintextStructure()) + ); + nativeBuilder.cryptoSchema( + ToNative.CryptoSchema(dafnyValue.dtor_cryptoSchema()) + ); + nativeBuilder.cmm( + software.amazon.cryptography.materialproviders.ToNative.CryptographicMaterialsManager( + dafnyValue.dtor_cmm() + ) + ); if (dafnyValue.dtor_algorithmSuiteId().is_Some()) { - nativeBuilder.algorithmSuiteId(software.amazon.cryptography.materialproviders.ToNative.DBEAlgorithmSuiteId(dafnyValue.dtor_algorithmSuiteId().dtor_value())); + nativeBuilder.algorithmSuiteId( + software.amazon.cryptography.materialproviders.ToNative.DBEAlgorithmSuiteId( + dafnyValue.dtor_algorithmSuiteId().dtor_value() + ) + ); } if (dafnyValue.dtor_encryptionContext().is_Some()) { - nativeBuilder.encryptionContext(software.amazon.cryptography.materialproviders.ToNative.EncryptionContext(dafnyValue.dtor_encryptionContext().dtor_value())); + nativeBuilder.encryptionContext( + software.amazon.cryptography.materialproviders.ToNative.EncryptionContext( + dafnyValue.dtor_encryptionContext().dtor_value() + ) + ); } return nativeBuilder.build(); } public static EncryptStructureOutput EncryptStructureOutput( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.EncryptStructureOutput dafnyValue) { - EncryptStructureOutput.Builder nativeBuilder = EncryptStructureOutput.builder(); - nativeBuilder.encryptedStructure(ToNative.StructuredData(dafnyValue.dtor_encryptedStructure())); - nativeBuilder.parsedHeader(ToNative.ParsedHeader(dafnyValue.dtor_parsedHeader())); + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.EncryptStructureOutput dafnyValue + ) { + EncryptStructureOutput.Builder nativeBuilder = + EncryptStructureOutput.builder(); + nativeBuilder.encryptedStructure( + ToNative.StructuredData(dafnyValue.dtor_encryptedStructure()) + ); + nativeBuilder.parsedHeader( + ToNative.ParsedHeader(dafnyValue.dtor_parsedHeader()) + ); return nativeBuilder.build(); } public static ParsedHeader ParsedHeader( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.ParsedHeader dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.ParsedHeader dafnyValue + ) { ParsedHeader.Builder nativeBuilder = ParsedHeader.builder(); - nativeBuilder.cryptoSchema(ToNative.CryptoSchema(dafnyValue.dtor_cryptoSchema())); - nativeBuilder.algorithmSuiteId(software.amazon.cryptography.materialproviders.ToNative.DBEAlgorithmSuiteId(dafnyValue.dtor_algorithmSuiteId())); - nativeBuilder.encryptedDataKeys(software.amazon.cryptography.materialproviders.ToNative.EncryptedDataKeyList(dafnyValue.dtor_encryptedDataKeys())); - nativeBuilder.storedEncryptionContext(software.amazon.cryptography.materialproviders.ToNative.EncryptionContext(dafnyValue.dtor_storedEncryptionContext())); - nativeBuilder.encryptionContext(software.amazon.cryptography.materialproviders.ToNative.EncryptionContext(dafnyValue.dtor_encryptionContext())); + nativeBuilder.cryptoSchema( + ToNative.CryptoSchema(dafnyValue.dtor_cryptoSchema()) + ); + nativeBuilder.algorithmSuiteId( + software.amazon.cryptography.materialproviders.ToNative.DBEAlgorithmSuiteId( + dafnyValue.dtor_algorithmSuiteId() + ) + ); + nativeBuilder.encryptedDataKeys( + software.amazon.cryptography.materialproviders.ToNative.EncryptedDataKeyList( + dafnyValue.dtor_encryptedDataKeys() + ) + ); + nativeBuilder.storedEncryptionContext( + software.amazon.cryptography.materialproviders.ToNative.EncryptionContext( + dafnyValue.dtor_storedEncryptionContext() + ) + ); + nativeBuilder.encryptionContext( + software.amazon.cryptography.materialproviders.ToNative.EncryptionContext( + dafnyValue.dtor_encryptionContext() + ) + ); return nativeBuilder.build(); } public static StructuredData StructuredData( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredData dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredData dafnyValue + ) { StructuredData.Builder nativeBuilder = StructuredData.builder(); - nativeBuilder.content(ToNative.StructuredDataContent(dafnyValue.dtor_content())); + nativeBuilder.content( + ToNative.StructuredDataContent(dafnyValue.dtor_content()) + ); if (dafnyValue.dtor_attributes().is_Some()) { - nativeBuilder.attributes(ToNative.StructuredDataAttributes(dafnyValue.dtor_attributes().dtor_value())); + nativeBuilder.attributes( + ToNative.StructuredDataAttributes( + dafnyValue.dtor_attributes().dtor_value() + ) + ); } return nativeBuilder.build(); } public static StructuredDataTerminal StructuredDataTerminal( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredDataTerminal dafnyValue) { - StructuredDataTerminal.Builder nativeBuilder = StructuredDataTerminal.builder(); - nativeBuilder.value(software.amazon.smithy.dafny.conversion.ToNative.Simple.ByteBuffer(dafnyValue.dtor_value())); - nativeBuilder.typeId(software.amazon.smithy.dafny.conversion.ToNative.Simple.ByteBuffer(dafnyValue.dtor_typeId())); + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredDataTerminal dafnyValue + ) { + StructuredDataTerminal.Builder nativeBuilder = + StructuredDataTerminal.builder(); + nativeBuilder.value( + software.amazon.smithy.dafny.conversion.ToNative.Simple.ByteBuffer( + dafnyValue.dtor_value() + ) + ); + nativeBuilder.typeId( + software.amazon.smithy.dafny.conversion.ToNative.Simple.ByteBuffer( + dafnyValue.dtor_typeId() + ) + ); return nativeBuilder.build(); } public static StructuredEncryptionConfig StructuredEncryptionConfig( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredEncryptionConfig dafnyValue) { - StructuredEncryptionConfig.Builder nativeBuilder = StructuredEncryptionConfig.builder(); + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredEncryptionConfig dafnyValue + ) { + StructuredEncryptionConfig.Builder nativeBuilder = + StructuredEncryptionConfig.builder(); return nativeBuilder.build(); } public static AuthenticateAction AuthenticateAction( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateAction dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateAction dafnyValue + ) { if (dafnyValue.is_SIGN()) { return AuthenticateAction.SIGN; } if (dafnyValue.is_DO__NOT__SIGN()) { return AuthenticateAction.DO_NOT_SIGN; } - throw new IllegalArgumentException("No entry of software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.AuthenticateAction matches the input : " + dafnyValue); + throw new IllegalArgumentException( + "No entry of software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.AuthenticateAction matches the input : " + + dafnyValue + ); } public static CryptoAction CryptoAction( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.CryptoAction dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.CryptoAction dafnyValue + ) { if (dafnyValue.is_ENCRYPT__AND__SIGN()) { return CryptoAction.ENCRYPT_AND_SIGN; } @@ -205,124 +331,192 @@ public static CryptoAction CryptoAction( if (dafnyValue.is_DO__NOTHING()) { return CryptoAction.DO_NOTHING; } - throw new IllegalArgumentException("No entry of software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.CryptoAction matches the input : " + dafnyValue); + throw new IllegalArgumentException( + "No entry of software.amazon.cryptography.dbencryptionsdk.structuredencryption.model.CryptoAction matches the input : " + + dafnyValue + ); } public static AuthenticateSchemaContent AuthenticateSchemaContent( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateSchemaContent dafnyValue) { - AuthenticateSchemaContent.Builder nativeBuilder = AuthenticateSchemaContent.builder(); + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateSchemaContent dafnyValue + ) { + AuthenticateSchemaContent.Builder nativeBuilder = + AuthenticateSchemaContent.builder(); if (dafnyValue.is_Action()) { - nativeBuilder.Action(ToNative.AuthenticateAction(dafnyValue.dtor_Action())); + nativeBuilder.Action( + ToNative.AuthenticateAction(dafnyValue.dtor_Action()) + ); } if (dafnyValue.is_SchemaMap()) { - nativeBuilder.SchemaMap(ToNative.AuthenticateSchemaMap(dafnyValue.dtor_SchemaMap())); + nativeBuilder.SchemaMap( + ToNative.AuthenticateSchemaMap(dafnyValue.dtor_SchemaMap()) + ); } if (dafnyValue.is_SchemaList()) { - nativeBuilder.SchemaList(ToNative.AuthenticateSchemaList(dafnyValue.dtor_SchemaList())); + nativeBuilder.SchemaList( + ToNative.AuthenticateSchemaList(dafnyValue.dtor_SchemaList()) + ); } return nativeBuilder.build(); } public static CryptoSchemaContent CryptoSchemaContent( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.CryptoSchemaContent dafnyValue) { + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.CryptoSchemaContent dafnyValue + ) { CryptoSchemaContent.Builder nativeBuilder = CryptoSchemaContent.builder(); if (dafnyValue.is_Action()) { nativeBuilder.Action(ToNative.CryptoAction(dafnyValue.dtor_Action())); } if (dafnyValue.is_SchemaMap()) { - nativeBuilder.SchemaMap(ToNative.CryptoSchemaMap(dafnyValue.dtor_SchemaMap())); + nativeBuilder.SchemaMap( + ToNative.CryptoSchemaMap(dafnyValue.dtor_SchemaMap()) + ); } if (dafnyValue.is_SchemaList()) { - nativeBuilder.SchemaList(ToNative.CryptoSchemaList(dafnyValue.dtor_SchemaList())); + nativeBuilder.SchemaList( + ToNative.CryptoSchemaList(dafnyValue.dtor_SchemaList()) + ); } return nativeBuilder.build(); } public static StructuredDataContent StructuredDataContent( - software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredDataContent dafnyValue) { - StructuredDataContent.Builder nativeBuilder = StructuredDataContent.builder(); + software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredDataContent dafnyValue + ) { + StructuredDataContent.Builder nativeBuilder = + StructuredDataContent.builder(); if (dafnyValue.is_Terminal()) { - nativeBuilder.Terminal(ToNative.StructuredDataTerminal(dafnyValue.dtor_Terminal())); + nativeBuilder.Terminal( + ToNative.StructuredDataTerminal(dafnyValue.dtor_Terminal()) + ); } if (dafnyValue.is_DataList()) { - nativeBuilder.DataList(ToNative.StructuredDataList(dafnyValue.dtor_DataList())); + nativeBuilder.DataList( + ToNative.StructuredDataList(dafnyValue.dtor_DataList()) + ); } if (dafnyValue.is_DataMap()) { - nativeBuilder.DataMap(ToNative.StructuredDataMap(dafnyValue.dtor_DataMap())); + nativeBuilder.DataMap( + ToNative.StructuredDataMap(dafnyValue.dtor_DataMap()) + ); } return nativeBuilder.build(); } public static List AuthenticateSchemaList( - DafnySequence dafnyValue) { + DafnySequence< + ? extends software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateSchema + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( - dafnyValue, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::AuthenticateSchema); + dafnyValue, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::AuthenticateSchema + ); } public static List CryptoSchemaList( - DafnySequence dafnyValue) { + DafnySequence< + ? extends software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.CryptoSchema + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( - dafnyValue, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::CryptoSchema); + dafnyValue, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::CryptoSchema + ); } public static List StructuredDataList( - DafnySequence dafnyValue) { + DafnySequence< + ? extends software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredData + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToList( - dafnyValue, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::StructuredData); + dafnyValue, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::StructuredData + ); } public static Map AuthenticateSchemaAttributes( - DafnyMap, ? extends software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateAction> dafnyValue) { + DafnyMap< + ? extends DafnySequence, + ? extends software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateAction + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToMap( - dafnyValue, - software.amazon.smithy.dafny.conversion.ToNative.Simple::String, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::AuthenticateAction); + dafnyValue, + software.amazon.smithy.dafny.conversion.ToNative.Simple::String, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::AuthenticateAction + ); } public static Map AuthenticateSchemaMap( - DafnyMap, ? extends software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateSchema> dafnyValue) { + DafnyMap< + ? extends DafnySequence, + ? extends software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateSchema + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToMap( - dafnyValue, - software.amazon.smithy.dafny.conversion.ToNative.Simple::String, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::AuthenticateSchema); + dafnyValue, + software.amazon.smithy.dafny.conversion.ToNative.Simple::String, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::AuthenticateSchema + ); } public static Map CryptoSchemaAttributes( - DafnyMap, ? extends software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateAction> dafnyValue) { + DafnyMap< + ? extends DafnySequence, + ? extends software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateAction + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToMap( - dafnyValue, - software.amazon.smithy.dafny.conversion.ToNative.Simple::String, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::AuthenticateAction); + dafnyValue, + software.amazon.smithy.dafny.conversion.ToNative.Simple::String, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::AuthenticateAction + ); } public static Map CryptoSchemaMap( - DafnyMap, ? extends software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.CryptoSchema> dafnyValue) { + DafnyMap< + ? extends DafnySequence, + ? extends software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.CryptoSchema + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToMap( - dafnyValue, - software.amazon.smithy.dafny.conversion.ToNative.Simple::String, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::CryptoSchema); + dafnyValue, + software.amazon.smithy.dafny.conversion.ToNative.Simple::String, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::CryptoSchema + ); } public static Map StructuredDataAttributes( - DafnyMap, ? extends software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredDataTerminal> dafnyValue) { + DafnyMap< + ? extends DafnySequence, + ? extends software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredDataTerminal + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToMap( - dafnyValue, - software.amazon.smithy.dafny.conversion.ToNative.Simple::String, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::StructuredDataTerminal); + dafnyValue, + software.amazon.smithy.dafny.conversion.ToNative.Simple::String, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::StructuredDataTerminal + ); } public static Map StructuredDataMap( - DafnyMap, ? extends software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredData> dafnyValue) { + DafnyMap< + ? extends DafnySequence, + ? extends software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredData + > dafnyValue + ) { return software.amazon.smithy.dafny.conversion.ToNative.Aggregate.GenericToMap( - dafnyValue, - software.amazon.smithy.dafny.conversion.ToNative.Simple::String, - software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::StructuredData); + dafnyValue, + software.amazon.smithy.dafny.conversion.ToNative.Simple::String, + software.amazon.cryptography.dbencryptionsdk.structuredencryption.ToNative::StructuredData + ); } - public static StructuredEncryption StructuredEncryption(IStructuredEncryptionClient dafnyValue) { + public static StructuredEncryption StructuredEncryption( + IStructuredEncryptionClient dafnyValue + ) { return new StructuredEncryption(dafnyValue); } } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/AuthenticateSchema.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/AuthenticateSchema.java index 5e83921d3..e2086e579 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/AuthenticateSchema.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/AuthenticateSchema.java @@ -7,6 +7,7 @@ import java.util.Objects; public class AuthenticateSchema { + private final AuthenticateSchemaContent content; private final Map attributes; @@ -45,12 +46,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected AuthenticateSchemaContent content; protected Map attributes; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(AuthenticateSchema model) { this.content = model.content(); @@ -76,8 +77,10 @@ public Map attributes() { } public AuthenticateSchema build() { - if (Objects.isNull(this.content())) { - throw new IllegalArgumentException("Missing value for required field `content`"); + if (Objects.isNull(this.content())) { + throw new IllegalArgumentException( + "Missing value for required field `content`" + ); } return new AuthenticateSchema(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/AuthenticateSchemaContent.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/AuthenticateSchemaContent.java index 534a20ff6..dc4055c63 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/AuthenticateSchemaContent.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/AuthenticateSchemaContent.java @@ -8,6 +8,7 @@ import java.util.Objects; public class AuthenticateSchemaContent { + private final AuthenticateAction Action; private final Map SchemaMap; @@ -57,14 +58,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected AuthenticateAction Action; protected Map SchemaMap; protected List SchemaList; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(AuthenticateSchemaContent model) { this.Action = model.Action(); @@ -101,13 +102,15 @@ public List SchemaList() { public AuthenticateSchemaContent build() { if (!onlyOneNonNull()) { - throw new IllegalArgumentException("`AuthenticateSchemaContent` is a Union. A Union MUST have one and only one value set."); + throw new IllegalArgumentException( + "`AuthenticateSchemaContent` is a Union. A Union MUST have one and only one value set." + ); } return new AuthenticateSchemaContent(this); } private boolean onlyOneNonNull() { - Object[] allValues = {this.Action, this.SchemaMap, this.SchemaList}; + Object[] allValues = { this.Action, this.SchemaMap, this.SchemaList }; boolean haveOneNonNull = false; for (Object o : allValues) { if (Objects.nonNull(o)) { diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/CollectionOfErrors.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/CollectionOfErrors.java index ba62d5496..a4d45a553 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/CollectionOfErrors.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/CollectionOfErrors.java @@ -6,6 +6,7 @@ import java.util.List; public class CollectionOfErrors extends RuntimeException { + /** * The list of Exceptions encountered. */ @@ -90,14 +91,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String message; protected Throwable cause; protected List list; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(CollectionOfErrors model) { this.cause = model.getCause(); diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/CryptoAction.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/CryptoAction.java index a62f53e33..0922c443b 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/CryptoAction.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/CryptoAction.java @@ -6,7 +6,9 @@ public enum CryptoAction { ENCRYPT_AND_SIGN("ENCRYPT_AND_SIGN"), - SIGN_AND_INCLUDE_IN_ENCRYPTION_CONTEXT("SIGN_AND_INCLUDE_IN_ENCRYPTION_CONTEXT"), + SIGN_AND_INCLUDE_IN_ENCRYPTION_CONTEXT( + "SIGN_AND_INCLUDE_IN_ENCRYPTION_CONTEXT" + ), SIGN_ONLY("SIGN_ONLY"), diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/CryptoSchema.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/CryptoSchema.java index 2e2d387bb..f65622ad4 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/CryptoSchema.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/CryptoSchema.java @@ -7,6 +7,7 @@ import java.util.Objects; public class CryptoSchema { + private final CryptoSchemaContent content; private final Map attributes; @@ -45,12 +46,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected CryptoSchemaContent content; protected Map attributes; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(CryptoSchema model) { this.content = model.content(); @@ -76,8 +77,10 @@ public Map attributes() { } public CryptoSchema build() { - if (Objects.isNull(this.content())) { - throw new IllegalArgumentException("Missing value for required field `content`"); + if (Objects.isNull(this.content())) { + throw new IllegalArgumentException( + "Missing value for required field `content`" + ); } return new CryptoSchema(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/CryptoSchemaContent.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/CryptoSchemaContent.java index 501c2f79e..e3fad9730 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/CryptoSchemaContent.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/CryptoSchemaContent.java @@ -8,6 +8,7 @@ import java.util.Objects; public class CryptoSchemaContent { + private final CryptoAction Action; private final Map SchemaMap; @@ -57,14 +58,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected CryptoAction Action; protected Map SchemaMap; protected List SchemaList; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(CryptoSchemaContent model) { this.Action = model.Action(); @@ -101,13 +102,15 @@ public List SchemaList() { public CryptoSchemaContent build() { if (!onlyOneNonNull()) { - throw new IllegalArgumentException("`CryptoSchemaContent` is a Union. A Union MUST have one and only one value set."); + throw new IllegalArgumentException( + "`CryptoSchemaContent` is a Union. A Union MUST have one and only one value set." + ); } return new CryptoSchemaContent(this); } private boolean onlyOneNonNull() { - Object[] allValues = {this.Action, this.SchemaMap, this.SchemaList}; + Object[] allValues = { this.Action, this.SchemaMap, this.SchemaList }; boolean haveOneNonNull = false; for (Object o : allValues) { if (Objects.nonNull(o)) { diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/DecryptStructureInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/DecryptStructureInput.java index df819f39d..650de7727 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/DecryptStructureInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/DecryptStructureInput.java @@ -9,6 +9,7 @@ import software.amazon.cryptography.materialproviders.ICryptographicMaterialsManager; public class DecryptStructureInput { + private final String tableName; private final StructuredData encryptedStructure; @@ -80,6 +81,7 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String tableName; protected StructuredData encryptedStructure; @@ -90,8 +92,7 @@ static class BuilderImpl implements Builder { protected Map encryptionContext; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(DecryptStructureInput model) { this.tableName = model.tableName(); @@ -147,17 +148,25 @@ public Map encryptionContext() { } public DecryptStructureInput build() { - if (Objects.isNull(this.tableName())) { - throw new IllegalArgumentException("Missing value for required field `tableName`"); + if (Objects.isNull(this.tableName())) { + throw new IllegalArgumentException( + "Missing value for required field `tableName`" + ); } - if (Objects.isNull(this.encryptedStructure())) { - throw new IllegalArgumentException("Missing value for required field `encryptedStructure`"); + if (Objects.isNull(this.encryptedStructure())) { + throw new IllegalArgumentException( + "Missing value for required field `encryptedStructure`" + ); } - if (Objects.isNull(this.authenticateSchema())) { - throw new IllegalArgumentException("Missing value for required field `authenticateSchema`"); + if (Objects.isNull(this.authenticateSchema())) { + throw new IllegalArgumentException( + "Missing value for required field `authenticateSchema`" + ); } - if (Objects.isNull(this.cmm())) { - throw new IllegalArgumentException("Missing value for required field `cmm`"); + if (Objects.isNull(this.cmm())) { + throw new IllegalArgumentException( + "Missing value for required field `cmm`" + ); } return new DecryptStructureInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/DecryptStructureOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/DecryptStructureOutput.java index 78ef4b72c..72348be44 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/DecryptStructureOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/DecryptStructureOutput.java @@ -6,6 +6,7 @@ import java.util.Objects; public class DecryptStructureOutput { + private final StructuredData plaintextStructure; private final ParsedHeader parsedHeader; @@ -44,12 +45,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected StructuredData plaintextStructure; protected ParsedHeader parsedHeader; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(DecryptStructureOutput model) { this.plaintextStructure = model.plaintextStructure(); @@ -75,11 +76,15 @@ public ParsedHeader parsedHeader() { } public DecryptStructureOutput build() { - if (Objects.isNull(this.plaintextStructure())) { - throw new IllegalArgumentException("Missing value for required field `plaintextStructure`"); + if (Objects.isNull(this.plaintextStructure())) { + throw new IllegalArgumentException( + "Missing value for required field `plaintextStructure`" + ); } - if (Objects.isNull(this.parsedHeader())) { - throw new IllegalArgumentException("Missing value for required field `parsedHeader`"); + if (Objects.isNull(this.parsedHeader())) { + throw new IllegalArgumentException( + "Missing value for required field `parsedHeader`" + ); } return new DecryptStructureOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/EncryptStructureInput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/EncryptStructureInput.java index c03a4df73..b6e0f5e4d 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/EncryptStructureInput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/EncryptStructureInput.java @@ -10,6 +10,7 @@ import software.amazon.cryptography.materialproviders.model.DBEAlgorithmSuiteId; public class EncryptStructureInput { + private final String tableName; private final StructuredData plaintextStructure; @@ -92,6 +93,7 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String tableName; protected StructuredData plaintextStructure; @@ -104,8 +106,7 @@ static class BuilderImpl implements Builder { protected Map encryptionContext; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(EncryptStructureInput model) { this.tableName = model.tableName(); @@ -171,17 +172,25 @@ public Map encryptionContext() { } public EncryptStructureInput build() { - if (Objects.isNull(this.tableName())) { - throw new IllegalArgumentException("Missing value for required field `tableName`"); + if (Objects.isNull(this.tableName())) { + throw new IllegalArgumentException( + "Missing value for required field `tableName`" + ); } - if (Objects.isNull(this.plaintextStructure())) { - throw new IllegalArgumentException("Missing value for required field `plaintextStructure`"); + if (Objects.isNull(this.plaintextStructure())) { + throw new IllegalArgumentException( + "Missing value for required field `plaintextStructure`" + ); } - if (Objects.isNull(this.cryptoSchema())) { - throw new IllegalArgumentException("Missing value for required field `cryptoSchema`"); + if (Objects.isNull(this.cryptoSchema())) { + throw new IllegalArgumentException( + "Missing value for required field `cryptoSchema`" + ); } - if (Objects.isNull(this.cmm())) { - throw new IllegalArgumentException("Missing value for required field `cmm`"); + if (Objects.isNull(this.cmm())) { + throw new IllegalArgumentException( + "Missing value for required field `cmm`" + ); } return new EncryptStructureInput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/EncryptStructureOutput.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/EncryptStructureOutput.java index 31ecdb0a9..f4573d7e6 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/EncryptStructureOutput.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/EncryptStructureOutput.java @@ -6,6 +6,7 @@ import java.util.Objects; public class EncryptStructureOutput { + private final StructuredData encryptedStructure; private final ParsedHeader parsedHeader; @@ -44,12 +45,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected StructuredData encryptedStructure; protected ParsedHeader parsedHeader; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(EncryptStructureOutput model) { this.encryptedStructure = model.encryptedStructure(); @@ -75,11 +76,15 @@ public ParsedHeader parsedHeader() { } public EncryptStructureOutput build() { - if (Objects.isNull(this.encryptedStructure())) { - throw new IllegalArgumentException("Missing value for required field `encryptedStructure`"); + if (Objects.isNull(this.encryptedStructure())) { + throw new IllegalArgumentException( + "Missing value for required field `encryptedStructure`" + ); } - if (Objects.isNull(this.parsedHeader())) { - throw new IllegalArgumentException("Missing value for required field `parsedHeader`"); + if (Objects.isNull(this.parsedHeader())) { + throw new IllegalArgumentException( + "Missing value for required field `parsedHeader`" + ); } return new EncryptStructureOutput(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/OpaqueError.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/OpaqueError.java index ba0553977..0e8c7b28f 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/OpaqueError.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/OpaqueError.java @@ -4,6 +4,7 @@ package software.amazon.cryptography.dbencryptionsdk.structuredencryption.model; public class OpaqueError extends RuntimeException { + /** * The unexpected object encountered. It MIGHT BE an Exception, but that is not guaranteed. */ @@ -88,14 +89,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String message; protected Throwable cause; protected Object obj; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(OpaqueError model) { this.cause = model.getCause(); @@ -131,7 +132,9 @@ public Object obj() { } public OpaqueError build() { - if (this.obj != null && this.cause == null && this.obj instanceof Throwable) { + if ( + this.obj != null && this.cause == null && this.obj instanceof Throwable + ) { this.cause = (Throwable) this.obj; } else if (this.obj == null && this.cause != null) { this.obj = this.cause; diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/ParsedHeader.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/ParsedHeader.java index 75167d9cf..2c806dd94 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/ParsedHeader.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/ParsedHeader.java @@ -10,6 +10,7 @@ import software.amazon.cryptography.materialproviders.model.EncryptedDataKey; public class ParsedHeader { + private final CryptoSchema cryptoSchema; private final DBEAlgorithmSuiteId algorithmSuiteId; @@ -69,7 +70,9 @@ public interface Builder { List encryptedDataKeys(); - Builder storedEncryptionContext(Map storedEncryptionContext); + Builder storedEncryptionContext( + Map storedEncryptionContext + ); Map storedEncryptionContext(); @@ -81,6 +84,7 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected CryptoSchema cryptoSchema; protected DBEAlgorithmSuiteId algorithmSuiteId; @@ -91,8 +95,7 @@ static class BuilderImpl implements Builder { protected Map encryptionContext; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(ParsedHeader model) { this.cryptoSchema = model.cryptoSchema(); @@ -129,7 +132,9 @@ public List encryptedDataKeys() { return this.encryptedDataKeys; } - public Builder storedEncryptionContext(Map storedEncryptionContext) { + public Builder storedEncryptionContext( + Map storedEncryptionContext + ) { this.storedEncryptionContext = storedEncryptionContext; return this; } @@ -148,20 +153,30 @@ public Map encryptionContext() { } public ParsedHeader build() { - if (Objects.isNull(this.cryptoSchema())) { - throw new IllegalArgumentException("Missing value for required field `cryptoSchema`"); + if (Objects.isNull(this.cryptoSchema())) { + throw new IllegalArgumentException( + "Missing value for required field `cryptoSchema`" + ); } - if (Objects.isNull(this.algorithmSuiteId())) { - throw new IllegalArgumentException("Missing value for required field `algorithmSuiteId`"); + if (Objects.isNull(this.algorithmSuiteId())) { + throw new IllegalArgumentException( + "Missing value for required field `algorithmSuiteId`" + ); } - if (Objects.isNull(this.encryptedDataKeys())) { - throw new IllegalArgumentException("Missing value for required field `encryptedDataKeys`"); + if (Objects.isNull(this.encryptedDataKeys())) { + throw new IllegalArgumentException( + "Missing value for required field `encryptedDataKeys`" + ); } - if (Objects.isNull(this.storedEncryptionContext())) { - throw new IllegalArgumentException("Missing value for required field `storedEncryptionContext`"); + if (Objects.isNull(this.storedEncryptionContext())) { + throw new IllegalArgumentException( + "Missing value for required field `storedEncryptionContext`" + ); } - if (Objects.isNull(this.encryptionContext())) { - throw new IllegalArgumentException("Missing value for required field `encryptionContext`"); + if (Objects.isNull(this.encryptionContext())) { + throw new IllegalArgumentException( + "Missing value for required field `encryptionContext`" + ); } return new ParsedHeader(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredData.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredData.java index 55fb8cb6a..d63dd4c58 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredData.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredData.java @@ -7,6 +7,7 @@ import java.util.Objects; public class StructuredData { + private final StructuredDataContent content; private final Map attributes; @@ -45,12 +46,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected StructuredDataContent content; protected Map attributes; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(StructuredData model) { this.content = model.content(); @@ -76,8 +77,10 @@ public Map attributes() { } public StructuredData build() { - if (Objects.isNull(this.content())) { - throw new IllegalArgumentException("Missing value for required field `content`"); + if (Objects.isNull(this.content())) { + throw new IllegalArgumentException( + "Missing value for required field `content`" + ); } return new StructuredData(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredDataContent.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredDataContent.java index 81f02cb3d..46fb82b77 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredDataContent.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredDataContent.java @@ -8,6 +8,7 @@ import java.util.Objects; public class StructuredDataContent { + private final StructuredDataTerminal Terminal; private final List DataList; @@ -57,14 +58,14 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected StructuredDataTerminal Terminal; protected List DataList; protected Map DataMap; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(StructuredDataContent model) { this.Terminal = model.Terminal(); @@ -101,13 +102,15 @@ public Map DataMap() { public StructuredDataContent build() { if (!onlyOneNonNull()) { - throw new IllegalArgumentException("`StructuredDataContent` is a Union. A Union MUST have one and only one value set."); + throw new IllegalArgumentException( + "`StructuredDataContent` is a Union. A Union MUST have one and only one value set." + ); } return new StructuredDataContent(this); } private boolean onlyOneNonNull() { - Object[] allValues = {this.Terminal, this.DataList, this.DataMap}; + Object[] allValues = { this.Terminal, this.DataList, this.DataMap }; boolean haveOneNonNull = false; for (Object o : allValues) { if (Objects.nonNull(o)) { diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredDataTerminal.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredDataTerminal.java index 8ba7f8d12..87a8676af 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredDataTerminal.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredDataTerminal.java @@ -7,6 +7,7 @@ import java.util.Objects; public class StructuredDataTerminal { + private final ByteBuffer value; private final ByteBuffer typeId; @@ -45,12 +46,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected ByteBuffer value; protected ByteBuffer typeId; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(StructuredDataTerminal model) { this.value = model.value(); @@ -76,17 +77,25 @@ public ByteBuffer typeId() { } public StructuredDataTerminal build() { - if (Objects.isNull(this.value())) { - throw new IllegalArgumentException("Missing value for required field `value`"); + if (Objects.isNull(this.value())) { + throw new IllegalArgumentException( + "Missing value for required field `value`" + ); } - if (Objects.isNull(this.typeId())) { - throw new IllegalArgumentException("Missing value for required field `typeId`"); + if (Objects.isNull(this.typeId())) { + throw new IllegalArgumentException( + "Missing value for required field `typeId`" + ); } if (Objects.nonNull(this.typeId()) && this.typeId().remaining() < 2) { - throw new IllegalArgumentException("The size of `typeId` must be greater than or equal to 2"); + throw new IllegalArgumentException( + "The size of `typeId` must be greater than or equal to 2" + ); } if (Objects.nonNull(this.typeId()) && this.typeId().remaining() > 2) { - throw new IllegalArgumentException("The size of `typeId` must be less than or equal to 2"); + throw new IllegalArgumentException( + "The size of `typeId` must be less than or equal to 2" + ); } return new StructuredDataTerminal(this); } diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredEncryptionConfig.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredEncryptionConfig.java index a722f14d2..138cc9c18 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredEncryptionConfig.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredEncryptionConfig.java @@ -4,8 +4,8 @@ package software.amazon.cryptography.dbencryptionsdk.structuredencryption.model; public class StructuredEncryptionConfig { - protected StructuredEncryptionConfig(BuilderImpl builder) { - } + + protected StructuredEncryptionConfig(BuilderImpl builder) {} public Builder toBuilder() { return new BuilderImpl(this); @@ -20,11 +20,10 @@ public interface Builder { } static class BuilderImpl implements Builder { - protected BuilderImpl() { - } - protected BuilderImpl(StructuredEncryptionConfig model) { - } + protected BuilderImpl() {} + + protected BuilderImpl(StructuredEncryptionConfig model) {} public StructuredEncryptionConfig build() { return new StructuredEncryptionConfig(this); diff --git a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredEncryptionException.java b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredEncryptionException.java index 280366d90..982a588de 100644 --- a/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredEncryptionException.java +++ b/DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredEncryptionException.java @@ -6,6 +6,7 @@ import java.util.Objects; public class StructuredEncryptionException extends RuntimeException { + protected StructuredEncryptionException(BuilderImpl builder) { super(messageFromBuilder(builder), builder.cause()); } @@ -67,12 +68,12 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected String message; protected Throwable cause; - protected BuilderImpl() { - } + protected BuilderImpl() {} protected BuilderImpl(StructuredEncryptionException model) { this.message = model.message(); @@ -98,8 +99,10 @@ public Throwable cause() { } public StructuredEncryptionException build() { - if (Objects.isNull(this.message())) { - throw new IllegalArgumentException("Missing value for required field `message`"); + if (Objects.isNull(this.message())) { + throw new IllegalArgumentException( + "Missing value for required field `message`" + ); } return new StructuredEncryptionException(this); } diff --git a/DynamoDbEncryption/runtimes/net/DynamoDbEncryption.csproj b/DynamoDbEncryption/runtimes/net/DynamoDbEncryption.csproj index 255456b5b..816a6d5a3 100644 --- a/DynamoDbEncryption/runtimes/net/DynamoDbEncryption.csproj +++ b/DynamoDbEncryption/runtimes/net/DynamoDbEncryption.csproj @@ -31,6 +31,7 @@ CS0105,CS0618 + diff --git a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/BeaconVersion.cs b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/BeaconVersion.cs index 601934cad..d278e508a 100644 --- a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/BeaconVersion.cs +++ b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/BeaconVersion.cs @@ -93,7 +93,38 @@ public void Validate() if (!IsSetKeyStore()) throw new System.ArgumentException("Missing value for required property 'KeyStore'"); if (!IsSetKeySource()) throw new System.ArgumentException("Missing value for required property 'KeySource'"); if (!IsSetStandardBeacons()) throw new System.ArgumentException("Missing value for required property 'StandardBeacons'"); - + if (IsSetCompoundBeacons()) + { + if (CompoundBeacons.Count < 1) + { + throw new System.ArgumentException( + String.Format("Member CompoundBeacons of structure BeaconVersion has List type CompoundBeaconList which has a minimum length of 1 but was given a value with length {0}.", CompoundBeacons.Count)); + } + } + if (IsSetVirtualFields()) + { + if (VirtualFields.Count < 1) + { + throw new System.ArgumentException( + String.Format("Member VirtualFields of structure BeaconVersion has List type VirtualFieldList which has a minimum length of 1 but was given a value with length {0}.", VirtualFields.Count)); + } + } + if (IsSetEncryptedParts()) + { + if (EncryptedParts.Count < 1) + { + throw new System.ArgumentException( + String.Format("Member EncryptedParts of structure BeaconVersion has List type EncryptedPartsList which has a minimum length of 1 but was given a value with length {0}.", EncryptedParts.Count)); + } + } + if (IsSetSignedParts()) + { + if (SignedParts.Count < 1) + { + throw new System.ArgumentException( + String.Format("Member SignedParts of structure BeaconVersion has List type SignedPartsList which has a minimum length of 1 but was given a value with length {0}.", SignedParts.Count)); + } + } } } } diff --git a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/CompoundBeacon.cs b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/CompoundBeacon.cs index df0fad2be..554df95f5 100644 --- a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/CompoundBeacon.cs +++ b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/CompoundBeacon.cs @@ -61,7 +61,30 @@ public void Validate() { if (!IsSetName()) throw new System.ArgumentException("Missing value for required property 'Name'"); if (!IsSetSplit()) throw new System.ArgumentException("Missing value for required property 'Split'"); - + if (IsSetEncrypted()) + { + if (Encrypted.Count < 1) + { + throw new System.ArgumentException( + String.Format("Member Encrypted of structure CompoundBeacon has List type EncryptedPartsList which has a minimum length of 1 but was given a value with length {0}.", Encrypted.Count)); + } + } + if (IsSetSigned()) + { + if (Signed.Count < 1) + { + throw new System.ArgumentException( + String.Format("Member Signed of structure CompoundBeacon has List type SignedPartsList which has a minimum length of 1 but was given a value with length {0}.", Signed.Count)); + } + } + if (IsSetConstructors()) + { + if (Constructors.Count < 1) + { + throw new System.ArgumentException( + String.Format("Member Constructors of structure CompoundBeacon has List type ConstructorList which has a minimum length of 1 but was given a value with length {0}.", Constructors.Count)); + } + } } } } diff --git a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/SignedPart.cs b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/SignedPart.cs index 53194d163..58d740ad5 100644 --- a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/SignedPart.cs +++ b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/SignedPart.cs @@ -41,7 +41,14 @@ public void Validate() { if (!IsSetName()) throw new System.ArgumentException("Missing value for required property 'Name'"); if (!IsSetPrefix()) throw new System.ArgumentException("Missing value for required property 'Prefix'"); - + if (IsSetLoc()) + { + if (Loc.Length < 1) + { + throw new System.ArgumentException( + String.Format("Member Loc of structure SignedPart has type TerminalLocation which has a minimum length of 1 but was given the value '{0}' which has length {1}.", Loc, Loc.Length)); + } + } } } } diff --git a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/StandardBeacon.cs b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/StandardBeacon.cs index 97c9ee75b..b6a8b9c1c 100644 --- a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/StandardBeacon.cs +++ b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/StandardBeacon.cs @@ -51,7 +51,14 @@ public void Validate() { if (!IsSetName()) throw new System.ArgumentException("Missing value for required property 'Name'"); if (!IsSetLength()) throw new System.ArgumentException("Missing value for required property 'Length'"); - + if (IsSetLoc()) + { + if (Loc.Length < 1) + { + throw new System.ArgumentException( + String.Format("Member Loc of structure StandardBeacon has type TerminalLocation which has a minimum length of 1 but was given the value '{0}' which has length {1}.", Loc, Loc.Length)); + } + } } } } diff --git a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/TypeConversion.cs b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/TypeConversion.cs index 439bc499c..ff93147e2 100644 --- a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/TypeConversion.cs +++ b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/TypeConversion.cs @@ -61,7 +61,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconKeySource FromDafn } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IBeaconKeySource ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_BeaconKeySource(AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconKeySource value) { - if (value.IsSetSingle()) + value.Validate(); if (value.IsSetSingle()) { return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconKeySource.create_single(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_BeaconKeySource__M6_single(value.Single)); } @@ -98,7 +98,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconStyle FromDafny_N3 } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IBeaconStyle ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle(AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconStyle value) { - if (value.IsSetPartOnly()) + value.Validate(); if (value.IsSetPartOnly()) { return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconStyle.create_partOnly(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M8_partOnly(value.PartOnly)); } @@ -122,6 +122,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.CreateDynamoDbEncryption } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ICreateDynamoDbEncryptionBranchKeyIdSupplierInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S48_CreateDynamoDbEncryptionBranchKeyIdSupplierInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.CreateDynamoDbEncryptionBranchKeyIdSupplierInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CreateDynamoDbEncryptionBranchKeyIdSupplierInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S48_CreateDynamoDbEncryptionBranchKeyIdSupplierInput__M25_ddbKeyBranchKeyIdSupplier(value.DdbKeyBranchKeyIdSupplier)); } @@ -131,6 +132,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.CreateDynamoDbEncryption } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ICreateDynamoDbEncryptionBranchKeyIdSupplierOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S49_CreateDynamoDbEncryptionBranchKeyIdSupplierOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S49_CreateDynamoDbEncryptionBranchKeyIdSupplierOutput__M19_branchKeyIdSupplier(value.BranchKeyIdSupplier)); } @@ -140,6 +142,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbEncryptionConfig } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IDynamoDbEncryptionConfig ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S24_DynamoDbEncryptionConfig(AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbEncryptionConfig value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbEncryptionConfig(); } @@ -162,6 +165,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetBranchKeyIdFromDdbKey } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetBranchKeyIdFromDdbKeyInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S29_GetBranchKeyIdFromDdbKeyInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetBranchKeyIdFromDdbKeyInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S29_GetBranchKeyIdFromDdbKeyInput__M6_ddbKey(value.DdbKey)); } @@ -171,6 +175,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetBranchKeyIdFromDdbKey } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetBranchKeyIdFromDdbKeyOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S30_GetBranchKeyIdFromDdbKeyOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetBranchKeyIdFromDdbKeyOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S30_GetBranchKeyIdFromDdbKeyOutput__M11_branchKeyId(value.BranchKeyId)); } @@ -249,7 +254,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.VirtualTransform FromDaf } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IVirtualTransform ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform(AWS.Cryptography.DbEncryptionSDK.DynamoDb.VirtualTransform value) { - if (value.IsSetUpper()) + value.Validate(); if (value.IsSetUpper()) { return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualTransform.create_upper(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M5_upper(value.Upper)); } @@ -442,6 +447,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.SingleKeyStore FromDafny } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ISingleKeyStore ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore(AWS.Cryptography.DbEncryptionSDK.DynamoDb.SingleKeyStore value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SingleKeyStore(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore__M5_keyId(value.KeyId), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore__M8_cacheTTL(value.CacheTTL)); } @@ -453,6 +459,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.MultiKeyStore FromDafny_ } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IMultiKeyStore ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore(AWS.Cryptography.DbEncryptionSDK.DynamoDb.MultiKeyStore value) { + value.Validate(); AWS.Cryptography.MaterialProviders.CacheType var_cache = value.IsSetCache() ? value.Cache : (AWS.Cryptography.MaterialProviders.CacheType)null; return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.MultiKeyStore(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M12_keyFieldName(value.KeyFieldName), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M8_cacheTTL(value.CacheTTL), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M5_cache(var_cache)); } @@ -462,6 +469,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.PartOnly FromDafny_N3_aw } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IPartOnly ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S8_PartOnly(AWS.Cryptography.DbEncryptionSDK.DynamoDb.PartOnly value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.PartOnly(); } @@ -471,6 +479,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Shared FromDafny_N3_aws_ } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IShared ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Shared(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Shared value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Shared(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Shared__M5_other(value.Other)); } @@ -480,6 +489,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.AsSet FromDafny_N3_aws__ } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IAsSet ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_AsSet(AWS.Cryptography.DbEncryptionSDK.DynamoDb.AsSet value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.AsSet(); } @@ -489,6 +499,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.SharedSet FromDafny_N3_a } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ISharedSet ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_SharedSet(AWS.Cryptography.DbEncryptionSDK.DynamoDb.SharedSet value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SharedSet(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_SharedSet__M5_other(value.Other)); } @@ -547,6 +558,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Upper FromDafny_N3_aws__ } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IUpper ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_Upper(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Upper value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Upper(); } @@ -556,6 +568,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Lower FromDafny_N3_aws__ } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ILower ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_Lower(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Lower value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Lower(); } @@ -565,6 +578,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Insert FromDafny_N3_aws_ } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IInsert ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Insert(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Insert value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Insert(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Insert__M7_literal(value.Literal)); } @@ -574,6 +588,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetPrefix FromDafny_N3_a } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetPrefix ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetPrefix(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetPrefix value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetPrefix(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetPrefix__M6_length(value.Length)); } @@ -583,6 +598,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSuffix FromDafny_N3_a } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSuffix ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetSuffix(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSuffix value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSuffix(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetSuffix__M6_length(value.Length)); } @@ -593,6 +609,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSubstring FromDafny_N } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSubstring ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSubstring value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSubstring(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring__M3_low(value.Low), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring__M4_high(value.High)); } @@ -603,6 +620,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegment FromDafny_N3_ } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSegment ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegment value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSegment(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment__M5_split(value.Split), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment__M5_index(value.Index)); } @@ -614,6 +632,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegments FromDafny_N3 } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSegments ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegments value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSegments(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M5_split(value.Split), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M3_low(value.Low), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M4_high(value.High)); } @@ -809,7 +828,7 @@ public static AWS.Cryptography.MaterialProviders.CacheType FromDafny_N3_aws__N12 } public static software.amazon.cryptography.materialproviders.internaldafny.types._ICacheType ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType(AWS.Cryptography.MaterialProviders.CacheType value) { - if (value.IsSetDefault()) + value.Validate(); if (value.IsSetDefault()) { return software.amazon.cryptography.materialproviders.internaldafny.types.CacheType.create_Default(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M7_Default(value.Default)); } @@ -1072,6 +1091,7 @@ public static AWS.Cryptography.MaterialProviders.DefaultCache FromDafny_N3_aws__ } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDefaultCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache(AWS.Cryptography.MaterialProviders.DefaultCache value) { + value.Validate(); return new software.amazon.cryptography.materialproviders.internaldafny.types.DefaultCache(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache__M13_entryCapacity(value.EntryCapacity)); } @@ -1081,6 +1101,7 @@ public static AWS.Cryptography.MaterialProviders.NoCache FromDafny_N3_aws__N12_c } public static software.amazon.cryptography.materialproviders.internaldafny.types._INoCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_NoCache(AWS.Cryptography.MaterialProviders.NoCache value) { + value.Validate(); return new software.amazon.cryptography.materialproviders.internaldafny.types.NoCache(); } @@ -1091,6 +1112,7 @@ public static AWS.Cryptography.MaterialProviders.SingleThreadedCache FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._ISingleThreadedCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache(AWS.Cryptography.MaterialProviders.SingleThreadedCache value) { + value.Validate(); int? var_entryPruningTailSize = value.IsSetEntryPruningTailSize() ? value.EntryPruningTailSize : (int?)null; return new software.amazon.cryptography.materialproviders.internaldafny.types.SingleThreadedCache(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M13_entryCapacity(value.EntryCapacity), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M20_entryPruningTailSize(var_entryPruningTailSize)); } @@ -1101,6 +1123,7 @@ public static AWS.Cryptography.MaterialProviders.MultiThreadedCache FromDafny_N3 } public static software.amazon.cryptography.materialproviders.internaldafny.types._IMultiThreadedCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache(AWS.Cryptography.MaterialProviders.MultiThreadedCache value) { + value.Validate(); int? var_entryPruningTailSize = value.IsSetEntryPruningTailSize() ? value.EntryPruningTailSize : (int?)null; return new software.amazon.cryptography.materialproviders.internaldafny.types.MultiThreadedCache(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M13_entryCapacity(value.EntryCapacity), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M20_entryPruningTailSize(var_entryPruningTailSize)); } @@ -1116,6 +1139,7 @@ public static AWS.Cryptography.MaterialProviders.StormTrackingCache FromDafny_N3 } public static software.amazon.cryptography.materialproviders.internaldafny.types._IStormTrackingCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache(AWS.Cryptography.MaterialProviders.StormTrackingCache value) { + value.Validate(); int? var_entryPruningTailSize = value.IsSetEntryPruningTailSize() ? value.EntryPruningTailSize : (int?)null; return new software.amazon.cryptography.materialproviders.internaldafny.types.StormTrackingCache(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_entryCapacity(value.EntryCapacity), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M20_entryPruningTailSize(var_entryPruningTailSize), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_gracePeriod(value.GracePeriod), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_graceInterval(value.GraceInterval), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M6_fanOut(value.FanOut), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_inFlightTTL(value.InFlightTTL), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M10_sleepMilli(value.SleepMilli)); } @@ -1141,7 +1165,12 @@ public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N8_dynamodb } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BinaryAttributeValue(System.IO.MemoryStream value) { + if (value.ToArray().Length == 0 && value.Length > 0) + { + throw new System.ArgumentException("Fatal Error: MemoryStream instance not backed by an array!"); + } return Dafny.Sequence.FromArray(value.ToArray()); + } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_StringSetAttributeValue(Dafny.ISequence> value) { @@ -1365,14 +1394,14 @@ public static System.Exception FromDafny_CommonError(software.amazon.cryptograph return AWS.Cryptography.MaterialProviders.TypeConversion.FromDafny_CommonError( dafnyVal._AwsCryptographyMaterialProviders ); - case software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_ComAmazonawsDynamodb dafnyVal: - return Com.Amazonaws.Dynamodb.TypeConversion.FromDafny_CommonError( - dafnyVal._ComAmazonawsDynamodb - ); case software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_AwsCryptographyPrimitives dafnyVal: return AWS.Cryptography.Primitives.TypeConversion.FromDafny_CommonError( dafnyVal._AwsCryptographyPrimitives ); + case software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_ComAmazonawsDynamodb dafnyVal: + return Com.Amazonaws.Dynamodb.TypeConversion.FromDafny_CommonError( + dafnyVal._ComAmazonawsDynamodb + ); case software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_DynamoDbEncryptionException dafnyVal: return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S27_DynamoDbEncryptionException(dafnyVal); case software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_CollectionOfErrors dafnyVal: diff --git a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/VirtualPart.cs b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/VirtualPart.cs index 1e7619b65..fb501d707 100644 --- a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/VirtualPart.cs +++ b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/VirtualPart.cs @@ -30,7 +30,14 @@ public bool IsSetTrans() public void Validate() { if (!IsSetLoc()) throw new System.ArgumentException("Missing value for required property 'Loc'"); - + if (IsSetTrans()) + { + if (Trans.Count < 1) + { + throw new System.ArgumentException( + String.Format("Member Trans of structure VirtualPart has List type VirtualTransformList which has a minimum length of 1 but was given a value with length {0}.", Trans.Count)); + } + } } } } diff --git a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryptionTransforms/ResolveAttributesInput.cs b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryptionTransforms/ResolveAttributesInput.cs index d0c85fdb9..f04e9ab99 100644 --- a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryptionTransforms/ResolveAttributesInput.cs +++ b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryptionTransforms/ResolveAttributesInput.cs @@ -41,7 +41,14 @@ public void Validate() { if (!IsSetTableName()) throw new System.ArgumentException("Missing value for required property 'TableName'"); if (!IsSetItem()) throw new System.ArgumentException("Missing value for required property 'Item'"); - + if (IsSetVersion()) + { + if (Version < 1) + { + throw new System.ArgumentException( + String.Format("Member Version of structure ResolveAttributesInput has type VersionNumber which has a minimum of 1 but was given the value {0}.", Version)); + } + } } } } diff --git a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryptionTransforms/TypeConversion.cs b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryptionTransforms/TypeConversion.cs index 396852a23..36226d34f 100644 --- a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryptionTransforms/TypeConversion.cs +++ b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryptionTransforms/TypeConversion.cs @@ -13,6 +13,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbTablesEncryption } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IDynamoDbTablesEncryptionConfig ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S30_DynamoDbTablesEncryptionConfig(AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbTablesEncryptionConfig value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbTablesEncryptionConfig(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S30_DynamoDbTablesEncryptionConfig__M22_tableEncryptionConfigs(value.TableEncryptionConfigs)); } @@ -22,6 +23,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchExecuteS } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IBatchExecuteStatementInputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S40_BatchExecuteStatementInputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchExecuteStatementInputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementInputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S40_BatchExecuteStatementInputTransformInput__M8_sdkInput(value.SdkInput)); } @@ -31,6 +33,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchExecuteS } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IBatchExecuteStatementInputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S41_BatchExecuteStatementInputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchExecuteStatementInputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementInputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S41_BatchExecuteStatementInputTransformOutput__M16_transformedInput(value.TransformedInput)); } @@ -41,6 +44,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchExecuteS } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IBatchExecuteStatementOutputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S41_BatchExecuteStatementOutputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchExecuteStatementOutputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementOutputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S41_BatchExecuteStatementOutputTransformInput__M9_sdkOutput(value.SdkOutput), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S41_BatchExecuteStatementOutputTransformInput__M13_originalInput(value.OriginalInput)); } @@ -50,6 +54,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchExecuteS } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IBatchExecuteStatementOutputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S42_BatchExecuteStatementOutputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchExecuteStatementOutputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchExecuteStatementOutputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S42_BatchExecuteStatementOutputTransformOutput__M17_transformedOutput(value.TransformedOutput)); } @@ -59,6 +64,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchGetItemI } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IBatchGetItemInputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S31_BatchGetItemInputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchGetItemInputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemInputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S31_BatchGetItemInputTransformInput__M8_sdkInput(value.SdkInput)); } @@ -68,6 +74,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchGetItemI } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IBatchGetItemInputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S32_BatchGetItemInputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchGetItemInputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemInputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S32_BatchGetItemInputTransformOutput__M16_transformedInput(value.TransformedInput)); } @@ -78,6 +85,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchGetItemO } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IBatchGetItemOutputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S32_BatchGetItemOutputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchGetItemOutputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemOutputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S32_BatchGetItemOutputTransformInput__M9_sdkOutput(value.SdkOutput), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S32_BatchGetItemOutputTransformInput__M13_originalInput(value.OriginalInput)); } @@ -87,6 +95,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchGetItemO } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IBatchGetItemOutputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S33_BatchGetItemOutputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchGetItemOutputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchGetItemOutputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S33_BatchGetItemOutputTransformOutput__M17_transformedOutput(value.TransformedOutput)); } @@ -96,6 +105,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchWriteIte } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IBatchWriteItemInputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S33_BatchWriteItemInputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchWriteItemInputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemInputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S33_BatchWriteItemInputTransformInput__M8_sdkInput(value.SdkInput)); } @@ -105,6 +115,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchWriteIte } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IBatchWriteItemInputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S34_BatchWriteItemInputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchWriteItemInputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemInputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S34_BatchWriteItemInputTransformOutput__M16_transformedInput(value.TransformedInput)); } @@ -115,6 +126,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchWriteIte } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IBatchWriteItemOutputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S34_BatchWriteItemOutputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchWriteItemOutputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemOutputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S34_BatchWriteItemOutputTransformInput__M9_sdkOutput(value.SdkOutput), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S34_BatchWriteItemOutputTransformInput__M13_originalInput(value.OriginalInput)); } @@ -124,6 +136,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchWriteIte } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IBatchWriteItemOutputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S35_BatchWriteItemOutputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.BatchWriteItemOutputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.BatchWriteItemOutputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S35_BatchWriteItemOutputTransformOutput__M17_transformedOutput(value.TransformedOutput)); } @@ -133,6 +146,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.DeleteItemInp } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IDeleteItemInputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S29_DeleteItemInputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.DeleteItemInputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemInputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S29_DeleteItemInputTransformInput__M8_sdkInput(value.SdkInput)); } @@ -142,6 +156,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.DeleteItemInp } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IDeleteItemInputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S30_DeleteItemInputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.DeleteItemInputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemInputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S30_DeleteItemInputTransformOutput__M16_transformedInput(value.TransformedInput)); } @@ -152,6 +167,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.DeleteItemOut } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IDeleteItemOutputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S30_DeleteItemOutputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.DeleteItemOutputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemOutputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S30_DeleteItemOutputTransformInput__M9_sdkOutput(value.SdkOutput), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S30_DeleteItemOutputTransformInput__M13_originalInput(value.OriginalInput)); } @@ -161,6 +177,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.DeleteItemOut } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IDeleteItemOutputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S31_DeleteItemOutputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.DeleteItemOutputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.DeleteItemOutputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S31_DeleteItemOutputTransformOutput__M17_transformedOutput(value.TransformedOutput)); } @@ -183,6 +200,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ExecuteStatem } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IExecuteStatementInputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S35_ExecuteStatementInputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ExecuteStatementInputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementInputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S35_ExecuteStatementInputTransformInput__M8_sdkInput(value.SdkInput)); } @@ -192,6 +210,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ExecuteStatem } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IExecuteStatementInputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S36_ExecuteStatementInputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ExecuteStatementInputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementInputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S36_ExecuteStatementInputTransformOutput__M16_transformedInput(value.TransformedInput)); } @@ -202,6 +221,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ExecuteStatem } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IExecuteStatementOutputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S36_ExecuteStatementOutputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ExecuteStatementOutputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementOutputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S36_ExecuteStatementOutputTransformInput__M9_sdkOutput(value.SdkOutput), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S36_ExecuteStatementOutputTransformInput__M13_originalInput(value.OriginalInput)); } @@ -211,6 +231,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ExecuteStatem } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IExecuteStatementOutputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S37_ExecuteStatementOutputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ExecuteStatementOutputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteStatementOutputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S37_ExecuteStatementOutputTransformOutput__M17_transformedOutput(value.TransformedOutput)); } @@ -220,6 +241,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ExecuteTransa } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IExecuteTransactionInputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S37_ExecuteTransactionInputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ExecuteTransactionInputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionInputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S37_ExecuteTransactionInputTransformInput__M8_sdkInput(value.SdkInput)); } @@ -229,6 +251,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ExecuteTransa } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IExecuteTransactionInputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S38_ExecuteTransactionInputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ExecuteTransactionInputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionInputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S38_ExecuteTransactionInputTransformOutput__M16_transformedInput(value.TransformedInput)); } @@ -239,6 +262,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ExecuteTransa } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IExecuteTransactionOutputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S38_ExecuteTransactionOutputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ExecuteTransactionOutputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionOutputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S38_ExecuteTransactionOutputTransformInput__M9_sdkOutput(value.SdkOutput), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S38_ExecuteTransactionOutputTransformInput__M13_originalInput(value.OriginalInput)); } @@ -248,6 +272,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ExecuteTransa } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IExecuteTransactionOutputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S39_ExecuteTransactionOutputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ExecuteTransactionOutputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ExecuteTransactionOutputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S39_ExecuteTransactionOutputTransformOutput__M17_transformedOutput(value.TransformedOutput)); } @@ -257,6 +282,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.GetItemInputT } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IGetItemInputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S26_GetItemInputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.GetItemInputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemInputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S26_GetItemInputTransformInput__M8_sdkInput(value.SdkInput)); } @@ -266,6 +292,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.GetItemInputT } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IGetItemInputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S27_GetItemInputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.GetItemInputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemInputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S27_GetItemInputTransformOutput__M16_transformedInput(value.TransformedInput)); } @@ -276,6 +303,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.GetItemOutput } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IGetItemOutputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S27_GetItemOutputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.GetItemOutputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemOutputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S27_GetItemOutputTransformInput__M9_sdkOutput(value.SdkOutput), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S27_GetItemOutputTransformInput__M13_originalInput(value.OriginalInput)); } @@ -285,6 +313,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.GetItemOutput } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IGetItemOutputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S28_GetItemOutputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.GetItemOutputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.GetItemOutputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S28_GetItemOutputTransformOutput__M17_transformedOutput(value.TransformedOutput)); } @@ -294,6 +323,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.PutItemInputT } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IPutItemInputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S26_PutItemInputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.PutItemInputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemInputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S26_PutItemInputTransformInput__M8_sdkInput(value.SdkInput)); } @@ -303,6 +333,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.PutItemInputT } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IPutItemInputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S27_PutItemInputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.PutItemInputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemInputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S27_PutItemInputTransformOutput__M16_transformedInput(value.TransformedInput)); } @@ -313,6 +344,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.PutItemOutput } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IPutItemOutputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S27_PutItemOutputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.PutItemOutputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemOutputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S27_PutItemOutputTransformInput__M9_sdkOutput(value.SdkOutput), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S27_PutItemOutputTransformInput__M13_originalInput(value.OriginalInput)); } @@ -322,6 +354,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.PutItemOutput } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IPutItemOutputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S28_PutItemOutputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.PutItemOutputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.PutItemOutputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S28_PutItemOutputTransformOutput__M17_transformedOutput(value.TransformedOutput)); } @@ -331,6 +364,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.QueryInputTra } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IQueryInputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S24_QueryInputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.QueryInputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryInputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S24_QueryInputTransformInput__M8_sdkInput(value.SdkInput)); } @@ -340,6 +374,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.QueryInputTra } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IQueryInputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S25_QueryInputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.QueryInputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryInputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S25_QueryInputTransformOutput__M16_transformedInput(value.TransformedInput)); } @@ -350,6 +385,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.QueryOutputTr } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IQueryOutputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S25_QueryOutputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.QueryOutputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryOutputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S25_QueryOutputTransformInput__M9_sdkOutput(value.SdkOutput), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S25_QueryOutputTransformInput__M13_originalInput(value.OriginalInput)); } @@ -359,6 +395,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.QueryOutputTr } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IQueryOutputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S26_QueryOutputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.QueryOutputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.QueryOutputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S26_QueryOutputTransformOutput__M17_transformedOutput(value.TransformedOutput)); } @@ -370,6 +407,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ResolveAttrib } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IResolveAttributesInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S22_ResolveAttributesInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ResolveAttributesInput value) { + value.Validate(); int? var_version = value.IsSetVersion() ? value.Version : (int?)null; return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ResolveAttributesInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S22_ResolveAttributesInput__M9_TableName(value.TableName), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S22_ResolveAttributesInput__M4_Item(value.Item), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S22_ResolveAttributesInput__M7_Version(var_version)); } @@ -380,6 +418,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ResolveAttrib } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IResolveAttributesOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S23_ResolveAttributesOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ResolveAttributesOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ResolveAttributesOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S23_ResolveAttributesOutput__M13_VirtualFields(value.VirtualFields), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S23_ResolveAttributesOutput__M15_CompoundBeacons(value.CompoundBeacons)); } @@ -389,6 +428,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ScanInputTran } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IScanInputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S23_ScanInputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ScanInputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanInputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S23_ScanInputTransformInput__M8_sdkInput(value.SdkInput)); } @@ -398,6 +438,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ScanInputTran } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IScanInputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S24_ScanInputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ScanInputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanInputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S24_ScanInputTransformOutput__M16_transformedInput(value.TransformedInput)); } @@ -408,6 +449,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ScanOutputTra } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IScanOutputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S24_ScanOutputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ScanOutputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanOutputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S24_ScanOutputTransformInput__M9_sdkOutput(value.SdkOutput), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S24_ScanOutputTransformInput__M13_originalInput(value.OriginalInput)); } @@ -417,6 +459,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ScanOutputTra } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IScanOutputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S25_ScanOutputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.ScanOutputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.ScanOutputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S25_ScanOutputTransformOutput__M17_transformedOutput(value.TransformedOutput)); } @@ -426,6 +469,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TransactGetIt } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._ITransactGetItemsInputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S35_TransactGetItemsInputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TransactGetItemsInputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsInputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S35_TransactGetItemsInputTransformInput__M8_sdkInput(value.SdkInput)); } @@ -435,6 +479,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TransactGetIt } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._ITransactGetItemsInputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S36_TransactGetItemsInputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TransactGetItemsInputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsInputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S36_TransactGetItemsInputTransformOutput__M16_transformedInput(value.TransformedInput)); } @@ -445,6 +490,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TransactGetIt } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._ITransactGetItemsOutputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S36_TransactGetItemsOutputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TransactGetItemsOutputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsOutputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S36_TransactGetItemsOutputTransformInput__M9_sdkOutput(value.SdkOutput), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S36_TransactGetItemsOutputTransformInput__M13_originalInput(value.OriginalInput)); } @@ -454,6 +500,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TransactGetIt } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._ITransactGetItemsOutputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S37_TransactGetItemsOutputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TransactGetItemsOutputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactGetItemsOutputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S37_TransactGetItemsOutputTransformOutput__M17_transformedOutput(value.TransformedOutput)); } @@ -463,6 +510,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TransactWrite } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._ITransactWriteItemsInputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S37_TransactWriteItemsInputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TransactWriteItemsInputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsInputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S37_TransactWriteItemsInputTransformInput__M8_sdkInput(value.SdkInput)); } @@ -472,6 +520,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TransactWrite } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._ITransactWriteItemsInputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S38_TransactWriteItemsInputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TransactWriteItemsInputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsInputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S38_TransactWriteItemsInputTransformOutput__M16_transformedInput(value.TransformedInput)); } @@ -482,6 +531,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TransactWrite } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._ITransactWriteItemsOutputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S38_TransactWriteItemsOutputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TransactWriteItemsOutputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsOutputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S38_TransactWriteItemsOutputTransformInput__M9_sdkOutput(value.SdkOutput), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S38_TransactWriteItemsOutputTransformInput__M13_originalInput(value.OriginalInput)); } @@ -491,6 +541,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TransactWrite } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._ITransactWriteItemsOutputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S39_TransactWriteItemsOutputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TransactWriteItemsOutputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.TransactWriteItemsOutputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S39_TransactWriteItemsOutputTransformOutput__M17_transformedOutput(value.TransformedOutput)); } @@ -500,6 +551,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.UpdateItemInp } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IUpdateItemInputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S29_UpdateItemInputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.UpdateItemInputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemInputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S29_UpdateItemInputTransformInput__M8_sdkInput(value.SdkInput)); } @@ -509,6 +561,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.UpdateItemInp } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IUpdateItemInputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S30_UpdateItemInputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.UpdateItemInputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemInputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S30_UpdateItemInputTransformOutput__M16_transformedInput(value.TransformedInput)); } @@ -519,6 +572,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.UpdateItemOut } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IUpdateItemOutputTransformInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S30_UpdateItemOutputTransformInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.UpdateItemOutputTransformInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemOutputTransformInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S30_UpdateItemOutputTransformInput__M9_sdkOutput(value.SdkOutput), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S30_UpdateItemOutputTransformInput__M13_originalInput(value.OriginalInput)); } @@ -528,6 +582,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.UpdateItemOut } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types._IUpdateItemOutputTransformOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S31_UpdateItemOutputTransformOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.UpdateItemOutputTransformOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.UpdateItemOutputTransformOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S31_UpdateItemOutputTransformOutput__M17_transformedOutput(value.TransformedOutput)); } @@ -1124,6 +1179,7 @@ public static Amazon.DynamoDBv2.Model.BatchExecuteStatementRequest FromDafny_N3_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchExecuteStatementInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_BatchExecuteStatementInput(Amazon.DynamoDBv2.Model.BatchExecuteStatementRequest value) { + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity != null ? value.ReturnConsumedCapacity : (Amazon.DynamoDBv2.ReturnConsumedCapacity)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BatchExecuteStatementInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_BatchExecuteStatementInput__M10_Statements(value.Statements), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_BatchExecuteStatementInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity)); } @@ -1134,6 +1190,7 @@ public static Amazon.DynamoDBv2.Model.BatchExecuteStatementResponse FromDafny_N3 } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchExecuteStatementOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_BatchExecuteStatementOutput(Amazon.DynamoDBv2.Model.BatchExecuteStatementResponse value) { + System.Collections.Generic.List var_responses = value.Responses != null ? value.Responses : (System.Collections.Generic.List)null; System.Collections.Generic.List var_consumedCapacity = value.ConsumedCapacity != null ? value.ConsumedCapacity : (System.Collections.Generic.List)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BatchExecuteStatementOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_BatchExecuteStatementOutput__M9_Responses(var_responses), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_BatchExecuteStatementOutput__M16_ConsumedCapacity(var_consumedCapacity)); @@ -1145,6 +1202,7 @@ public static Amazon.DynamoDBv2.Model.BatchGetItemRequest FromDafny_N3_com__N9_a } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchGetItemInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_BatchGetItemInput(Amazon.DynamoDBv2.Model.BatchGetItemRequest value) { + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity != null ? value.ReturnConsumedCapacity : (Amazon.DynamoDBv2.ReturnConsumedCapacity)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BatchGetItemInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_BatchGetItemInput__M12_RequestItems(value.RequestItems), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_BatchGetItemInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity)); } @@ -1156,6 +1214,7 @@ public static Amazon.DynamoDBv2.Model.BatchGetItemResponse FromDafny_N3_com__N9_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchGetItemOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_BatchGetItemOutput(Amazon.DynamoDBv2.Model.BatchGetItemResponse value) { + System.Collections.Generic.Dictionary>> var_responses = value.Responses != null ? value.Responses : (System.Collections.Generic.Dictionary>>)null; System.Collections.Generic.Dictionary var_unprocessedKeys = value.UnprocessedKeys != null ? value.UnprocessedKeys : (System.Collections.Generic.Dictionary)null; System.Collections.Generic.List var_consumedCapacity = value.ConsumedCapacity != null ? value.ConsumedCapacity : (System.Collections.Generic.List)null; @@ -1169,6 +1228,7 @@ public static Amazon.DynamoDBv2.Model.BatchWriteItemRequest FromDafny_N3_com__N9 } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchWriteItemInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchWriteItemInput(Amazon.DynamoDBv2.Model.BatchWriteItemRequest value) { + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity != null ? value.ReturnConsumedCapacity : (Amazon.DynamoDBv2.ReturnConsumedCapacity)null; Amazon.DynamoDBv2.ReturnItemCollectionMetrics var_returnItemCollectionMetrics = value.ReturnItemCollectionMetrics != null ? value.ReturnItemCollectionMetrics : (Amazon.DynamoDBv2.ReturnItemCollectionMetrics)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BatchWriteItemInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchWriteItemInput__M12_RequestItems(value.RequestItems), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchWriteItemInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchWriteItemInput__M27_ReturnItemCollectionMetrics(var_returnItemCollectionMetrics)); @@ -1181,6 +1241,7 @@ public static Amazon.DynamoDBv2.Model.BatchWriteItemResponse FromDafny_N3_com__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchWriteItemOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BatchWriteItemOutput(Amazon.DynamoDBv2.Model.BatchWriteItemResponse value) { + System.Collections.Generic.Dictionary> var_unprocessedItems = value.UnprocessedItems != null ? value.UnprocessedItems : (System.Collections.Generic.Dictionary>)null; System.Collections.Generic.Dictionary> var_itemCollectionMetrics = value.ItemCollectionMetrics != null ? value.ItemCollectionMetrics : (System.Collections.Generic.Dictionary>)null; System.Collections.Generic.List var_consumedCapacity = value.ConsumedCapacity != null ? value.ConsumedCapacity : (System.Collections.Generic.List)null; @@ -1201,6 +1262,7 @@ public static Amazon.DynamoDBv2.Model.DeleteItemRequest FromDafny_N3_com__N9_ama } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteItemInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItemInput(Amazon.DynamoDBv2.Model.DeleteItemRequest value) { + System.Collections.Generic.Dictionary var_expected = value.Expected != null ? value.Expected : (System.Collections.Generic.Dictionary)null; Amazon.DynamoDBv2.ConditionalOperator var_conditionalOperator = value.ConditionalOperator != null ? value.ConditionalOperator : (Amazon.DynamoDBv2.ConditionalOperator)null; Amazon.DynamoDBv2.ReturnValue var_returnValues = value.ReturnValues != null ? value.ReturnValues : (Amazon.DynamoDBv2.ReturnValue)null; @@ -1219,6 +1281,7 @@ public static Amazon.DynamoDBv2.Model.DeleteItemResponse FromDafny_N3_com__N9_am } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteItemOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_DeleteItemOutput(Amazon.DynamoDBv2.Model.DeleteItemResponse value) { + System.Collections.Generic.Dictionary var_attributes = value.Attributes != null ? value.Attributes : (System.Collections.Generic.Dictionary)null; Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = value.ConsumedCapacity != null ? value.ConsumedCapacity : (Amazon.DynamoDBv2.Model.ConsumedCapacity)null; Amazon.DynamoDBv2.Model.ItemCollectionMetrics var_itemCollectionMetrics = value.ItemCollectionMetrics != null ? value.ItemCollectionMetrics : (Amazon.DynamoDBv2.Model.ItemCollectionMetrics)null; @@ -1243,6 +1306,7 @@ public static Amazon.DynamoDBv2.Model.ExecuteStatementRequest FromDafny_N3_com__ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IExecuteStatementInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ExecuteStatementInput(Amazon.DynamoDBv2.Model.ExecuteStatementRequest value) { + System.Collections.Generic.List var_parameters = value.Parameters != null ? value.Parameters : (System.Collections.Generic.List)null; bool? var_consistentRead = value.ConsistentRead != null ? value.ConsistentRead : (bool?)null; string var_nextToken = value.NextToken != null ? value.NextToken : (string)null; @@ -1259,6 +1323,7 @@ public static Amazon.DynamoDBv2.Model.ExecuteStatementResponse FromDafny_N3_com_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IExecuteStatementOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ExecuteStatementOutput(Amazon.DynamoDBv2.Model.ExecuteStatementResponse value) { + System.Collections.Generic.List> var_items = value.Items != null ? value.Items : (System.Collections.Generic.List>)null; string var_nextToken = value.NextToken != null ? value.NextToken : (string)null; Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = value.ConsumedCapacity != null ? value.ConsumedCapacity : (Amazon.DynamoDBv2.Model.ConsumedCapacity)null; @@ -1273,6 +1338,7 @@ public static Amazon.DynamoDBv2.Model.ExecuteTransactionRequest FromDafny_N3_com } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IExecuteTransactionInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ExecuteTransactionInput(Amazon.DynamoDBv2.Model.ExecuteTransactionRequest value) { + string var_clientRequestToken = value.ClientRequestToken != null ? value.ClientRequestToken : (string)null; Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity != null ? value.ReturnConsumedCapacity : (Amazon.DynamoDBv2.ReturnConsumedCapacity)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ExecuteTransactionInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ExecuteTransactionInput__M18_TransactStatements(value.TransactStatements), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ExecuteTransactionInput__M18_ClientRequestToken(var_clientRequestToken), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ExecuteTransactionInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity)); @@ -1284,6 +1350,7 @@ public static Amazon.DynamoDBv2.Model.ExecuteTransactionResponse FromDafny_N3_co } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IExecuteTransactionOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ExecuteTransactionOutput(Amazon.DynamoDBv2.Model.ExecuteTransactionResponse value) { + System.Collections.Generic.List var_responses = value.Responses != null ? value.Responses : (System.Collections.Generic.List)null; System.Collections.Generic.List var_consumedCapacity = value.ConsumedCapacity != null ? value.ConsumedCapacity : (System.Collections.Generic.List)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ExecuteTransactionOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ExecuteTransactionOutput__M9_Responses(var_responses), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ExecuteTransactionOutput__M16_ConsumedCapacity(var_consumedCapacity)); @@ -1300,6 +1367,7 @@ public static Amazon.DynamoDBv2.Model.GetItemRequest FromDafny_N3_com__N9_amazon } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGetItemInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_GetItemInput(Amazon.DynamoDBv2.Model.GetItemRequest value) { + System.Collections.Generic.List var_attributesToGet = value.AttributesToGet != null ? value.AttributesToGet : (System.Collections.Generic.List)null; bool? var_consistentRead = value.ConsistentRead != null ? value.ConsistentRead : (bool?)null; Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity != null ? value.ReturnConsumedCapacity : (Amazon.DynamoDBv2.ReturnConsumedCapacity)null; @@ -1314,6 +1382,7 @@ public static Amazon.DynamoDBv2.Model.GetItemResponse FromDafny_N3_com__N9_amazo } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGetItemOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_GetItemOutput(Amazon.DynamoDBv2.Model.GetItemResponse value) { + System.Collections.Generic.Dictionary var_item = value.Item != null ? value.Item : (System.Collections.Generic.Dictionary)null; Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = value.ConsumedCapacity != null ? value.ConsumedCapacity : (Amazon.DynamoDBv2.Model.ConsumedCapacity)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.GetItemOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_GetItemOutput__M4_Item(var_item), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_GetItemOutput__M16_ConsumedCapacity(var_consumedCapacity)); @@ -1333,6 +1402,7 @@ public static Amazon.DynamoDBv2.Model.PutItemRequest FromDafny_N3_com__N9_amazon } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IPutItemInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_PutItemInput(Amazon.DynamoDBv2.Model.PutItemRequest value) { + System.Collections.Generic.Dictionary var_expected = value.Expected != null ? value.Expected : (System.Collections.Generic.Dictionary)null; Amazon.DynamoDBv2.ReturnValue var_returnValues = value.ReturnValues != null ? value.ReturnValues : (Amazon.DynamoDBv2.ReturnValue)null; Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity != null ? value.ReturnConsumedCapacity : (Amazon.DynamoDBv2.ReturnConsumedCapacity)null; @@ -1351,6 +1421,7 @@ public static Amazon.DynamoDBv2.Model.PutItemResponse FromDafny_N3_com__N9_amazo } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IPutItemOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_PutItemOutput(Amazon.DynamoDBv2.Model.PutItemResponse value) { + System.Collections.Generic.Dictionary var_attributes = value.Attributes != null ? value.Attributes : (System.Collections.Generic.Dictionary)null; Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = value.ConsumedCapacity != null ? value.ConsumedCapacity : (Amazon.DynamoDBv2.Model.ConsumedCapacity)null; Amazon.DynamoDBv2.Model.ItemCollectionMetrics var_itemCollectionMetrics = value.ItemCollectionMetrics != null ? value.ItemCollectionMetrics : (Amazon.DynamoDBv2.Model.ItemCollectionMetrics)null; @@ -1378,6 +1449,7 @@ public static Amazon.DynamoDBv2.Model.QueryRequest FromDafny_N3_com__N9_amazonaw } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IQueryInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput(Amazon.DynamoDBv2.Model.QueryRequest value) { + string var_indexName = value.IndexName != null ? value.IndexName : (string)null; Amazon.DynamoDBv2.Select var_select = value.Select != null ? value.Select : (Amazon.DynamoDBv2.Select)null; System.Collections.Generic.List var_attributesToGet = value.AttributesToGet != null ? value.AttributesToGet : (System.Collections.Generic.List)null; @@ -1406,6 +1478,7 @@ public static Amazon.DynamoDBv2.Model.QueryResponse FromDafny_N3_com__N9_amazona } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IQueryOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_QueryOutput(Amazon.DynamoDBv2.Model.QueryResponse value) { + System.Collections.Generic.List> var_items = value.Items != null ? value.Items : (System.Collections.Generic.List>)null; int? var_count = value.Count != null ? value.Count : (int?)null; int? var_scannedCount = value.ScannedCount != null ? value.ScannedCount : (int?)null; @@ -1470,6 +1543,7 @@ public static Amazon.DynamoDBv2.Model.ScanRequest FromDafny_N3_com__N9_amazonaws } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IScanInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput(Amazon.DynamoDBv2.Model.ScanRequest value) { + string var_indexName = value.IndexName != null ? value.IndexName : (string)null; System.Collections.Generic.List var_attributesToGet = value.AttributesToGet != null ? value.AttributesToGet : (System.Collections.Generic.List)null; int? var_limit = value.IsLimitSet ? value.Limit : (int?)null; @@ -1497,6 +1571,7 @@ public static Amazon.DynamoDBv2.Model.ScanResponse FromDafny_N3_com__N9_amazonaw } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IScanOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_ScanOutput(Amazon.DynamoDBv2.Model.ScanResponse value) { + System.Collections.Generic.List> var_items = value.Items != null ? value.Items : (System.Collections.Generic.List>)null; int? var_count = value.Count != null ? value.Count : (int?)null; int? var_scannedCount = value.ScannedCount != null ? value.ScannedCount : (int?)null; @@ -1511,6 +1586,7 @@ public static Amazon.DynamoDBv2.Model.TransactGetItemsRequest FromDafny_N3_com__ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactGetItemsInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TransactGetItemsInput(Amazon.DynamoDBv2.Model.TransactGetItemsRequest value) { + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity != null ? value.ReturnConsumedCapacity : (Amazon.DynamoDBv2.ReturnConsumedCapacity)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.TransactGetItemsInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TransactGetItemsInput__M13_TransactItems(value.TransactItems), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TransactGetItemsInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity)); } @@ -1521,6 +1597,7 @@ public static Amazon.DynamoDBv2.Model.TransactGetItemsResponse FromDafny_N3_com_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactGetItemsOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_TransactGetItemsOutput(Amazon.DynamoDBv2.Model.TransactGetItemsResponse value) { + System.Collections.Generic.List var_consumedCapacity = value.ConsumedCapacity != null ? value.ConsumedCapacity : (System.Collections.Generic.List)null; System.Collections.Generic.List var_responses = value.Responses != null ? value.Responses : (System.Collections.Generic.List)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.TransactGetItemsOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_TransactGetItemsOutput__M16_ConsumedCapacity(var_consumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_TransactGetItemsOutput__M9_Responses(var_responses)); @@ -1534,6 +1611,7 @@ public static Amazon.DynamoDBv2.Model.TransactWriteItemsRequest FromDafny_N3_com } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactWriteItemsInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TransactWriteItemsInput(Amazon.DynamoDBv2.Model.TransactWriteItemsRequest value) { + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity != null ? value.ReturnConsumedCapacity : (Amazon.DynamoDBv2.ReturnConsumedCapacity)null; Amazon.DynamoDBv2.ReturnItemCollectionMetrics var_returnItemCollectionMetrics = value.ReturnItemCollectionMetrics != null ? value.ReturnItemCollectionMetrics : (Amazon.DynamoDBv2.ReturnItemCollectionMetrics)null; string var_clientRequestToken = value.ClientRequestToken != null ? value.ClientRequestToken : (string)null; @@ -1546,6 +1624,7 @@ public static Amazon.DynamoDBv2.Model.TransactWriteItemsResponse FromDafny_N3_co } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactWriteItemsOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_TransactWriteItemsOutput(Amazon.DynamoDBv2.Model.TransactWriteItemsResponse value) { + System.Collections.Generic.List var_consumedCapacity = value.ConsumedCapacity != null ? value.ConsumedCapacity : (System.Collections.Generic.List)null; System.Collections.Generic.Dictionary> var_itemCollectionMetrics = value.ItemCollectionMetrics != null ? value.ItemCollectionMetrics : (System.Collections.Generic.Dictionary>)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.TransactWriteItemsOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_TransactWriteItemsOutput__M16_ConsumedCapacity(var_consumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_TransactWriteItemsOutput__M21_ItemCollectionMetrics(var_itemCollectionMetrics)); @@ -1567,6 +1646,7 @@ public static Amazon.DynamoDBv2.Model.UpdateItemRequest FromDafny_N3_com__N9_ama } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateItemInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput(Amazon.DynamoDBv2.Model.UpdateItemRequest value) { + System.Collections.Generic.Dictionary var_attributeUpdates = value.AttributeUpdates != null ? value.AttributeUpdates : (System.Collections.Generic.Dictionary)null; System.Collections.Generic.Dictionary var_expected = value.Expected != null ? value.Expected : (System.Collections.Generic.Dictionary)null; Amazon.DynamoDBv2.ConditionalOperator var_conditionalOperator = value.ConditionalOperator != null ? value.ConditionalOperator : (Amazon.DynamoDBv2.ConditionalOperator)null; @@ -1587,6 +1667,7 @@ public static Amazon.DynamoDBv2.Model.UpdateItemResponse FromDafny_N3_com__N9_am } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateItemOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateItemOutput(Amazon.DynamoDBv2.Model.UpdateItemResponse value) { + System.Collections.Generic.Dictionary var_attributes = value.Attributes != null ? value.Attributes : (System.Collections.Generic.Dictionary)null; Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = value.ConsumedCapacity != null ? value.ConsumedCapacity : (Amazon.DynamoDBv2.Model.ConsumedCapacity)null; Amazon.DynamoDBv2.Model.ItemCollectionMetrics var_itemCollectionMetrics = value.ItemCollectionMetrics != null ? value.ItemCollectionMetrics : (Amazon.DynamoDBv2.Model.ItemCollectionMetrics)null; @@ -2721,6 +2802,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbTableEncryptionC } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IDynamoDbTableEncryptionConfig ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S29_DynamoDbTableEncryptionConfig(AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbTableEncryptionConfig value) { + value.Validate(); string var_sortKeyName = value.IsSetSortKeyName() ? value.SortKeyName : (string)null; AWS.Cryptography.DbEncryptionSDK.DynamoDb.SearchConfig var_search = value.IsSetSearch() ? value.Search : (AWS.Cryptography.DbEncryptionSDK.DynamoDb.SearchConfig)null; System.Collections.Generic.List var_allowedUnsignedAttributes = value.IsSetAllowedUnsignedAttributes() ? value.AllowedUnsignedAttributes : (System.Collections.Generic.List)null; @@ -2912,6 +2994,7 @@ public static Amazon.DynamoDBv2.Model.ConsumedCapacity FromDafny_N3_com__N9_amaz } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IConsumedCapacity ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ConsumedCapacity(Amazon.DynamoDBv2.Model.ConsumedCapacity value) { + string var_tableName = value.TableName != null ? value.TableName : (string)null; double? var_capacityUnits = value.CapacityUnits != null ? value.CapacityUnits : (double?)null; double? var_readCapacityUnits = value.ReadCapacityUnits != null ? value.ReadCapacityUnits : (double?)null; @@ -2928,6 +3011,7 @@ public static Amazon.DynamoDBv2.Model.ItemCollectionMetrics FromDafny_N3_com__N9 } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IItemCollectionMetrics ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ItemCollectionMetrics(Amazon.DynamoDBv2.Model.ItemCollectionMetrics value) { + System.Collections.Generic.Dictionary var_itemCollectionKey = value.ItemCollectionKey != null ? value.ItemCollectionKey : (System.Collections.Generic.Dictionary)null; System.Collections.Generic.List var_sizeEstimateRangeGB = value.SizeEstimateRangeGB != null ? value.SizeEstimateRangeGB : (System.Collections.Generic.List)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ItemCollectionMetrics(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ItemCollectionMetrics__M17_ItemCollectionKey(var_itemCollectionKey), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ItemCollectionMetrics__M19_SizeEstimateRangeGB(var_sizeEstimateRangeGB)); @@ -3790,6 +3874,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.SearchConfig FromDafny_N } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ISearchConfig ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_SearchConfig(AWS.Cryptography.DbEncryptionSDK.DynamoDb.SearchConfig value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SearchConfig(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_SearchConfig__M8_versions(value.Versions), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_SearchConfig__M12_writeVersion(value.WriteVersion)); } @@ -3848,6 +3933,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.LegacyOverride FromDafny } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ILegacyOverride ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_LegacyOverride(AWS.Cryptography.DbEncryptionSDK.DynamoDb.LegacyOverride value) { + value.Validate(); AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.CryptoAction var_defaultAttributeFlag = value.IsSetDefaultAttributeFlag() ? value.DefaultAttributeFlag : (AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.CryptoAction)null; return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.LegacyOverride(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_LegacyOverride__M6_policy(value.Policy), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_LegacyOverride__M9_encryptor(value.Encryptor), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_LegacyOverride__M25_attributeActionsOnEncrypt(value.AttributeActionsOnEncrypt), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_LegacyOverride__M20_defaultAttributeFlag(var_defaultAttributeFlag)); } @@ -3873,6 +3959,7 @@ public static Amazon.DynamoDBv2.Model.BatchStatementRequest FromDafny_N3_com__N9 } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchStatementRequest ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BatchStatementRequest(Amazon.DynamoDBv2.Model.BatchStatementRequest value) { + System.Collections.Generic.List var_parameters = value.Parameters != null ? value.Parameters : (System.Collections.Generic.List)null; bool? var_consistentRead = value.ConsistentRead != null ? value.ConsistentRead : (bool?)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BatchStatementRequest(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BatchStatementRequest__M9_Statement(value.Statement), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BatchStatementRequest__M10_Parameters(var_parameters), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BatchStatementRequest__M14_ConsistentRead(var_consistentRead)); @@ -3885,6 +3972,7 @@ public static Amazon.DynamoDBv2.Model.BatchStatementResponse FromDafny_N3_com__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchStatementResponse ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_BatchStatementResponse(Amazon.DynamoDBv2.Model.BatchStatementResponse value) { + Amazon.DynamoDBv2.Model.BatchStatementError var_error = value.Error != null ? value.Error : (Amazon.DynamoDBv2.Model.BatchStatementError)null; string var_tableName = value.TableName != null ? value.TableName : (string)null; System.Collections.Generic.Dictionary var_item = value.Item != null ? value.Item : (System.Collections.Generic.Dictionary)null; @@ -3900,6 +3988,7 @@ public static Amazon.DynamoDBv2.Model.KeysAndAttributes FromDafny_N3_com__N9_ama } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IKeysAndAttributes ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_KeysAndAttributes(Amazon.DynamoDBv2.Model.KeysAndAttributes value) { + System.Collections.Generic.List var_attributesToGet = value.AttributesToGet != null ? value.AttributesToGet : (System.Collections.Generic.List)null; bool? var_consistentRead = value.ConsistentRead != null ? value.ConsistentRead : (bool?)null; string var_projectionExpression = value.ProjectionExpression != null ? value.ProjectionExpression : (string)null; @@ -3931,6 +4020,7 @@ public static Amazon.DynamoDBv2.Model.ExpectedAttributeValue FromDafny_N3_com__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IExpectedAttributeValue ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ExpectedAttributeValue(Amazon.DynamoDBv2.Model.ExpectedAttributeValue value) { + Amazon.DynamoDBv2.Model.AttributeValue var_value = value.Value != null ? value.Value : (Amazon.DynamoDBv2.Model.AttributeValue)null; bool? var_exists = value.Exists != null ? value.Exists : (bool?)null; Amazon.DynamoDBv2.ComparisonOperator var_comparisonOperator = value.ComparisonOperator != null ? value.ComparisonOperator : (Amazon.DynamoDBv2.ComparisonOperator)null; @@ -3969,6 +4059,7 @@ public static Amazon.DynamoDBv2.Model.Capacity FromDafny_N3_com__N9_amazonaws__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ICapacity ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_Capacity(Amazon.DynamoDBv2.Model.Capacity value) { + double? var_readCapacityUnits = value.ReadCapacityUnits != null ? value.ReadCapacityUnits : (double?)null; double? var_writeCapacityUnits = value.WriteCapacityUnits != null ? value.WriteCapacityUnits : (double?)null; double? var_capacityUnits = value.CapacityUnits != null ? value.CapacityUnits : (double?)null; @@ -4009,6 +4100,7 @@ public static Amazon.DynamoDBv2.Model.ParameterizedStatement FromDafny_N3_com__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IParameterizedStatement ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ParameterizedStatement(Amazon.DynamoDBv2.Model.ParameterizedStatement value) { + System.Collections.Generic.List var_parameters = value.Parameters != null ? value.Parameters : (System.Collections.Generic.List)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ParameterizedStatement(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ParameterizedStatement__M9_Statement(value.Statement), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ParameterizedStatement__M10_Parameters(var_parameters)); } @@ -4018,6 +4110,7 @@ public static Amazon.DynamoDBv2.Model.ItemResponse FromDafny_N3_com__N9_amazonaw } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IItemResponse ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_ItemResponse(Amazon.DynamoDBv2.Model.ItemResponse value) { + System.Collections.Generic.Dictionary var_item = value.Item != null ? value.Item : (System.Collections.Generic.Dictionary)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ItemResponse(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_ItemResponse__M4_Item(var_item)); } @@ -4028,6 +4121,7 @@ public static Amazon.DynamoDBv2.Model.Condition FromDafny_N3_com__N9_amazonaws__ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ICondition ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_Condition(Amazon.DynamoDBv2.Model.Condition value) { + System.Collections.Generic.List var_attributeValueList = value.AttributeValueList != null ? value.AttributeValueList : (System.Collections.Generic.List)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Condition(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_Condition__M18_AttributeValueList(var_attributeValueList), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_Condition__M18_ComparisonOperator(value.ComparisonOperator)); } @@ -4053,7 +4147,12 @@ public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N8_dynamodb } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BinaryAttributeValue(System.IO.MemoryStream value) { + if (value.ToArray().Length == 0 && value.Length > 0) + { + throw new System.ArgumentException("Fatal Error: MemoryStream instance not backed by an array!"); + } return Dafny.Sequence.FromArray(value.ToArray()); + } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_StringSetAttributeValue(Dafny.ISequence> value) { @@ -4120,6 +4219,7 @@ public static Amazon.DynamoDBv2.Model.TransactGetItem FromDafny_N3_com__N9_amazo public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactGetItem ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_TransactGetItem(Amazon.DynamoDBv2.Model.TransactGetItem value) { + return new software.amazon.cryptography.services.dynamodb.internaldafny.types.TransactGetItem(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_TransactGetItem__M3_Get(value.Get)); } public static Amazon.DynamoDBv2.Model.TransactWriteItem FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_TransactWriteItem(software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactWriteItem value) @@ -4131,6 +4231,7 @@ public static Amazon.DynamoDBv2.Model.TransactWriteItem FromDafny_N3_com__N9_ama } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactWriteItem ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_TransactWriteItem(Amazon.DynamoDBv2.Model.TransactWriteItem value) { + Amazon.DynamoDBv2.Model.ConditionCheck var_conditionCheck = value.ConditionCheck != null ? value.ConditionCheck : (Amazon.DynamoDBv2.Model.ConditionCheck)null; Amazon.DynamoDBv2.Model.Put var_put = value.Put != null ? value.Put : (Amazon.DynamoDBv2.Model.Put)null; Amazon.DynamoDBv2.Model.Delete var_delete = value.Delete != null ? value.Delete : (Amazon.DynamoDBv2.Model.Delete)null; @@ -4144,6 +4245,7 @@ public static Amazon.DynamoDBv2.Model.AttributeValueUpdate FromDafny_N3_com__N9_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValueUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_AttributeValueUpdate(Amazon.DynamoDBv2.Model.AttributeValueUpdate value) { + Amazon.DynamoDBv2.Model.AttributeValue var_value = value.Value != null ? value.Value : (Amazon.DynamoDBv2.Model.AttributeValue)null; Amazon.DynamoDBv2.AttributeAction var_action = value.Action != null ? value.Action : (Amazon.DynamoDBv2.AttributeAction)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValueUpdate(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_AttributeValueUpdate__M5_Value(var_value), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_AttributeValueUpdate__M6_Action(var_action)); @@ -4613,6 +4715,7 @@ public static Amazon.DynamoDBv2.Model.BatchStatementError FromDafny_N3_com__N9_a } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchStatementError ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchStatementError(Amazon.DynamoDBv2.Model.BatchStatementError value) { + Amazon.DynamoDBv2.BatchStatementErrorCodeEnum var_code = value.Code != null ? value.Code : (Amazon.DynamoDBv2.BatchStatementErrorCodeEnum)null; string var_message = value.Message != null ? value.Message : (string)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BatchStatementError(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchStatementError__M4_Code(var_code), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchStatementError__M7_Message(var_message)); @@ -4632,6 +4735,7 @@ public static Amazon.DynamoDBv2.Model.WriteRequest FromDafny_N3_com__N9_amazonaw } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IWriteRequest ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_WriteRequest(Amazon.DynamoDBv2.Model.WriteRequest value) { + Amazon.DynamoDBv2.Model.PutRequest var_putRequest = value.PutRequest != null ? value.PutRequest : (Amazon.DynamoDBv2.Model.PutRequest)null; Amazon.DynamoDBv2.Model.DeleteRequest var_deleteRequest = value.DeleteRequest != null ? value.DeleteRequest : (Amazon.DynamoDBv2.Model.DeleteRequest)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.WriteRequest(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_WriteRequest__M10_PutRequest(var_putRequest), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_WriteRequest__M13_DeleteRequest(var_deleteRequest)); @@ -4695,6 +4799,7 @@ public static Amazon.DynamoDBv2.Model.Get FromDafny_N3_com__N9_amazonaws__N8_dyn } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGet ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get(Amazon.DynamoDBv2.Model.Get value) { + string var_projectionExpression = value.ProjectionExpression != null ? value.ProjectionExpression : (string)null; System.Collections.Generic.Dictionary var_expressionAttributeNames = value.ExpressionAttributeNames != null ? value.ExpressionAttributeNames : (System.Collections.Generic.Dictionary)null; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Get(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get__M3_Key(value.Key), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get__M20_ProjectionExpression(var_projectionExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get__M24_ExpressionAttributeNames(var_expressionAttributeNames)); @@ -4710,6 +4815,7 @@ public static Amazon.DynamoDBv2.Model.ConditionCheck FromDafny_N3_com__N9_amazon } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IConditionCheck ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ConditionCheck(Amazon.DynamoDBv2.Model.ConditionCheck value) { + System.Collections.Generic.Dictionary var_expressionAttributeNames = value.ExpressionAttributeNames != null ? value.ExpressionAttributeNames : (System.Collections.Generic.Dictionary)null; System.Collections.Generic.Dictionary var_expressionAttributeValues = value.ExpressionAttributeValues != null ? value.ExpressionAttributeValues : (System.Collections.Generic.Dictionary)null; Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure var_returnValuesOnConditionCheckFailure = value.ReturnValuesOnConditionCheckFailure != null ? value.ReturnValuesOnConditionCheckFailure : (Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure)null; @@ -4726,6 +4832,7 @@ public static Amazon.DynamoDBv2.Model.Put FromDafny_N3_com__N9_amazonaws__N8_dyn } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IPut ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Put(Amazon.DynamoDBv2.Model.Put value) { + string var_conditionExpression = value.ConditionExpression != null ? value.ConditionExpression : (string)null; System.Collections.Generic.Dictionary var_expressionAttributeNames = value.ExpressionAttributeNames != null ? value.ExpressionAttributeNames : (System.Collections.Generic.Dictionary)null; System.Collections.Generic.Dictionary var_expressionAttributeValues = value.ExpressionAttributeValues != null ? value.ExpressionAttributeValues : (System.Collections.Generic.Dictionary)null; @@ -4743,6 +4850,7 @@ public static Amazon.DynamoDBv2.Model.Delete FromDafny_N3_com__N9_amazonaws__N8_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDelete ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Delete(Amazon.DynamoDBv2.Model.Delete value) { + string var_conditionExpression = value.ConditionExpression != null ? value.ConditionExpression : (string)null; System.Collections.Generic.Dictionary var_expressionAttributeNames = value.ExpressionAttributeNames != null ? value.ExpressionAttributeNames : (System.Collections.Generic.Dictionary)null; System.Collections.Generic.Dictionary var_expressionAttributeValues = value.ExpressionAttributeValues != null ? value.ExpressionAttributeValues : (System.Collections.Generic.Dictionary)null; @@ -4761,6 +4869,7 @@ public static Amazon.DynamoDBv2.Model.Update FromDafny_N3_com__N9_amazonaws__N8_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update(Amazon.DynamoDBv2.Model.Update value) { + string var_conditionExpression = value.ConditionExpression != null ? value.ConditionExpression : (string)null; System.Collections.Generic.Dictionary var_expressionAttributeNames = value.ExpressionAttributeNames != null ? value.ExpressionAttributeNames : (System.Collections.Generic.Dictionary)null; System.Collections.Generic.Dictionary var_expressionAttributeValues = value.ExpressionAttributeValues != null ? value.ExpressionAttributeValues : (System.Collections.Generic.Dictionary)null; @@ -5082,6 +5191,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconVersion FromDafny_ } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IBeaconVersion ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_BeaconVersion(AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconVersion value) { + value.Validate(); System.Collections.Generic.List var_compoundBeacons = value.IsSetCompoundBeacons() ? value.CompoundBeacons : (System.Collections.Generic.List)null; System.Collections.Generic.List var_virtualFields = value.IsSetVirtualFields() ? value.VirtualFields : (System.Collections.Generic.List)null; System.Collections.Generic.List var_encryptedParts = value.IsSetEncryptedParts() ? value.EncryptedParts : (System.Collections.Generic.List)null; @@ -5133,6 +5243,7 @@ public static Amazon.DynamoDBv2.Model.PutRequest FromDafny_N3_com__N9_amazonaws_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IPutRequest ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_PutRequest(Amazon.DynamoDBv2.Model.PutRequest value) { + return new software.amazon.cryptography.services.dynamodb.internaldafny.types.PutRequest(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_PutRequest__M4_Item(value.Item)); } public static Amazon.DynamoDBv2.Model.DeleteRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_DeleteRequest(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteRequest value) @@ -5142,6 +5253,7 @@ public static Amazon.DynamoDBv2.Model.DeleteRequest FromDafny_N3_com__N9_amazona public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteRequest ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_DeleteRequest(Amazon.DynamoDBv2.Model.DeleteRequest value) { + return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DeleteRequest(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_DeleteRequest__M3_Key(value.Key)); } public static Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S35_ReturnValuesOnConditionCheckFailure(software.amazon.cryptography.services.dynamodb.internaldafny.types._IReturnValuesOnConditionCheckFailure value) @@ -5265,7 +5377,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconKeySource FromDafn } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IBeaconKeySource ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_BeaconKeySource(AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconKeySource value) { - if (value.IsSetSingle()) + value.Validate(); if (value.IsSetSingle()) { return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconKeySource.create_single(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_BeaconKeySource__M6_single(value.Single)); } @@ -5378,6 +5490,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.SingleKeyStore FromDafny } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ISingleKeyStore ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore(AWS.Cryptography.DbEncryptionSDK.DynamoDb.SingleKeyStore value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SingleKeyStore(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore__M5_keyId(value.KeyId), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore__M8_cacheTTL(value.CacheTTL)); } @@ -5389,6 +5502,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.MultiKeyStore FromDafny_ } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IMultiKeyStore ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore(AWS.Cryptography.DbEncryptionSDK.DynamoDb.MultiKeyStore value) { + value.Validate(); AWS.Cryptography.MaterialProviders.CacheType var_cache = value.IsSetCache() ? value.Cache : (AWS.Cryptography.MaterialProviders.CacheType)null; return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.MultiKeyStore(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M12_keyFieldName(value.KeyFieldName), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M8_cacheTTL(value.CacheTTL), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M5_cache(var_cache)); } @@ -5401,6 +5515,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.StandardBeacon FromDafny } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IStandardBeacon ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_StandardBeacon(AWS.Cryptography.DbEncryptionSDK.DynamoDb.StandardBeacon value) { + value.Validate(); string var_loc = value.IsSetLoc() ? value.Loc : (string)null; AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconStyle var_style = value.IsSetStyle() ? value.Style : (AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconStyle)null; return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.StandardBeacon(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_StandardBeacon__M4_name(value.Name), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_StandardBeacon__M6_length(value.Length), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_StandardBeacon__M3_loc(var_loc), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_StandardBeacon__M5_style(var_style)); @@ -5415,6 +5530,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.CompoundBeacon FromDafny } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ICompoundBeacon ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_CompoundBeacon(AWS.Cryptography.DbEncryptionSDK.DynamoDb.CompoundBeacon value) { + value.Validate(); System.Collections.Generic.List var_encrypted = value.IsSetEncrypted() ? value.Encrypted : (System.Collections.Generic.List)null; System.Collections.Generic.List var_signed = value.IsSetSigned() ? value.Signed : (System.Collections.Generic.List)null; System.Collections.Generic.List var_constructors = value.IsSetConstructors() ? value.Constructors : (System.Collections.Generic.List)null; @@ -5427,6 +5543,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.VirtualField FromDafny_N } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IVirtualField ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_VirtualField(AWS.Cryptography.DbEncryptionSDK.DynamoDb.VirtualField value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualField(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_VirtualField__M4_name(value.Name), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_VirtualField__M5_parts(value.Parts)); } @@ -5437,6 +5554,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.EncryptedPart FromDafny_ } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IEncryptedPart ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_EncryptedPart(AWS.Cryptography.DbEncryptionSDK.DynamoDb.EncryptedPart value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.EncryptedPart(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_EncryptedPart__M4_name(value.Name), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_EncryptedPart__M6_prefix(value.Prefix)); } @@ -5448,6 +5566,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.SignedPart FromDafny_N3_ } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ISignedPart ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_SignedPart(AWS.Cryptography.DbEncryptionSDK.DynamoDb.SignedPart value) { + value.Validate(); string var_loc = value.IsSetLoc() ? value.Loc : (string)null; return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SignedPart(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_SignedPart__M4_name(value.Name), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_SignedPart__M6_prefix(value.Prefix), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_SignedPart__M3_loc(var_loc)); } @@ -5659,7 +5778,7 @@ public static AWS.Cryptography.MaterialProviders.CacheType FromDafny_N3_aws__N12 } public static software.amazon.cryptography.materialproviders.internaldafny.types._ICacheType ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType(AWS.Cryptography.MaterialProviders.CacheType value) { - if (value.IsSetDefault()) + value.Validate(); if (value.IsSetDefault()) { return software.amazon.cryptography.materialproviders.internaldafny.types.CacheType.create_Default(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M7_Default(value.Default)); } @@ -5724,7 +5843,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconStyle FromDafny_N3 } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IBeaconStyle ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle(AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconStyle value) { - if (value.IsSetPartOnly()) + value.Validate(); if (value.IsSetPartOnly()) { return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconStyle.create_partOnly(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M8_partOnly(value.PartOnly)); } @@ -5868,6 +5987,7 @@ public static AWS.Cryptography.MaterialProviders.DefaultCache FromDafny_N3_aws__ } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDefaultCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache(AWS.Cryptography.MaterialProviders.DefaultCache value) { + value.Validate(); return new software.amazon.cryptography.materialproviders.internaldafny.types.DefaultCache(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache__M13_entryCapacity(value.EntryCapacity)); } @@ -5877,6 +5997,7 @@ public static AWS.Cryptography.MaterialProviders.NoCache FromDafny_N3_aws__N12_c } public static software.amazon.cryptography.materialproviders.internaldafny.types._INoCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_NoCache(AWS.Cryptography.MaterialProviders.NoCache value) { + value.Validate(); return new software.amazon.cryptography.materialproviders.internaldafny.types.NoCache(); } @@ -5887,6 +6008,7 @@ public static AWS.Cryptography.MaterialProviders.SingleThreadedCache FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._ISingleThreadedCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache(AWS.Cryptography.MaterialProviders.SingleThreadedCache value) { + value.Validate(); int? var_entryPruningTailSize = value.IsSetEntryPruningTailSize() ? value.EntryPruningTailSize : (int?)null; return new software.amazon.cryptography.materialproviders.internaldafny.types.SingleThreadedCache(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M13_entryCapacity(value.EntryCapacity), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M20_entryPruningTailSize(var_entryPruningTailSize)); } @@ -5897,6 +6019,7 @@ public static AWS.Cryptography.MaterialProviders.MultiThreadedCache FromDafny_N3 } public static software.amazon.cryptography.materialproviders.internaldafny.types._IMultiThreadedCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache(AWS.Cryptography.MaterialProviders.MultiThreadedCache value) { + value.Validate(); int? var_entryPruningTailSize = value.IsSetEntryPruningTailSize() ? value.EntryPruningTailSize : (int?)null; return new software.amazon.cryptography.materialproviders.internaldafny.types.MultiThreadedCache(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M13_entryCapacity(value.EntryCapacity), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M20_entryPruningTailSize(var_entryPruningTailSize)); } @@ -5912,6 +6035,7 @@ public static AWS.Cryptography.MaterialProviders.StormTrackingCache FromDafny_N3 } public static software.amazon.cryptography.materialproviders.internaldafny.types._IStormTrackingCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache(AWS.Cryptography.MaterialProviders.StormTrackingCache value) { + value.Validate(); int? var_entryPruningTailSize = value.IsSetEntryPruningTailSize() ? value.EntryPruningTailSize : (int?)null; return new software.amazon.cryptography.materialproviders.internaldafny.types.StormTrackingCache(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_entryCapacity(value.EntryCapacity), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M20_entryPruningTailSize(var_entryPruningTailSize), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_gracePeriod(value.GracePeriod), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_graceInterval(value.GraceInterval), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M6_fanOut(value.FanOut), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_inFlightTTL(value.InFlightTTL), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M10_sleepMilli(value.SleepMilli)); } @@ -5921,6 +6045,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.PartOnly FromDafny_N3_aw } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IPartOnly ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S8_PartOnly(AWS.Cryptography.DbEncryptionSDK.DynamoDb.PartOnly value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.PartOnly(); } @@ -5930,6 +6055,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Shared FromDafny_N3_aws_ } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IShared ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Shared(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Shared value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Shared(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Shared__M5_other(value.Other)); } @@ -5939,6 +6065,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.AsSet FromDafny_N3_aws__ } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IAsSet ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_AsSet(AWS.Cryptography.DbEncryptionSDK.DynamoDb.AsSet value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.AsSet(); } @@ -5948,6 +6075,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.SharedSet FromDafny_N3_a } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ISharedSet ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_SharedSet(AWS.Cryptography.DbEncryptionSDK.DynamoDb.SharedSet value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SharedSet(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_SharedSet__M5_other(value.Other)); } @@ -5957,6 +6085,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Constructor FromDafny_N3 } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IConstructor ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_Constructor(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Constructor value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Constructor(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_Constructor__M5_parts(value.Parts)); } @@ -5967,6 +6096,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.VirtualPart FromDafny_N3 } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IVirtualPart ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_VirtualPart(AWS.Cryptography.DbEncryptionSDK.DynamoDb.VirtualPart value) { + value.Validate(); System.Collections.Generic.List var_trans = value.IsSetTrans() ? value.Trans : (System.Collections.Generic.List)null; return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualPart(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_VirtualPart__M3_loc(value.Loc), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_VirtualPart__M5_trans(var_trans)); } @@ -6153,6 +6283,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.ConstructorPart FromDafn } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IConstructorPart ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_ConstructorPart(AWS.Cryptography.DbEncryptionSDK.DynamoDb.ConstructorPart value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ConstructorPart(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_ConstructorPart__M4_name(value.Name), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_ConstructorPart__M8_required(value.Required)); } @@ -6203,7 +6334,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.VirtualTransform FromDaf } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IVirtualTransform ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform(AWS.Cryptography.DbEncryptionSDK.DynamoDb.VirtualTransform value) { - if (value.IsSetUpper()) + value.Validate(); if (value.IsSetUpper()) { return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualTransform.create_upper(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M5_upper(value.Upper)); } @@ -6331,6 +6462,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Upper FromDafny_N3_aws__ } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IUpper ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_Upper(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Upper value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Upper(); } @@ -6340,6 +6472,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Lower FromDafny_N3_aws__ } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ILower ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_Lower(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Lower value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Lower(); } @@ -6349,6 +6482,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Insert FromDafny_N3_aws_ } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IInsert ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Insert(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Insert value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Insert(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Insert__M7_literal(value.Literal)); } @@ -6358,6 +6492,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetPrefix FromDafny_N3_a } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetPrefix ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetPrefix(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetPrefix value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetPrefix(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetPrefix__M6_length(value.Length)); } @@ -6367,6 +6502,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSuffix FromDafny_N3_a } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSuffix ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetSuffix(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSuffix value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSuffix(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetSuffix__M6_length(value.Length)); } @@ -6377,6 +6513,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSubstring FromDafny_N } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSubstring ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSubstring value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSubstring(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring__M3_low(value.Low), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring__M4_high(value.High)); } @@ -6387,6 +6524,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegment FromDafny_N3_ } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSegment ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegment value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSegment(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment__M5_split(value.Split), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment__M5_index(value.Index)); } @@ -6398,6 +6536,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegments FromDafny_N3 } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSegments ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegments value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSegments(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M5_split(value.Split), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M3_low(value.Low), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M4_high(value.High)); } @@ -6489,6 +6628,10 @@ public static System.Exception FromDafny_CommonError(software.amazon.cryptograph return AWS.Cryptography.DbEncryptionSDK.DynamoDb.TypeConversion.FromDafny_CommonError( dafnyVal._AwsCryptographyDbEncryptionSdkDynamoDb ); + case software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.Error_AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptor dafnyVal: + return AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.TypeConversion.FromDafny_CommonError( + dafnyVal._AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptor + ); case software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.Error_AwsCryptographyDbEncryptionSdkStructuredEncryption dafnyVal: return AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.TypeConversion.FromDafny_CommonError( dafnyVal._AwsCryptographyDbEncryptionSdkStructuredEncryption @@ -6501,10 +6644,6 @@ public static System.Exception FromDafny_CommonError(software.amazon.cryptograph return Com.Amazonaws.Dynamodb.TypeConversion.FromDafny_CommonError( dafnyVal._ComAmazonawsDynamodb ); - case software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.Error_AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptor dafnyVal: - return AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.TypeConversion.FromDafny_CommonError( - dafnyVal._AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptor - ); case software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.Error_DynamoDbEncryptionTransformsException dafnyVal: return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N10_transforms__S37_DynamoDbEncryptionTransformsException(dafnyVal); case software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny.types.Error_CollectionOfErrors dafnyVal: diff --git a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbItemEncryptor/TypeConversion.cs b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbItemEncryptor/TypeConversion.cs index 54124cea9..c5b0bedd1 100644 --- a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbItemEncryptor/TypeConversion.cs +++ b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbItemEncryptor/TypeConversion.cs @@ -13,6 +13,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.DecryptIte } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types._IDecryptItemInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S16_DecryptItemInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.DecryptItemInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.DecryptItemInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S16_DecryptItemInput__M13_encryptedItem(value.EncryptedItem)); } @@ -23,6 +24,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.DecryptIte } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types._IDecryptItemOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S17_DecryptItemOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.DecryptItemOutput value) { + value.Validate(); AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.ParsedHeader var_parsedHeader = value.IsSetParsedHeader() ? value.ParsedHeader : (AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.ParsedHeader)null; return new software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.DecryptItemOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S17_DecryptItemOutput__M13_plaintextItem(value.PlaintextItem), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S17_DecryptItemOutput__M12_parsedHeader(var_parsedHeader)); } @@ -42,6 +44,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.DynamoDbIt } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types._IDynamoDbItemEncryptorConfig ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S27_DynamoDbItemEncryptorConfig(AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.DynamoDbItemEncryptorConfig value) { + value.Validate(); string var_sortKeyName = value.IsSetSortKeyName() ? value.SortKeyName : (string)null; System.Collections.Generic.List var_allowedUnsignedAttributes = value.IsSetAllowedUnsignedAttributes() ? value.AllowedUnsignedAttributes : (System.Collections.Generic.List)null; string var_allowedUnsignedAttributePrefix = value.IsSetAllowedUnsignedAttributePrefix() ? value.AllowedUnsignedAttributePrefix : (string)null; @@ -71,6 +74,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.EncryptIte } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types._IEncryptItemInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S16_EncryptItemInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.EncryptItemInput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.EncryptItemInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S16_EncryptItemInput__M13_plaintextItem(value.PlaintextItem)); } @@ -81,6 +85,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.EncryptIte } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types._IEncryptItemOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S17_EncryptItemOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.EncryptItemOutput value) { + value.Validate(); AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.ParsedHeader var_parsedHeader = value.IsSetParsedHeader() ? value.ParsedHeader : (AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.ParsedHeader)null; return new software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.EncryptItemOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S17_EncryptItemOutput__M13_encryptedItem(value.EncryptedItem), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S17_EncryptItemOutput__M12_parsedHeader(var_parsedHeader)); } @@ -249,6 +254,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.ParsedHead } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types._IParsedHeader ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S12_ParsedHeader(AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor.ParsedHeader value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.ParsedHeader(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S12_ParsedHeader__M25_attributeActionsOnEncrypt(value.AttributeActionsOnEncrypt), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S12_ParsedHeader__M16_algorithmSuiteId(value.AlgorithmSuiteId), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S12_ParsedHeader__M17_encryptedDataKeys(value.EncryptedDataKeys), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S12_ParsedHeader__M23_storedEncryptionContext(value.StoredEncryptionContext), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S12_ParsedHeader__M17_encryptionContext(value.EncryptionContext), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S12_ParsedHeader__M15_selectorContext(value.SelectorContext)); } @@ -331,6 +337,7 @@ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.LegacyOverride FromDafny } public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ILegacyOverride ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_LegacyOverride(AWS.Cryptography.DbEncryptionSDK.DynamoDb.LegacyOverride value) { + value.Validate(); AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.CryptoAction var_defaultAttributeFlag = value.IsSetDefaultAttributeFlag() ? value.DefaultAttributeFlag : (AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.CryptoAction)null; return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.LegacyOverride(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_LegacyOverride__M6_policy(value.Policy), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_LegacyOverride__M9_encryptor(value.Encryptor), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_LegacyOverride__M25_attributeActionsOnEncrypt(value.AttributeActionsOnEncrypt), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_LegacyOverride__M20_defaultAttributeFlag(var_defaultAttributeFlag)); } @@ -787,7 +794,12 @@ public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N8_dynamodb } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BinaryAttributeValue(System.IO.MemoryStream value) { + if (value.ToArray().Length == 0 && value.Length > 0) + { + throw new System.ArgumentException("Fatal Error: MemoryStream instance not backed by an array!"); + } return Dafny.Sequence.FromArray(value.ToArray()); + } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_StringSetAttributeValue(Dafny.ISequence> value) { @@ -855,6 +867,7 @@ public static AWS.Cryptography.MaterialProviders.EncryptedDataKey FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptedDataKey ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey(AWS.Cryptography.MaterialProviders.EncryptedDataKey value) { + value.Validate(); return new software.amazon.cryptography.materialproviders.internaldafny.types.EncryptedDataKey(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M13_keyProviderId(value.KeyProviderId), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M15_keyProviderInfo(value.KeyProviderInfo), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M10_ciphertext(value.Ciphertext)); } @@ -946,32 +959,37 @@ public static System.IO.MemoryStream FromDafny_N6_smithy__N3_api__S4_Blob(Dafny. } public static Dafny.ISequence ToDafny_N6_smithy__N3_api__S4_Blob(System.IO.MemoryStream value) { + if (value.ToArray().Length == 0 && value.Length > 0) + { + throw new System.ArgumentException("Fatal Error: MemoryStream instance not backed by an array!"); + } return Dafny.Sequence.FromArray(value.ToArray()); + } public static System.Exception FromDafny_CommonError(software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types._IError value) { switch (value) { - case software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.Error_AwsCryptographyPrimitives dafnyVal: - return AWS.Cryptography.Primitives.TypeConversion.FromDafny_CommonError( - dafnyVal._AwsCryptographyPrimitives + case software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.Error_AwsCryptographyDbEncryptionSdkDynamoDb dafnyVal: + return AWS.Cryptography.DbEncryptionSDK.DynamoDb.TypeConversion.FromDafny_CommonError( + dafnyVal._AwsCryptographyDbEncryptionSdkDynamoDb + ); + case software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.Error_AwsCryptographyDbEncryptionSdkStructuredEncryption dafnyVal: + return AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.TypeConversion.FromDafny_CommonError( + dafnyVal._AwsCryptographyDbEncryptionSdkStructuredEncryption ); case software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.Error_AwsCryptographyMaterialProviders dafnyVal: return AWS.Cryptography.MaterialProviders.TypeConversion.FromDafny_CommonError( dafnyVal._AwsCryptographyMaterialProviders ); - case software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.Error_AwsCryptographyDbEncryptionSdkStructuredEncryption dafnyVal: - return AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.TypeConversion.FromDafny_CommonError( - dafnyVal._AwsCryptographyDbEncryptionSdkStructuredEncryption + case software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.Error_AwsCryptographyPrimitives dafnyVal: + return AWS.Cryptography.Primitives.TypeConversion.FromDafny_CommonError( + dafnyVal._AwsCryptographyPrimitives ); case software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.Error_ComAmazonawsDynamodb dafnyVal: return Com.Amazonaws.Dynamodb.TypeConversion.FromDafny_CommonError( dafnyVal._ComAmazonawsDynamodb ); - case software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.Error_AwsCryptographyDbEncryptionSdkDynamoDb dafnyVal: - return AWS.Cryptography.DbEncryptionSDK.DynamoDb.TypeConversion.FromDafny_CommonError( - dafnyVal._AwsCryptographyDbEncryptionSdkDynamoDb - ); case software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.Error_DynamoDbItemEncryptorException dafnyVal: return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__N13_itemEncryptor__S30_DynamoDbItemEncryptorException(dafnyVal); case software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.types.Error_CollectionOfErrors dafnyVal: diff --git a/DynamoDbEncryption/runtimes/net/Generated/StructuredEncryption/TypeConversion.cs b/DynamoDbEncryption/runtimes/net/Generated/StructuredEncryption/TypeConversion.cs index e83e3b2e6..4cc4a7fe5 100644 --- a/DynamoDbEncryption/runtimes/net/Generated/StructuredEncryption/TypeConversion.cs +++ b/DynamoDbEncryption/runtimes/net/Generated/StructuredEncryption/TypeConversion.cs @@ -41,7 +41,7 @@ public static AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.Authenticate } public static software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types._IAuthenticateSchemaContent ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S25_AuthenticateSchemaContent(AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.AuthenticateSchemaContent value) { - if (value.IsSetAction()) + value.Validate(); if (value.IsSetAction()) { return software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateSchemaContent.create_Action(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S25_AuthenticateSchemaContent__M6_Action(value.Action)); } @@ -93,7 +93,7 @@ public static AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.CryptoSchema } public static software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types._ICryptoSchemaContent ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S19_CryptoSchemaContent(AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.CryptoSchemaContent value) { - if (value.IsSetAction()) + value.Validate(); if (value.IsSetAction()) { return software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.CryptoSchemaContent.create_Action(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S19_CryptoSchemaContent__M6_Action(value.Action)); } @@ -117,6 +117,7 @@ public static AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.DecryptStruc } public static software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types._IDecryptStructureInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S21_DecryptStructureInput(AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.DecryptStructureInput value) { + value.Validate(); System.Collections.Generic.Dictionary var_encryptionContext = value.IsSetEncryptionContext() ? value.EncryptionContext : (System.Collections.Generic.Dictionary)null; return new software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.DecryptStructureInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S21_DecryptStructureInput__M9_tableName(value.TableName), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S21_DecryptStructureInput__M18_encryptedStructure(value.EncryptedStructure), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S21_DecryptStructureInput__M18_authenticateSchema(value.AuthenticateSchema), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S21_DecryptStructureInput__M3_cmm(value.Cmm), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S21_DecryptStructureInput__M17_encryptionContext(var_encryptionContext)); } @@ -127,6 +128,7 @@ public static AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.DecryptStruc } public static software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types._IDecryptStructureOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S22_DecryptStructureOutput(AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.DecryptStructureOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.DecryptStructureOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S22_DecryptStructureOutput__M18_plaintextStructure(value.PlaintextStructure), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S22_DecryptStructureOutput__M12_parsedHeader(value.ParsedHeader)); } @@ -141,6 +143,7 @@ public static AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.EncryptStruc } public static software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types._IEncryptStructureInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S21_EncryptStructureInput(AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.EncryptStructureInput value) { + value.Validate(); AWS.Cryptography.MaterialProviders.DBEAlgorithmSuiteId var_algorithmSuiteId = value.IsSetAlgorithmSuiteId() ? value.AlgorithmSuiteId : (AWS.Cryptography.MaterialProviders.DBEAlgorithmSuiteId)null; System.Collections.Generic.Dictionary var_encryptionContext = value.IsSetEncryptionContext() ? value.EncryptionContext : (System.Collections.Generic.Dictionary)null; return new software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.EncryptStructureInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S21_EncryptStructureInput__M9_tableName(value.TableName), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S21_EncryptStructureInput__M18_plaintextStructure(value.PlaintextStructure), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S21_EncryptStructureInput__M12_cryptoSchema(value.CryptoSchema), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S21_EncryptStructureInput__M3_cmm(value.Cmm), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S21_EncryptStructureInput__M16_algorithmSuiteId(var_algorithmSuiteId), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S21_EncryptStructureInput__M17_encryptionContext(var_encryptionContext)); @@ -152,6 +155,7 @@ public static AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.EncryptStruc } public static software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types._IEncryptStructureOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S22_EncryptStructureOutput(AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.EncryptStructureOutput value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.EncryptStructureOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S22_EncryptStructureOutput__M18_encryptedStructure(value.EncryptedStructure), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S22_EncryptStructureOutput__M12_parsedHeader(value.ParsedHeader)); } @@ -177,7 +181,7 @@ public static AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.StructuredDa } public static software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types._IStructuredDataContent ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S21_StructuredDataContent(AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.StructuredDataContent value) { - if (value.IsSetTerminal()) + value.Validate(); if (value.IsSetTerminal()) { return software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredDataContent.create_Terminal(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S21_StructuredDataContent__M8_Terminal(value.Terminal)); } @@ -197,6 +201,7 @@ public static AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.StructuredEn } public static software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types._IStructuredEncryptionConfig ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S26_StructuredEncryptionConfig(AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.StructuredEncryptionConfig value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredEncryptionConfig(); } @@ -464,6 +469,7 @@ public static AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.StructuredDa } public static software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types._IStructuredData ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S14_StructuredData(AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.StructuredData value) { + value.Validate(); System.Collections.Generic.Dictionary var_attributes = value.IsSetAttributes() ? value.Attributes : (System.Collections.Generic.Dictionary)null; return new software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredData(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S14_StructuredData__M7_content(value.Content), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S14_StructuredData__M10_attributes(var_attributes)); } @@ -474,6 +480,7 @@ public static AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.Authenticate } public static software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types._IAuthenticateSchema ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S18_AuthenticateSchema(AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.AuthenticateSchema value) { + value.Validate(); System.Collections.Generic.Dictionary var_attributes = value.IsSetAttributes() ? value.Attributes : (System.Collections.Generic.Dictionary)null; return new software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.AuthenticateSchema(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S18_AuthenticateSchema__M7_content(value.Content), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S18_AuthenticateSchema__M10_attributes(var_attributes)); } @@ -509,6 +516,7 @@ public static AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.ParsedHeader } public static software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types._IParsedHeader ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S12_ParsedHeader(AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.ParsedHeader value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.ParsedHeader(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S12_ParsedHeader__M12_cryptoSchema(value.CryptoSchema), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S12_ParsedHeader__M16_algorithmSuiteId(value.AlgorithmSuiteId), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S12_ParsedHeader__M17_encryptedDataKeys(value.EncryptedDataKeys), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S12_ParsedHeader__M23_storedEncryptionContext(value.StoredEncryptionContext), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S12_ParsedHeader__M17_encryptionContext(value.EncryptionContext)); } @@ -519,6 +527,7 @@ public static AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.CryptoSchema } public static software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types._ICryptoSchema ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S12_CryptoSchema(AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.CryptoSchema value) { + value.Validate(); System.Collections.Generic.Dictionary var_attributes = value.IsSetAttributes() ? value.Attributes : (System.Collections.Generic.Dictionary)null; return new software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.CryptoSchema(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S12_CryptoSchema__M7_content(value.Content), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S12_CryptoSchema__M10_attributes(var_attributes)); } @@ -541,6 +550,7 @@ public static AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.StructuredDa } public static software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types._IStructuredDataTerminal ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S22_StructuredDataTerminal(AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.StructuredDataTerminal value) { + value.Validate(); return new software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.StructuredDataTerminal(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S22_StructuredDataTerminal__M5_value(value.Value), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S22_StructuredDataTerminal__M6_typeId(value.TypeId)); } @@ -808,7 +818,12 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N15_dbE } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S13_TerminalValue(System.IO.MemoryStream value) { + if (value.ToArray().Length == 0 && value.Length > 0) + { + throw new System.ArgumentException("Fatal Error: MemoryStream instance not backed by an array!"); + } return Dafny.Sequence.FromArray(value.ToArray()); + } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S14_TerminalTypeId(Dafny.ISequence value) { @@ -816,7 +831,12 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N15_dbE } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S14_TerminalTypeId(System.IO.MemoryStream value) { + if (value.ToArray().Length == 0 && value.Length > 0) + { + throw new System.ArgumentException("Fatal Error: MemoryStream instance not backed by an array!"); + } return Dafny.Sequence.FromArray(value.ToArray()); + } public static string FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S24_StructuredDataAttributes__M3_key(Dafny.ISequence value) { @@ -882,6 +902,7 @@ public static AWS.Cryptography.MaterialProviders.EncryptedDataKey FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptedDataKey ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey(AWS.Cryptography.MaterialProviders.EncryptedDataKey value) { + value.Validate(); return new software.amazon.cryptography.materialproviders.internaldafny.types.EncryptedDataKey(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M13_keyProviderId(value.KeyProviderId), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M15_keyProviderInfo(value.KeyProviderInfo), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M10_ciphertext(value.Ciphertext)); } @@ -915,20 +936,25 @@ public static System.IO.MemoryStream FromDafny_N6_smithy__N3_api__S4_Blob(Dafny. } public static Dafny.ISequence ToDafny_N6_smithy__N3_api__S4_Blob(System.IO.MemoryStream value) { + if (value.ToArray().Length == 0 && value.Length > 0) + { + throw new System.ArgumentException("Fatal Error: MemoryStream instance not backed by an array!"); + } return Dafny.Sequence.FromArray(value.ToArray()); + } public static System.Exception FromDafny_CommonError(software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types._IError value) { switch (value) { - case software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.Error_AwsCryptographyPrimitives dafnyVal: - return AWS.Cryptography.Primitives.TypeConversion.FromDafny_CommonError( - dafnyVal._AwsCryptographyPrimitives - ); case software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.Error_AwsCryptographyMaterialProviders dafnyVal: return AWS.Cryptography.MaterialProviders.TypeConversion.FromDafny_CommonError( dafnyVal._AwsCryptographyMaterialProviders ); + case software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.Error_AwsCryptographyPrimitives dafnyVal: + return AWS.Cryptography.Primitives.TypeConversion.FromDafny_CommonError( + dafnyVal._AwsCryptographyPrimitives + ); case software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.Error_StructuredEncryptionException dafnyVal: return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N20_structuredEncryption__S29_StructuredEncryptionException(dafnyVal); case software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny.types.Error_CollectionOfErrors dafnyVal: diff --git a/Makefile b/Makefile index 3a11dac94..9b0efd9da 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,8 @@ +# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + +PROJECT_ROOT := $(abspath $(dir $(abspath $(lastword $(MAKEFILE_LIST))))) + # This finds all Dafny projects in this repository # This makes building root level targets for each project easy # PROJECTS = $(shell find . -mindepth 2 -maxdepth 2 -type f -name "Makefile" | xargs dirname | xargs basename) @@ -23,3 +28,26 @@ format_dafny: $(foreach PROJECT, $(PROJECTS), \ $(MAKE) -C $(PROJECT) format_dafny && \ ) true + +# Generate the top-level project.properties file using smithy-dafny. +# This is for the benefit of the nightly Dafny CI, +# to verify that everything works with the latest Dafny prerelease. +# We use smithy-dafny rather than just cat-ing the file directly +# because smithy-dafny currently maintains the knowledge +# of how Dafny release versions maps to Dafny runtime library versions, +# especially prerelease versions like 4.4.0-nightly-2024-01-30-908f95f. +# +# Note we generate to a different file than the checked-in project.properties, +# because in this repo that file has other properties as well, +# so we need to merge the two versions. +# See .github/actions/polymorph_codegen/action.yml. +generate_properties_file: + cd submodules/smithy-dafny/codegen/smithy-dafny-codegen-cli; \ + ./../gradlew run --args="\ + --dafny-version ${DAFNY_VERSION} \ + --library-root $(PROJECT_ROOT)/submodules/MaterialProviders/StandardLibrary \ + --model $(PROJECT_ROOT)/submodules/MaterialProviders/StandardLibrary/Model \ + --dependent-model $(PROJECT_ROOT)/submodules/MaterialProviders/StandardLibrary/Model \ + --namespace aws.polymorph \ + --properties-file $(PROJECT_ROOT)/smithy-dafny-project.properties \ + "; diff --git a/SharedMakefile.mk b/SharedMakefile.mk index 326403179..21e4627a7 100644 --- a/SharedMakefile.mk +++ b/SharedMakefile.mk @@ -1,429 +1,12 @@ # Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -# These make targets that are shared -# between all the projects in this repo. -# They will only function if executed inside a project directory. - -# There are several variables that are used here. -# The expectation is to define these variables -# inside each project. - -# Variables: -# MAX_RESOURCE_COUNT -- The Dafny report generator max resource count. -# This is is per project because the verification variability can differ. -# PROJECT_DEPENDENCIES -- List of dependencies for the project. -# It should be the list of top level directory names -# PROJECT_SERVICES -- List of names of each local service in the project -# SERVICE_NAMESPACE_ -- for each service in PROJECT_SERVICES, -# the list of dependencies for that smithy namespace. It should be a list -# of Model directories -# SERVICE_DEPS_ -- for each service in PROJECT_SERVICES, -# the list of dependencies for that smithy namespace. It should be a list -# of Model directories -# AWS_SDK_CMD -- the `--aws-sdk` command to generate AWS SDK style interfaces. -# STD_LIBRARY -- path from this file to the StandardLibrary Dafny project. -# SMITHY_DEPS -- path from this file to smithy dependencies, such as custom traits. - # This evaluates to the local path _of this file_. # This means that these are the project roots # that are shared by all libraries in this repo. PROJECT_ROOT := $(abspath $(dir $(abspath $(lastword $(MAKEFILE_LIST))))) -# This evaluates to the path of the current working directory. -# i.e. The specific library under consideration. -LIBRARY_ROOT := $(PWD) -# Smithy Dafny code gen needs to know -# where the smithy model is. -# This is generally in the same directory as the library. -# However in the case of a wrapped library, -# such as the test vectors -# the implementation MAY be in a different library -# than the model. -# By having two related variables -# test vector projects can point to -# the specific model they need -# but still build everything in their local library directory. -SMITHY_MODEL_ROOT := $(LIBRARY_ROOT)/Model - -# Later versions of Dafny no longer default to adding "_Compile" -# to the names of modules when translating. -# Our target language code still assumes it does, -# so IF the /compileSuffix option is available in our verion of Dafny -# we need to provide it. -COMPILE_SUFFIX_OPTION := -compileSuffix:1 - -########################## Dafny targets - -# Verify the entire project -verify: - dafny \ - -vcsCores:$(CORES) \ - -compile:0 \ - -definiteAssignment:3 \ - -unicodeChar:0 \ - -functionSyntax:3 \ - -verificationLogger:csv \ - -timeLimit:100 \ - -trace \ - `find . -name *.dfy` - -# Verify single file FILE with text logger. -# This is useful for debugging resource count usage within a file. -# Use PROC to further scope the verification -verify_single: - @: $(if ${CORES},,CORES=2); - dafny \ - -vcsCores:$(CORES) \ - -compile:0 \ - -definiteAssignment:3 \ - -unicodeChar:0 \ - -functionSyntax:3 \ - -verificationLogger:text \ - -timeLimit:100 \ - -trace \ - $(if ${PROC},-proc:*$(PROC)*,) \ - $(FILE) - -#Verify only a specific namespace at env var $(SERVICE) -verify_service: - @: $(if ${SERVICE},,$(error You must pass the SERVICE to generate for)); - dafny \ - -vcsCores:$(CORES) \ - -compile:0 \ - -definiteAssignment:3 \ - -unicodeChar:0 \ - -functionSyntax:3 \ - -verificationLogger:csv \ - -timeLimit:100 \ - -trace \ - `find ./dafny/$(SERVICE) -name '*.dfy'` \ - -format_dafny: - dafny format \ - --function-syntax 3 \ - --unicode-char false \ - `find . -name '*.dfy'` - -format_dafny-check: - dafny format \ - --check \ - --function-syntax 3 \ - --unicode-char false \ - `find . -name '*.dfy'` - -format: - dafny format \ - --function-syntax 3 \ - --unicode-char false \ - `find . -name '*.dfy'` - -format-check: - dafny format \ - --check \ - --function-syntax 3 \ - --unicode-char false \ - `find . -name '*.dfy'` - -dafny-reportgenerator: - dafny-reportgenerator \ - summarize-csv-results \ - --max-resource-count $(MAX_RESOURCE_COUNT) \ - TestResults/*.csv - -# Dafny helper targets - -# Transpile the entire project's impl -_transpile_implementation_all: TRANSPILE_TARGETS=$(if ${DIR_STRUCTURE_V2}, $(patsubst %, ./dafny/%/src/Index.dfy, $(PROJECT_SERVICES)), src/Index.dfy) -_transpile_implementation_all: TRANSPILE_DEPENDENCIES=$(patsubst %, -library:$(PROJECT_ROOT)/%, $(PROJECT_INDEX)) -_transpile_implementation_all: transpile_implementation - -# The `$(OUT)` and $(TARGET) variables are problematic. -# Ideally they are different for every target call. -# However the way make evaluates variables -# having a target specific variable is hard. -# This all comes up because a project -# will need to also transpile its dependencies. -# This is worked around for now, -# by the fact that the `TARGET` -# for all these transpile calls will be the same. -# For `OUT` this is solved by making the paths relative. -# So that the runtime is express once -# and can be the same for all such runtimes. -# Since such targets are all shared, -# this is tractable. - -# At this time is is *significatly* faster -# to give Dafny a single file -# that includes everything -# than it is to pass each file to the CLI. -# ~2m vs ~10s for our large projects. -# Also the expectation is that verification happens in the `verify` target -transpile_implementation: - find ./dafny/**/src ./src -name 'Index.dfy' | sed -e 's/^/include "/' -e 's/$$/"/' | dafny \ - -stdin \ - -noVerify \ - -vcsCores:$(CORES) \ - -compileTarget:$(TARGET) \ - -spillTargetCode:3 \ - -compile:0 \ - -optimizeErasableDatatypeWrapper:0 \ - $(COMPILE_SUFFIX_OPTION) \ - -unicodeChar:0 \ - -functionSyntax:3 \ - -useRuntimeLib \ - -out $(OUT) \ - $(if $(strip $(STD_LIBRARY)) , -library:$(PROJECT_ROOT)/$(STD_LIBRARY)/src/Index.dfy, ) \ - $(TRANSPILE_DEPENDENCIES) - -# Transpile the entire project's tests -_transpile_test_all: TRANSPILE_DEPENDENCIES=$(if ${DIR_STRUCTURE_V2}, $(patsubst %, -library:dafny/%/src/Index.dfy, $(PROJECT_SERVICES)), -library:src/Index.dfy) -_transpile_test_all: transpile_test - -transpile_test: - find ./dafny/**/test ./test -name "*.dfy" -name '*.dfy' | sed -e 's/^/include "/' -e 's/$$/"/' | dafny \ - -stdin \ - -noVerify \ - -vcsCores:$(CORES) \ - -compileTarget:$(TARGET) \ - -spillTargetCode:3 \ - -runAllTests:1 \ - -compile:0 \ - -optimizeErasableDatatypeWrapper:0 \ - $(COMPILE_SUFFIX_OPTION) \ - -unicodeChar:0 \ - -functionSyntax:3 \ - -useRuntimeLib \ - -out $(OUT) \ - $(if $(strip $(STD_LIBRARY)) , -library:$(PROJECT_ROOT)/$(STD_LIBRARY)/src/Index.dfy, ) \ - $(TRANSPILE_DEPENDENCIES) - - -# If we are not the StandardLibrary, transpile the StandardLibrary. -# Transpile all other dependencies -transpile_dependencies: - $(if $(strip $(STD_LIBRARY)), $(MAKE) -C $(PROJECT_ROOT)/$(STD_LIBRARY) transpile_implementation_$(LANG), ) - $(patsubst %, $(MAKE) -C $(PROJECT_ROOT)/% transpile_implementation_$(LANG);, $(PROJECT_DEPENDENCIES)) - -########################## Code-Gen targets - -# StandardLibrary is filtered out from dependent-model patsubst list; -# Its model is contained in $(LIBRARY_ROOT)/model, not $(LIBRARY_ROOT)/../StandardLibrary/Model. - -# The OUTPUT variables are created this way -# so that it is possible to run _parts_ of polymorph. -# Otherwise it is difficult to run/test only a Dafny change. -# Since they are defined per target -# a single target can decide what parts it wants to build. - -# NOTE : below we say --dafny-version 4.1, evn though we're on dafny 4.2 -# This is because there's a bug in smithy-dafny that does the wrong thing with --dafny-version 4.1 -# In the future the dafny version should be retrieved from a central source so it's the same everywhere -_polymorph: - @: $(if ${CODEGEN_CLI_ROOT},,$(error You must pass the path CODEGEN_CLI_ROOT: CODEGEN_CLI_ROOT=/[path]/[to]/smithy-dafny/codegen/smithy-dafny-codegen-cli)); - cd $(CODEGEN_CLI_ROOT); \ - ./../gradlew run --args="\ - $(OUTPUT_DAFNY) \ - $(OUTPUT_DOTNET) \ - $(OUTPUT_JAVA) \ - --dafny-version 4.1 \ - --model $(if $(DIR_STRUCTURE_V2), $(LIBRARY_ROOT)/dafny/$(SERVICE)/Model, $(SMITHY_MODEL_ROOT)) \ - --dependent-model $(PROJECT_ROOT)/$(SMITHY_DEPS) \ - $(patsubst %, --dependent-model $(PROJECT_ROOT)/%/Model, $($(service_deps_var))) \ - --namespace $($(namespace_var)) \ - $(AWS_SDK_CMD) \ - $(OUTPUT_LOCAL_SERVICE) \ - "; - -# Generates all target runtime code for all namespaces in this project. -.PHONY: polymorph_code_gen -polymorph_code_gen: - for service in $(PROJECT_SERVICES) ; do \ - export service_deps_var=SERVICE_DEPS_$${service} ; \ - export namespace_var=SERVICE_NAMESPACE_$${service} ; \ - export SERVICE=$${service} ; \ - $(MAKE) _polymorph_code_gen || exit 1; \ - done - -_polymorph_code_gen: OUTPUT_DAFNY=\ - --output-dafny $(if $(DIR_STRUCTURE_V2), $(LIBRARY_ROOT)/dafny/$(SERVICE)/Model, $(LIBRARY_ROOT)/Model) \ - --include-dafny $(PROJECT_ROOT)/$(STD_LIBRARY)/src/Index.dfy -_polymorph_code_gen: OUTPUT_DOTNET=\ - $(if $(DIR_STRUCTURE_V2), --output-dotnet $(LIBRARY_ROOT)/runtimes/net/Generated/$(SERVICE)/, --output-dotnet $(LIBRARY_ROOT)/runtimes/net/Generated/) -_polymorph_code_gen: OUTPUT_JAVA=--output-java $(LIBRARY_ROOT)/runtimes/java/src/main/smithy-generated -_polymorph_code_gen: _polymorph - -# Generates dafny code for all namespaces in this project -.PHONY: polymorph_dafny -polymorph_dafny: - for service in $(PROJECT_SERVICES) ; do \ - export service_deps_var=SERVICE_DEPS_$${service} ; \ - export namespace_var=SERVICE_NAMESPACE_$${service} ; \ - export SERVICE=$${service} ; \ - $(MAKE) _polymorph_dafny || exit 1; \ - done - -_polymorph_dafny: OUTPUT_DAFNY=\ - --output-dafny $(if $(DIR_STRUCTURE_V2), $(LIBRARY_ROOT)/dafny/$(SERVICE)/Model, $(LIBRARY_ROOT)/Model) \ - --include-dafny $(PROJECT_ROOT)/$(STD_LIBRARY)/src/Index.dfy -_polymorph_dafny: _polymorph - -# Generates dotnet code for all namespaces in this project -.PHONY: polymorph_dotnet -polymorph_dotnet: - for service in $(PROJECT_SERVICES) ; do \ - export service_deps_var=SERVICE_DEPS_$${service} ; \ - export namespace_var=SERVICE_NAMESPACE_$${service} ; \ - export SERVICE=$${service} ; \ - $(MAKE) _polymorph_dotnet || exit 1; \ - done - -_polymorph_dotnet: OUTPUT_DOTNET=\ - $(if $(DIR_STRUCTURE_V2), --output-dotnet $(LIBRARY_ROOT)/runtimes/net/Generated/$(SERVICE)/, --output-dotnet $(LIBRARY_ROOT)/runtimes/net/Generated/) -_polymorph_dotnet: _polymorph - -# Generates java code for all namespaces in this project -.PHONY: polymorph_java -polymorph_java: - for service in $(PROJECT_SERVICES) ; do \ - export service_deps_var=SERVICE_DEPS_$${service} ; \ - export namespace_var=SERVICE_NAMESPACE_$${service} ; \ - export SERVICE=$${service} ; \ - $(MAKE) _polymorph_java || exit 1; \ - done - -_polymorph_java: OUTPUT_JAVA=--output-java $(LIBRARY_ROOT)/runtimes/java/src/main/smithy-generated -_polymorph_java: _polymorph - -########################## .NET targets - -transpile_net: | transpile_implementation_net transpile_test_net transpile_dependencies_net - -transpile_implementation_net: TARGET=cs -transpile_implementation_net: OUT=runtimes/net/ImplementationFromDafny -transpile_implementation_net: _transpile_implementation_all - -transpile_test_net: TARGET=cs -transpile_test_net: OUT=runtimes/net/tests/TestsFromDafny -transpile_test_net: _transpile_test_all - -transpile_dependencies_net: LANG=net -transpile_dependencies_net: transpile_dependencies - -test_net: FRAMEWORK=net6.0 -test_net: - dotnet run \ - --project runtimes/net/tests/ \ - --framework $(FRAMEWORK) - -test_net_mac_intel: FRAMEWORK=net6.0 -test_net_mac_intel: - DYLD_LIBRARY_PATH="/usr/local/opt/openssl@1.1/lib" dotnet run \ - --project runtimes/net/tests/ \ - --framework $(FRAMEWORK) - -test_net_mac_brew: FRAMEWORK=net6.0 -test_net_mac_brew: - DYLD_LIBRARY_PATH="$(shell brew --prefix)/opt/openssl@1.1/lib/" dotnet run \ - --project runtimes/net/tests/ \ - --framework $(FRAMEWORK) - -setup_net: - dotnet restore runtimes/net/ - -########################## Java targets - -build_java: transpile_java mvn_local_deploy_dependencies - gradle -p runtimes/java build - -transpile_java: | transpile_implementation_java transpile_test_java transpile_dependencies_java - -transpile_implementation_java: TARGET=java -transpile_implementation_java: OUT=runtimes/java/ImplementationFromDafny -transpile_implementation_java: _transpile_implementation_all _mv_implementation_java - -transpile_test_java: TARGET=java -transpile_test_java: OUT=runtimes/java/TestsFromDafny -transpile_test_java: _transpile_test_all _mv_test_java - -# Currently Dafny compiles to Java by changing the directory name. -# Java puts things under a `java` directory. -# To avoid `java/implementation-java` the code is generated and then moved. -_mv_implementation_java: - rm -rf runtimes/java/src/main/dafny-generated - mv runtimes/java/ImplementationFromDafny-java runtimes/java/src/main/dafny-generated -_mv_test_java: - rm -rf runtimes/java/src/test/dafny-generated - mkdir -p runtimes/java/src/test - mv runtimes/java/TestsFromDafny-java runtimes/java/src/test/dafny-generated - -transpile_dependencies_java: LANG=java -transpile_dependencies_java: transpile_dependencies - -# If we are not StandardLibrary, locally deploy the StandardLibrary. -# Locally deploy all other dependencies -mvn_local_deploy_dependencies: - $(if $(strip $(STD_LIBRARY)), $(MAKE) -C $(PROJECT_ROOT)/$(STD_LIBRARY) mvn_local_deploy, ) - $(patsubst %, $(MAKE) -C $(PROJECT_ROOT)/% mvn_local_deploy;, $(PROJECT_DEPENDENCIES)) - -# The Java MUST all exist already through the transpile step. -mvn_local_deploy: - gradle -p runtimes/java publishMavenLocalPublicationToMavenLocal - -mvn_staging_deploy: - gradle -p runtimes/java publishMavenPublicationToStagingCodeArtifactRepository - -test_java: - # run Dafny generated tests - gradle -p runtimes/java runTests - -########################## local testing targets - -# These targets are added as a convenience for local development. -# If you experience weird behavior using these targets, -# fall back to the regular `build` or `test` targets. -# These targets MUST only be used for local testing, -# and MUST NOT be used in CI. - -# Targets to transpile single local service for convenience. -# Specify the local service to build by passing a SERVICE env var. -# Note that this does not generate identical files as `transpile_implementation_java` - -local_transpile_impl_java_single: TARGET=java -local_transpile_impl_java_single: OUT=runtimes/java/ImplementationFromDafny -local_transpile_impl_java_single: local_transpile_impl_single - cp -R runtimes/java/ImplementationFromDafny-java/* runtimes/java/src/main/dafny-generated - rm -rf runtimes/java/ImplementationFromDafny-java/ - -local_transpile_impl_net_single: TARGET=cs -local_transpile_impl_net_single: OUT=runtimes/net/ImplementationFromDafny -local_transpile_impl_net_single: local_transpile_impl_single - -local_transpile_impl_single: deps_var=SERVICE_DEPS_$(SERVICE) -local_transpile_impl_single: TRANSPILE_TARGETS=./dafny/$(SERVICE)/src/$(FILE) -local_transpile_impl_single: TRANSPILE_DEPENDENCIES= \ - $(patsubst %, -library:$(PROJECT_ROOT)/%/src/Index.dfy, $($(deps_var))) \ - $(patsubst %, -library:$(PROJECT_ROOT)/%, $(PROJECT_INDEX)) \ - -library:$(PROJECT_ROOT)/$(STD_LIBRARY)/src/Index.dfy -local_transpile_impl_single: transpile_implementation - -# Targets to transpile single local service for convenience. -# Specify the local service to build by passing a SERVICE env var. -# Note that this does not generate identical files as `transpile_test_java`, -# and will clobber tests generated by other services. - -local_transpile_test_java_single: TARGET=java -local_transpile_test_java_single: OUT=runtimes/java/TestsFromDafny -local_transpile_test_java_single: local_transpile_test_single - cp -R runtimes/java/TestsFromDafny-java/* runtimes/java/src/test/dafny-generated - rm -rf runtimes/java/TestsFromDafny-java -local_transpile_test_net_single: TARGET=cs -local_transpile_test_net_single: OUT=runtimes/net/tests/TestsFromDafny -local_transpile_test_net_single: local_transpile_test_single +SMITHY_DAFNY_ROOT := $(PROJECT_ROOT)/submodules/smithy-dafny +GRADLEW := ./runtimes/java/gradlew -local_transpile_test_single: TRANSPILE_TARGETS=./dafny/$(SERVICE)/test/$(FILE) -local_transpile_test_single: TRANSPILE_DEPENDENCIES= \ - $(patsubst %, -library:dafny/%/src/Index.dfy, $(PROJECT_SERVICES)) \ - $(patsubst %, -library:$(PROJECT_ROOT)/%, $(PROJECT_INDEX)) \ - -library:$(PROJECT_ROOT)/$(STD_LIBRARY)/src/Index.dfy -local_transpile_test_single: transpile_test +include $(SMITHY_DAFNY_ROOT)/SmithyDafnyMakefile.mk diff --git a/TestVectors/dafny/DDBEncryption/Model/AwsCryptographyDbEncryptionSdkDynamoDbTypesWrapped.dfy b/TestVectors/dafny/DDBEncryption/Model/AwsCryptographyDbEncryptionSdkDynamoDbTypesWrapped.dfy index 02010514e..32493877f 100644 --- a/TestVectors/dafny/DDBEncryption/Model/AwsCryptographyDbEncryptionSdkDynamoDbTypesWrapped.dfy +++ b/TestVectors/dafny/DDBEncryption/Model/AwsCryptographyDbEncryptionSdkDynamoDbTypesWrapped.dfy @@ -2,19 +2,19 @@ // SPDX-License-Identifier: Apache-2.0 // Do not modify this file. This file is machine generated, and any changes to it will be overwritten. include "../../../../submodules/MaterialProviders/StandardLibrary/src/Index.dfy" - include "../src/Index.dfy" - abstract module WrappedAbstractAwsCryptographyDbEncryptionSdkDynamoDbService { - import opened Wrappers - import opened StandardLibrary.UInt - import opened UTF8 - import opened Types = AwsCryptographyDbEncryptionSdkDynamoDbTypes - import WrappedService : AbstractAwsCryptographyDbEncryptionSdkDynamoDbService - function method WrappedDefaultDynamoDbEncryptionConfig(): DynamoDbEncryptionConfig - method {:extern} WrappedDynamoDbEncryption(config: DynamoDbEncryptionConfig := WrappedDefaultDynamoDbEncryptionConfig()) - returns (res: Result) - ensures res.Success? ==> - && fresh(res.value) - && fresh(res.value.Modifies) - && fresh(res.value.History) - && res.value.ValidState() +include "../src/Index.dfy" +abstract module WrappedAbstractAwsCryptographyDbEncryptionSdkDynamoDbService { + import opened Wrappers + import opened StandardLibrary.UInt + import opened UTF8 + import opened Types = AwsCryptographyDbEncryptionSdkDynamoDbTypes + import WrappedService : AbstractAwsCryptographyDbEncryptionSdkDynamoDbService + function method WrappedDefaultDynamoDbEncryptionConfig(): DynamoDbEncryptionConfig + method {:extern} WrappedDynamoDbEncryption(config: DynamoDbEncryptionConfig := WrappedDefaultDynamoDbEncryptionConfig()) + returns (res: Result) + ensures res.Success? ==> + && fresh(res.value) + && fresh(res.value.Modifies) + && fresh(res.value.History) + && res.value.ValidState() } diff --git a/TestVectors/dafny/DDBEncryption/Model/AwsCryptographyDynamoDbEncryptionTypesWrapped.dfy b/TestVectors/dafny/DDBEncryption/Model/AwsCryptographyDynamoDbEncryptionTypesWrapped.dfy index 2c48c4f48..cb0d63baa 100644 --- a/TestVectors/dafny/DDBEncryption/Model/AwsCryptographyDynamoDbEncryptionTypesWrapped.dfy +++ b/TestVectors/dafny/DDBEncryption/Model/AwsCryptographyDynamoDbEncryptionTypesWrapped.dfy @@ -2,22 +2,22 @@ // SPDX-License-Identifier: Apache-2.0 // Do not modify this file. This file is machine generated, and any changes to it will be overwritten. include "../../../../submodules/MaterialProviders/StandardLibrary/src/Index.dfy" - // BEGIN MANUAL EDIT - include "../../../../DynamoDbEncryption/dafny/DynamoDbEncryption/src/Index.dfy" - include "../../../../submodules/MaterialProviders/TestVectorsAwsCryptographicMaterialProviders/dafny/KeyVectors/src/Index.dfy" -// END MANUAL EDIT - abstract module WrappedAbstractAwsCryptographyDynamoDbEncryptionService { - import opened Wrappers - import opened StandardLibrary.UInt - import opened UTF8 - import opened Types = AwsCryptographyDbEncryptionSdkDynamoDbTypes - import WrappedService : AbstractAwsCryptographyDbEncryptionSdkDynamoDbService - function method WrappedDefaultDynamoDbEncryptionConfig(): DynamoDbEncryptionConfig - method {:extern} WrappedDynamoDbEncryption(config: DynamoDbEncryptionConfig := WrappedDefaultDynamoDbEncryptionConfig()) - returns (res: Result) - ensures res.Success? ==> - && fresh(res.value) - && fresh(res.value.Modifies) - && fresh(res.value.History) - && res.value.ValidState() + // BEGIN MANUAL EDIT +include "../../../../DynamoDbEncryption/dafny/DynamoDbEncryption/src/Index.dfy" +include "../../../../submodules/MaterialProviders/TestVectorsAwsCryptographicMaterialProviders/dafny/KeyVectors/src/Index.dfy" + // END MANUAL EDIT +abstract module WrappedAbstractAwsCryptographyDynamoDbEncryptionService { + import opened Wrappers + import opened StandardLibrary.UInt + import opened UTF8 + import opened Types = AwsCryptographyDbEncryptionSdkDynamoDbTypes + import WrappedService : AbstractAwsCryptographyDbEncryptionSdkDynamoDbService + function method WrappedDefaultDynamoDbEncryptionConfig(): DynamoDbEncryptionConfig + method {:extern} WrappedDynamoDbEncryption(config: DynamoDbEncryptionConfig := WrappedDefaultDynamoDbEncryptionConfig()) + returns (res: Result) + ensures res.Success? ==> + && fresh(res.value) + && fresh(res.value.Modifies) + && fresh(res.value.History) + && res.value.ValidState() } diff --git a/TestVectors/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/wrapped/TestDynamoDbEncryption.java b/TestVectors/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/wrapped/TestDynamoDbEncryption.java index 2abb50d9c..c1749520d 100644 --- a/TestVectors/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/wrapped/TestDynamoDbEncryption.java +++ b/TestVectors/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/wrapped/TestDynamoDbEncryption.java @@ -16,6 +16,7 @@ import software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbEncryptionClient; public class TestDynamoDbEncryption implements IDynamoDbEncryptionClient { + private final DynamoDbEncryption _impl; protected TestDynamoDbEncryption(BuilderImpl builder) { @@ -26,12 +27,19 @@ public static Builder builder() { return new BuilderImpl(); } - public Result CreateDynamoDbEncryptionBranchKeyIdSupplier( - CreateDynamoDbEncryptionBranchKeyIdSupplierInput dafnyInput) { - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.CreateDynamoDbEncryptionBranchKeyIdSupplierInput nativeInput = ToNative.CreateDynamoDbEncryptionBranchKeyIdSupplierInput(dafnyInput); + public Result< + CreateDynamoDbEncryptionBranchKeyIdSupplierOutput, + Error + > CreateDynamoDbEncryptionBranchKeyIdSupplier( + CreateDynamoDbEncryptionBranchKeyIdSupplierInput dafnyInput + ) { try { - software.amazon.cryptography.dbencryptionsdk.dynamodb.model.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput nativeOutput = this._impl.CreateDynamoDbEncryptionBranchKeyIdSupplier(nativeInput); - CreateDynamoDbEncryptionBranchKeyIdSupplierOutput dafnyOutput = ToDafny.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput(nativeOutput); + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.CreateDynamoDbEncryptionBranchKeyIdSupplierInput nativeInput = + ToNative.CreateDynamoDbEncryptionBranchKeyIdSupplierInput(dafnyInput); + software.amazon.cryptography.dbencryptionsdk.dynamodb.model.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput nativeOutput = + this._impl.CreateDynamoDbEncryptionBranchKeyIdSupplier(nativeInput); + CreateDynamoDbEncryptionBranchKeyIdSupplierOutput dafnyOutput = + ToDafny.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput(nativeOutput); return Result.create_Success(dafnyOutput); } catch (RuntimeException ex) { return Result.create_Failure(ToDafny.Error(ex)); @@ -47,10 +55,10 @@ public interface Builder { } static class BuilderImpl implements Builder { + protected DynamoDbEncryption impl; - protected BuilderImpl() { - } + protected BuilderImpl() {} public Builder impl(DynamoDbEncryption impl) { this.impl = impl; @@ -62,8 +70,10 @@ public DynamoDbEncryption impl() { } public TestDynamoDbEncryption build() { - if (Objects.isNull(this.impl())) { - throw new IllegalArgumentException("Missing value for required field `impl`"); + if (Objects.isNull(this.impl())) { + throw new IllegalArgumentException( + "Missing value for required field `impl`" + ); } return new TestDynamoDbEncryption(this); } diff --git a/TestVectors/runtimes/net/Extern/CreateClient.cs b/TestVectors/runtimes/net/Extern/CreateClient.cs index b32d0b606..573d0bdc8 100644 --- a/TestVectors/runtimes/net/Extern/CreateClient.cs +++ b/TestVectors/runtimes/net/Extern/CreateClient.cs @@ -3,30 +3,32 @@ using Wrappers_Compile; using _IError = software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IError; -namespace CreateInterceptedDDBClient_Compile { +namespace CreateInterceptedDDBClient_Compile +{ - public partial class __default { - public static _IResult CreateInterceptedDDBClient(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IDynamoDbTablesEncryptionConfig config) + public partial class __default { - var clientConfig = new AmazonDynamoDBConfig(); - clientConfig.ServiceURL = "http://localhost:8000"; - - var native = AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TypeConversion - .FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S30_DynamoDbTablesEncryptionConfig( - config); + public static _IResult CreateInterceptedDDBClient(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IDynamoDbTablesEncryptionConfig config) + { + var clientConfig = new AmazonDynamoDBConfig(); + clientConfig.ServiceURL = "http://localhost:8000"; - var client = new Client.DynamoDbClient(clientConfig, native); - var c2 = new Com.Amazonaws.Dynamodb.DynamoDBv2Shim(client); - return new Result_Success(c2); - } - public static _IResult CreateVanillaDDBClient() - { - var clientConfig = new AmazonDynamoDBConfig(); - clientConfig.ServiceURL = "http://localhost:8000"; - var client = new AmazonDynamoDBClient(clientConfig); - var c2 = new Com.Amazonaws.Dynamodb.DynamoDBv2Shim(client); - return new Result_Success(c2); + var native = AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms.TypeConversion + .FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S30_DynamoDbTablesEncryptionConfig( + config); + + var client = new Client.DynamoDbClient(clientConfig, native); + var c2 = new Com.Amazonaws.Dynamodb.DynamoDBv2Shim(client); + return new Result_Success(c2); + } + public static _IResult CreateVanillaDDBClient() + { + var clientConfig = new AmazonDynamoDBConfig(); + clientConfig.ServiceURL = "http://localhost:8000"; + var client = new AmazonDynamoDBClient(clientConfig); + var c2 = new Com.Amazonaws.Dynamodb.DynamoDBv2Shim(client); + return new Result_Success(c2); + } } - } } diff --git a/TestVectors/runtimes/net/Generated/DDBEncryption/DynamoDbEncryptionShim.cs b/TestVectors/runtimes/net/Generated/DDBEncryption/DynamoDbEncryptionShim.cs new file mode 100644 index 000000000..e7c16dc46 --- /dev/null +++ b/TestVectors/runtimes/net/Generated/DDBEncryption/DynamoDbEncryptionShim.cs @@ -0,0 +1,55 @@ +// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +// Do not modify this file. This file is machine generated, and any changes to it will be overwritten. +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace AWS.Cryptography.DbEncryptionSDK.DynamoDb.Wrapped +{ + public class DynamoDbEncryptionShim : software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbEncryptionClient + { + public AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbEncryption _impl; + public DynamoDbEncryptionShim(AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbEncryption impl) + { + this._impl = impl; + } + public Wrappers_Compile._IResult CreateDynamoDbEncryptionBranchKeyIdSupplier(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ICreateDynamoDbEncryptionBranchKeyIdSupplierInput request) + { + try + { + AWS.Cryptography.DbEncryptionSDK.DynamoDb.CreateDynamoDbEncryptionBranchKeyIdSupplierInput unWrappedRequest = TypeConversion.FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S48_CreateDynamoDbEncryptionBranchKeyIdSupplierInput(request); + AWS.Cryptography.DbEncryptionSDK.DynamoDb.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput wrappedResponse = + this._impl.CreateDynamoDbEncryptionBranchKeyIdSupplier(unWrappedRequest); + return Wrappers_Compile.Result.create_Success(TypeConversion.ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S49_CreateDynamoDbEncryptionBranchKeyIdSupplierOutput(wrappedResponse)); + } + catch (System.Exception ex) + { + return Wrappers_Compile.Result.create_Failure(this.ConvertError(ex)); + } + + } + private software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IError ConvertError(System.Exception error) + { + + switch (error) + { + case AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbEncryptionException e: + return TypeConversion.ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S27_DynamoDbEncryptionException(e); + + case CollectionOfErrors collectionOfErrors: + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_CollectionOfErrors( + Dafny.Sequence + .FromArray( + collectionOfErrors.list.Select + (x => TypeConversion.ToDafny_CommonError(x)) + .ToArray()), + Dafny.Sequence.FromString(collectionOfErrors.Message) + ); + default: + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_Opaque(error); + + } + } + } +} diff --git a/TestVectors/runtimes/net/Generated/DDBEncryption/TypeConversion.cs b/TestVectors/runtimes/net/Generated/DDBEncryption/TypeConversion.cs new file mode 100644 index 000000000..c4b5803f8 --- /dev/null +++ b/TestVectors/runtimes/net/Generated/DDBEncryption/TypeConversion.cs @@ -0,0 +1,1402 @@ +// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +// Do not modify this file. This file is machine generated, and any changes to it will be overwritten. +using System.Linq; +using System; +namespace AWS.Cryptography.DbEncryptionSDK.DynamoDb.Wrapped +{ + public static class TypeConversion + { + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconKeySource FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_BeaconKeySource(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IBeaconKeySource value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconKeySource concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconKeySource)value; + var converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconKeySource(); if (value.is_single) + { + converted.Single = FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_BeaconKeySource__M6_single(concrete.dtor_single); + return converted; + } + if (value.is_multi) + { + converted.Multi = FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_BeaconKeySource__M5_multi(concrete.dtor_multi); + return converted; + } + throw new System.ArgumentException("Invalid AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconKeySource state"); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IBeaconKeySource ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_BeaconKeySource(AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconKeySource value) + { + value.Validate(); if (value.IsSetSingle()) + { + return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconKeySource.create_single(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_BeaconKeySource__M6_single(value.Single)); + } + if (value.IsSetMulti()) + { + return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconKeySource.create_multi(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_BeaconKeySource__M5_multi(value.Multi)); + } + throw new System.ArgumentException("Invalid AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconKeySource state"); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconStyle FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IBeaconStyle value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconStyle concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconStyle)value; + var converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconStyle(); if (value.is_partOnly) + { + converted.PartOnly = FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M8_partOnly(concrete.dtor_partOnly); + return converted; + } + if (value.is_shared) + { + converted.Shared = FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M6_shared(concrete.dtor_shared); + return converted; + } + if (value.is_asSet) + { + converted.AsSet = FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M5_asSet(concrete.dtor_asSet); + return converted; + } + if (value.is_sharedSet) + { + converted.SharedSet = FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M9_sharedSet(concrete.dtor_sharedSet); + return converted; + } + throw new System.ArgumentException("Invalid AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconStyle state"); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IBeaconStyle ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle(AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconStyle value) + { + value.Validate(); if (value.IsSetPartOnly()) + { + return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconStyle.create_partOnly(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M8_partOnly(value.PartOnly)); + } + if (value.IsSetShared()) + { + return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconStyle.create_shared(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M6_shared(value.Shared)); + } + if (value.IsSetAsSet()) + { + return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconStyle.create_asSet(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M5_asSet(value.AsSet)); + } + if (value.IsSetSharedSet()) + { + return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconStyle.create_sharedSet(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M9_sharedSet(value.SharedSet)); + } + throw new System.ArgumentException("Invalid AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconStyle state"); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.CreateDynamoDbEncryptionBranchKeyIdSupplierInput FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S48_CreateDynamoDbEncryptionBranchKeyIdSupplierInput(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ICreateDynamoDbEncryptionBranchKeyIdSupplierInput value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CreateDynamoDbEncryptionBranchKeyIdSupplierInput concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CreateDynamoDbEncryptionBranchKeyIdSupplierInput)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.CreateDynamoDbEncryptionBranchKeyIdSupplierInput converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.CreateDynamoDbEncryptionBranchKeyIdSupplierInput(); converted.DdbKeyBranchKeyIdSupplier = (AWS.Cryptography.DbEncryptionSDK.DynamoDb.IDynamoDbKeyBranchKeyIdSupplier)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S48_CreateDynamoDbEncryptionBranchKeyIdSupplierInput__M25_ddbKeyBranchKeyIdSupplier(concrete._ddbKeyBranchKeyIdSupplier); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ICreateDynamoDbEncryptionBranchKeyIdSupplierInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S48_CreateDynamoDbEncryptionBranchKeyIdSupplierInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.CreateDynamoDbEncryptionBranchKeyIdSupplierInput value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CreateDynamoDbEncryptionBranchKeyIdSupplierInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S48_CreateDynamoDbEncryptionBranchKeyIdSupplierInput__M25_ddbKeyBranchKeyIdSupplier(value.DdbKeyBranchKeyIdSupplier)); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S49_CreateDynamoDbEncryptionBranchKeyIdSupplierOutput(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ICreateDynamoDbEncryptionBranchKeyIdSupplierOutput value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput(); converted.BranchKeyIdSupplier = (AWS.Cryptography.MaterialProviders.IBranchKeyIdSupplier)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S49_CreateDynamoDbEncryptionBranchKeyIdSupplierOutput__M19_branchKeyIdSupplier(concrete._branchKeyIdSupplier); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ICreateDynamoDbEncryptionBranchKeyIdSupplierOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S49_CreateDynamoDbEncryptionBranchKeyIdSupplierOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.CreateDynamoDbEncryptionBranchKeyIdSupplierOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S49_CreateDynamoDbEncryptionBranchKeyIdSupplierOutput__M19_branchKeyIdSupplier(value.BranchKeyIdSupplier)); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbEncryptionConfig FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S24_DynamoDbEncryptionConfig(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IDynamoDbEncryptionConfig value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbEncryptionConfig concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbEncryptionConfig)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbEncryptionConfig converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbEncryptionConfig(); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IDynamoDbEncryptionConfig ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S24_DynamoDbEncryptionConfig(AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbEncryptionConfig value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbEncryptionConfig(); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbEncryptionException FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S27_DynamoDbEncryptionException(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_DynamoDbEncryptionException value) + { + return new AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbEncryptionException( + FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S27_DynamoDbEncryptionException__M7_message(value._message) + ); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_DynamoDbEncryptionException ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S27_DynamoDbEncryptionException(AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbEncryptionException value) + { + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_DynamoDbEncryptionException( + ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S27_DynamoDbEncryptionException__M7_message(value.Message) + ); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetBranchKeyIdFromDdbKeyInput FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S29_GetBranchKeyIdFromDdbKeyInput(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetBranchKeyIdFromDdbKeyInput value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyInput concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyInput)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetBranchKeyIdFromDdbKeyInput converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetBranchKeyIdFromDdbKeyInput(); converted.DdbKey = (System.Collections.Generic.Dictionary)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S29_GetBranchKeyIdFromDdbKeyInput__M6_ddbKey(concrete._ddbKey); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetBranchKeyIdFromDdbKeyInput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S29_GetBranchKeyIdFromDdbKeyInput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetBranchKeyIdFromDdbKeyInput value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyInput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S29_GetBranchKeyIdFromDdbKeyInput__M6_ddbKey(value.DdbKey)); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetBranchKeyIdFromDdbKeyOutput FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S30_GetBranchKeyIdFromDdbKeyOutput(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetBranchKeyIdFromDdbKeyOutput value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyOutput concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyOutput)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetBranchKeyIdFromDdbKeyOutput converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetBranchKeyIdFromDdbKeyOutput(); converted.BranchKeyId = (string)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S30_GetBranchKeyIdFromDdbKeyOutput__M11_branchKeyId(concrete._branchKeyId); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetBranchKeyIdFromDdbKeyOutput ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S30_GetBranchKeyIdFromDdbKeyOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetBranchKeyIdFromDdbKeyOutput value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetBranchKeyIdFromDdbKeyOutput(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S30_GetBranchKeyIdFromDdbKeyOutput__M11_branchKeyId(value.BranchKeyId)); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.LegacyPolicy FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_LegacyPolicy(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ILegacyPolicy value) + { + if (value.is_FORCE__LEGACY__ENCRYPT__ALLOW__LEGACY__DECRYPT) return AWS.Cryptography.DbEncryptionSDK.DynamoDb.LegacyPolicy.FORCE_LEGACY_ENCRYPT_ALLOW_LEGACY_DECRYPT; + if (value.is_FORBID__LEGACY__ENCRYPT__ALLOW__LEGACY__DECRYPT) return AWS.Cryptography.DbEncryptionSDK.DynamoDb.LegacyPolicy.FORBID_LEGACY_ENCRYPT_ALLOW_LEGACY_DECRYPT; + if (value.is_FORBID__LEGACY__ENCRYPT__FORBID__LEGACY__DECRYPT) return AWS.Cryptography.DbEncryptionSDK.DynamoDb.LegacyPolicy.FORBID_LEGACY_ENCRYPT_FORBID_LEGACY_DECRYPT; + throw new System.ArgumentException("Invalid AWS.Cryptography.DbEncryptionSDK.DynamoDb.LegacyPolicy value"); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ILegacyPolicy ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_LegacyPolicy(AWS.Cryptography.DbEncryptionSDK.DynamoDb.LegacyPolicy value) + { + if (AWS.Cryptography.DbEncryptionSDK.DynamoDb.LegacyPolicy.FORCE_LEGACY_ENCRYPT_ALLOW_LEGACY_DECRYPT.Equals(value)) return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.LegacyPolicy.create_FORCE__LEGACY__ENCRYPT__ALLOW__LEGACY__DECRYPT(); + if (AWS.Cryptography.DbEncryptionSDK.DynamoDb.LegacyPolicy.FORBID_LEGACY_ENCRYPT_ALLOW_LEGACY_DECRYPT.Equals(value)) return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.LegacyPolicy.create_FORBID__LEGACY__ENCRYPT__ALLOW__LEGACY__DECRYPT(); + if (AWS.Cryptography.DbEncryptionSDK.DynamoDb.LegacyPolicy.FORBID_LEGACY_ENCRYPT_FORBID_LEGACY_DECRYPT.Equals(value)) return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.LegacyPolicy.create_FORBID__LEGACY__ENCRYPT__FORBID__LEGACY__DECRYPT(); + throw new System.ArgumentException("Invalid AWS.Cryptography.DbEncryptionSDK.DynamoDb.LegacyPolicy value"); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.PlaintextOverride FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S17_PlaintextOverride(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IPlaintextOverride value) + { + if (value.is_FORCE__PLAINTEXT__WRITE__ALLOW__PLAINTEXT__READ) return AWS.Cryptography.DbEncryptionSDK.DynamoDb.PlaintextOverride.FORCE_PLAINTEXT_WRITE_ALLOW_PLAINTEXT_READ; + if (value.is_FORBID__PLAINTEXT__WRITE__ALLOW__PLAINTEXT__READ) return AWS.Cryptography.DbEncryptionSDK.DynamoDb.PlaintextOverride.FORBID_PLAINTEXT_WRITE_ALLOW_PLAINTEXT_READ; + if (value.is_FORBID__PLAINTEXT__WRITE__FORBID__PLAINTEXT__READ) return AWS.Cryptography.DbEncryptionSDK.DynamoDb.PlaintextOverride.FORBID_PLAINTEXT_WRITE_FORBID_PLAINTEXT_READ; + throw new System.ArgumentException("Invalid AWS.Cryptography.DbEncryptionSDK.DynamoDb.PlaintextOverride value"); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IPlaintextOverride ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S17_PlaintextOverride(AWS.Cryptography.DbEncryptionSDK.DynamoDb.PlaintextOverride value) + { + if (AWS.Cryptography.DbEncryptionSDK.DynamoDb.PlaintextOverride.FORCE_PLAINTEXT_WRITE_ALLOW_PLAINTEXT_READ.Equals(value)) return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.PlaintextOverride.create_FORCE__PLAINTEXT__WRITE__ALLOW__PLAINTEXT__READ(); + if (AWS.Cryptography.DbEncryptionSDK.DynamoDb.PlaintextOverride.FORBID_PLAINTEXT_WRITE_ALLOW_PLAINTEXT_READ.Equals(value)) return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.PlaintextOverride.create_FORBID__PLAINTEXT__WRITE__ALLOW__PLAINTEXT__READ(); + if (AWS.Cryptography.DbEncryptionSDK.DynamoDb.PlaintextOverride.FORBID_PLAINTEXT_WRITE_FORBID_PLAINTEXT_READ.Equals(value)) return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.PlaintextOverride.create_FORBID__PLAINTEXT__WRITE__FORBID__PLAINTEXT__READ(); + throw new System.ArgumentException("Invalid AWS.Cryptography.DbEncryptionSDK.DynamoDb.PlaintextOverride value"); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.VirtualTransform FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IVirtualTransform value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualTransform concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualTransform)value; + var converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.VirtualTransform(); if (value.is_upper) + { + converted.Upper = FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M5_upper(concrete.dtor_upper); + return converted; + } + if (value.is_lower) + { + converted.Lower = FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M5_lower(concrete.dtor_lower); + return converted; + } + if (value.is_insert) + { + converted.Insert = FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M6_insert(concrete.dtor_insert); + return converted; + } + if (value.is_prefix) + { + converted.Prefix = FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M6_prefix(concrete.dtor_prefix); + return converted; + } + if (value.is_suffix) + { + converted.Suffix = FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M6_suffix(concrete.dtor_suffix); + return converted; + } + if (value.is_substring) + { + converted.Substring = FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M9_substring(concrete.dtor_substring); + return converted; + } + if (value.is_segment) + { + converted.Segment = FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M7_segment(concrete.dtor_segment); + return converted; + } + if (value.is_segments) + { + converted.Segments = FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M8_segments(concrete.dtor_segments); + return converted; + } + throw new System.ArgumentException("Invalid AWS.Cryptography.DbEncryptionSDK.DynamoDb.VirtualTransform state"); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IVirtualTransform ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform(AWS.Cryptography.DbEncryptionSDK.DynamoDb.VirtualTransform value) + { + value.Validate(); if (value.IsSetUpper()) + { + return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualTransform.create_upper(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M5_upper(value.Upper)); + } + if (value.IsSetLower()) + { + return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualTransform.create_lower(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M5_lower(value.Lower)); + } + if (value.IsSetInsert()) + { + return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualTransform.create_insert(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M6_insert(value.Insert)); + } + if (value.IsSetPrefix()) + { + return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualTransform.create_prefix(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M6_prefix(value.Prefix)); + } + if (value.IsSetSuffix()) + { + return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualTransform.create_suffix(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M6_suffix(value.Suffix)); + } + if (value.IsSetSubstring()) + { + return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualTransform.create_substring(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M9_substring(value.Substring)); + } + if (value.IsSetSegment()) + { + return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualTransform.create_segment(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M7_segment(value.Segment)); + } + if (value.IsSetSegments()) + { + return software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.VirtualTransform.create_segments(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M8_segments(value.Segments)); + } + throw new System.ArgumentException("Invalid AWS.Cryptography.DbEncryptionSDK.DynamoDb.VirtualTransform state"); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.SingleKeyStore FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_BeaconKeySource__M6_single(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ISingleKeyStore value) + { + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore(value); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ISingleKeyStore ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_BeaconKeySource__M6_single(AWS.Cryptography.DbEncryptionSDK.DynamoDb.SingleKeyStore value) + { + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore(value); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.MultiKeyStore FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_BeaconKeySource__M5_multi(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IMultiKeyStore value) + { + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore(value); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IMultiKeyStore ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_BeaconKeySource__M5_multi(AWS.Cryptography.DbEncryptionSDK.DynamoDb.MultiKeyStore value) + { + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore(value); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.PartOnly FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M8_partOnly(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IPartOnly value) + { + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S8_PartOnly(value); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IPartOnly ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M8_partOnly(AWS.Cryptography.DbEncryptionSDK.DynamoDb.PartOnly value) + { + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S8_PartOnly(value); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Shared FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M6_shared(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IShared value) + { + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Shared(value); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IShared ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M6_shared(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Shared value) + { + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Shared(value); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.AsSet FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M5_asSet(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IAsSet value) + { + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_AsSet(value); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IAsSet ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M5_asSet(AWS.Cryptography.DbEncryptionSDK.DynamoDb.AsSet value) + { + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_AsSet(value); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.SharedSet FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M9_sharedSet(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ISharedSet value) + { + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_SharedSet(value); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ISharedSet ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_BeaconStyle__M9_sharedSet(AWS.Cryptography.DbEncryptionSDK.DynamoDb.SharedSet value) + { + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_SharedSet(value); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.IDynamoDbKeyBranchKeyIdSupplier FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S48_CreateDynamoDbEncryptionBranchKeyIdSupplierInput__M25_ddbKeyBranchKeyIdSupplier(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier value) + { + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S39_DynamoDbKeyBranchKeyIdSupplierReference(value); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S48_CreateDynamoDbEncryptionBranchKeyIdSupplierInput__M25_ddbKeyBranchKeyIdSupplier(AWS.Cryptography.DbEncryptionSDK.DynamoDb.IDynamoDbKeyBranchKeyIdSupplier value) + { + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S39_DynamoDbKeyBranchKeyIdSupplierReference(value); + } + public static AWS.Cryptography.MaterialProviders.IBranchKeyIdSupplier FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S49_CreateDynamoDbEncryptionBranchKeyIdSupplierOutput__M19_branchKeyIdSupplier(software.amazon.cryptography.materialproviders.internaldafny.types.IBranchKeyIdSupplier value) + { + return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_BranchKeyIdSupplierReference(value); + } + public static software.amazon.cryptography.materialproviders.internaldafny.types.IBranchKeyIdSupplier ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S49_CreateDynamoDbEncryptionBranchKeyIdSupplierOutput__M19_branchKeyIdSupplier(AWS.Cryptography.MaterialProviders.IBranchKeyIdSupplier value) + { + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_BranchKeyIdSupplierReference(value); + } + public static string FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S27_DynamoDbEncryptionException__M7_message(Dafny.ISequence value) + { + return FromDafny_N6_smithy__N3_api__S6_String(value); + } + public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S27_DynamoDbEncryptionException__M7_message(string value) + { + return ToDafny_N6_smithy__N3_api__S6_String(value); + } + public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S29_GetBranchKeyIdFromDdbKeyInput__M6_ddbKey(Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key(value); + } + public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S29_GetBranchKeyIdFromDdbKeyInput__M6_ddbKey(System.Collections.Generic.Dictionary value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key(value); + } + public static string FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S30_GetBranchKeyIdFromDdbKeyOutput__M11_branchKeyId(Dafny.ISequence value) + { + return FromDafny_N6_smithy__N3_api__S6_String(value); + } + public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S30_GetBranchKeyIdFromDdbKeyOutput__M11_branchKeyId(string value) + { + return ToDafny_N6_smithy__N3_api__S6_String(value); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Upper FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M5_upper(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IUpper value) + { + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_Upper(value); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IUpper ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M5_upper(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Upper value) + { + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_Upper(value); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Lower FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M5_lower(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ILower value) + { + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_Lower(value); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ILower ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M5_lower(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Lower value) + { + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_Lower(value); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Insert FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M6_insert(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IInsert value) + { + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Insert(value); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IInsert ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M6_insert(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Insert value) + { + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Insert(value); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetPrefix FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M6_prefix(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetPrefix value) + { + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetPrefix(value); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetPrefix ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M6_prefix(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetPrefix value) + { + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetPrefix(value); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSuffix FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M6_suffix(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSuffix value) + { + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetSuffix(value); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSuffix ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M6_suffix(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSuffix value) + { + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetSuffix(value); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSubstring FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M9_substring(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSubstring value) + { + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring(value); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSubstring ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M9_substring(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSubstring value) + { + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring(value); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegment FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M7_segment(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSegment value) + { + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment(value); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSegment ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M7_segment(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegment value) + { + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment(value); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegments FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M8_segments(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSegments value) + { + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments(value); + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSegments ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S16_VirtualTransform__M8_segments(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegments value) + { + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments(value); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.SingleKeyStore FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ISingleKeyStore value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SingleKeyStore concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SingleKeyStore)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.SingleKeyStore converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.SingleKeyStore(); converted.KeyId = (string)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore__M5_keyId(concrete._keyId); + converted.CacheTTL = (int)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore__M8_cacheTTL(concrete._cacheTTL); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ISingleKeyStore ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore(AWS.Cryptography.DbEncryptionSDK.DynamoDb.SingleKeyStore value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SingleKeyStore(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore__M5_keyId(value.KeyId), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore__M8_cacheTTL(value.CacheTTL)); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.MultiKeyStore FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IMultiKeyStore value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.MultiKeyStore concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.MultiKeyStore)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.MultiKeyStore converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.MultiKeyStore(); converted.KeyFieldName = (string)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M12_keyFieldName(concrete._keyFieldName); + converted.CacheTTL = (int)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M8_cacheTTL(concrete._cacheTTL); + if (concrete._cache.is_Some) converted.Cache = (AWS.Cryptography.MaterialProviders.CacheType)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M5_cache(concrete._cache); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IMultiKeyStore ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore(AWS.Cryptography.DbEncryptionSDK.DynamoDb.MultiKeyStore value) + { + value.Validate(); + AWS.Cryptography.MaterialProviders.CacheType var_cache = value.IsSetCache() ? value.Cache : (AWS.Cryptography.MaterialProviders.CacheType)null; + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.MultiKeyStore(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M12_keyFieldName(value.KeyFieldName), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M8_cacheTTL(value.CacheTTL), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M5_cache(var_cache)); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.PartOnly FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S8_PartOnly(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IPartOnly value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.PartOnly concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.PartOnly)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.PartOnly converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.PartOnly(); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IPartOnly ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S8_PartOnly(AWS.Cryptography.DbEncryptionSDK.DynamoDb.PartOnly value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.PartOnly(); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Shared FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Shared(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IShared value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Shared concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Shared)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.Shared converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.Shared(); converted.Other = (string)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Shared__M5_other(concrete._other); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IShared ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Shared(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Shared value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Shared(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Shared__M5_other(value.Other)); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.AsSet FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_AsSet(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IAsSet value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.AsSet concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.AsSet)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.AsSet converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.AsSet(); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IAsSet ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_AsSet(AWS.Cryptography.DbEncryptionSDK.DynamoDb.AsSet value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.AsSet(); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.SharedSet FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_SharedSet(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ISharedSet value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SharedSet concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SharedSet)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.SharedSet converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.SharedSet(); converted.Other = (string)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_SharedSet__M5_other(concrete._other); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ISharedSet ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_SharedSet(AWS.Cryptography.DbEncryptionSDK.DynamoDb.SharedSet value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.SharedSet(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_SharedSet__M5_other(value.Other)); + } + internal static AWS.Cryptography.DbEncryptionSDK.DynamoDb.IDynamoDbKeyBranchKeyIdSupplier FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S39_DynamoDbKeyBranchKeyIdSupplierReference(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier value) + { + // This is converting a reference type in a dependant module. + // Therefore it defers to the dependant module for conversion + return AWS.Cryptography.DbEncryptionSDK.DynamoDb.TypeConversion.FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S39_DynamoDbKeyBranchKeyIdSupplierReference(value); + } + internal static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S39_DynamoDbKeyBranchKeyIdSupplierReference(AWS.Cryptography.DbEncryptionSDK.DynamoDb.IDynamoDbKeyBranchKeyIdSupplier value) + { + // This is converting a reference type in a dependant module. + // Therefore it defers to the dependant module for conversion + return new WrappedNativeWrapper_DynamoDbKeyBranchKeyIdSupplier((DynamoDbKeyBranchKeyIdSupplierBase)value); + } + public static AWS.Cryptography.MaterialProviders.IBranchKeyIdSupplier FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_BranchKeyIdSupplierReference(software.amazon.cryptography.materialproviders.internaldafny.types.IBranchKeyIdSupplier value) + { + // This is converting a reference type in a dependant module. + // Therefore it defers to the dependant module for conversion + return AWS.Cryptography.MaterialProviders.TypeConversion.FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_BranchKeyIdSupplierReference(value); + } + public static software.amazon.cryptography.materialproviders.internaldafny.types.IBranchKeyIdSupplier ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_BranchKeyIdSupplierReference(AWS.Cryptography.MaterialProviders.IBranchKeyIdSupplier value) + { + // This is converting a reference type in a dependant module. + // Therefore it defers to the dependant module for conversion + return AWS.Cryptography.MaterialProviders.TypeConversion.ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_BranchKeyIdSupplierReference(value); + } + public static string FromDafny_N6_smithy__N3_api__S6_String(Dafny.ISequence value) + { + return new string(value.Elements); + } + public static Dafny.ISequence ToDafny_N6_smithy__N3_api__S6_String(string value) + { + return Dafny.Sequence.FromString(value); + } + public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key(Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> value) + { + return value.ItemEnumerable.ToDictionary(pair => FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key__M3_key(pair.Car), pair => FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key__M5_value(pair.Cdr)); + } + public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key(System.Collections.Generic.Dictionary value) + { + return Dafny.Map, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue>.FromCollection(value.Select(pair => + new Dafny.Pair, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue>(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key__M3_key(pair.Key), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key__M5_value(pair.Value)) + )); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Upper FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_Upper(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IUpper value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Upper concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Upper)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.Upper converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.Upper(); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IUpper ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_Upper(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Upper value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Upper(); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Lower FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_Lower(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ILower value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Lower concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Lower)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.Lower converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.Lower(); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._ILower ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_Lower(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Lower value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Lower(); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.Insert FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Insert(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IInsert value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Insert concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Insert)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.Insert converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.Insert(); converted.Literal = (string)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Insert__M7_literal(concrete._literal); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IInsert ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Insert(AWS.Cryptography.DbEncryptionSDK.DynamoDb.Insert value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Insert(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Insert__M7_literal(value.Literal)); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetPrefix FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetPrefix(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetPrefix value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetPrefix concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetPrefix)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetPrefix converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetPrefix(); converted.Length = (int)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetPrefix__M6_length(concrete._length); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetPrefix ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetPrefix(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetPrefix value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetPrefix(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetPrefix__M6_length(value.Length)); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSuffix FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetSuffix(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSuffix value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSuffix concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSuffix)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSuffix converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSuffix(); converted.Length = (int)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetSuffix__M6_length(concrete._length); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSuffix ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetSuffix(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSuffix value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSuffix(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetSuffix__M6_length(value.Length)); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSubstring FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSubstring value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSubstring concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSubstring)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSubstring converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSubstring(); converted.Low = (int)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring__M3_low(concrete._low); + converted.High = (int)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring__M4_high(concrete._high); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSubstring ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSubstring value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSubstring(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring__M3_low(value.Low), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring__M4_high(value.High)); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegment FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSegment value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSegment concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSegment)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegment converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegment(); converted.Split = (string)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment__M5_split(concrete._split); + converted.Index = (int)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment__M5_index(concrete._index); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSegment ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegment value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSegment(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment__M5_split(value.Split), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment__M5_index(value.Index)); + } + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegments FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSegments value) + { + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSegments concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSegments)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegments converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegments(); converted.Split = (string)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M5_split(concrete._split); + converted.Low = (int)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M3_low(concrete._low); + converted.High = (int)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M4_high(concrete._high); return converted; + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetSegments ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetSegments value) + { + value.Validate(); + + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetSegments(ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M5_split(value.Split), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M3_low(value.Low), ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M4_high(value.High)); + } + public static string FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore__M5_keyId(Dafny.ISequence value) + { + return FromDafny_N6_smithy__N3_api__S6_String(value); + } + public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore__M5_keyId(string value) + { + return ToDafny_N6_smithy__N3_api__S6_String(value); + } + public static int FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore__M8_cacheTTL(int value) + { + return FromDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S14_SingleKeyStore__M8_cacheTTL(int value) + { + return ToDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static string FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M12_keyFieldName(Dafny.ISequence value) + { + return FromDafny_N6_smithy__N3_api__S6_String(value); + } + public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M12_keyFieldName(string value) + { + return ToDafny_N6_smithy__N3_api__S6_String(value); + } + public static int FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M8_cacheTTL(int value) + { + return FromDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M8_cacheTTL(int value) + { + return ToDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static AWS.Cryptography.MaterialProviders.CacheType FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M5_cache(Wrappers_Compile._IOption value) + { + return value.is_None ? (AWS.Cryptography.MaterialProviders.CacheType)null : FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType(value.Extract()); + } + public static Wrappers_Compile._IOption ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S13_MultiKeyStore__M5_cache(AWS.Cryptography.MaterialProviders.CacheType value) + { + return value == null ? Wrappers_Compile.Option.create_None() : Wrappers_Compile.Option.create_Some(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType((AWS.Cryptography.MaterialProviders.CacheType)value)); + } + public static string FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Shared__M5_other(Dafny.ISequence value) + { + return FromDafny_N6_smithy__N3_api__S6_String(value); + } + public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Shared__M5_other(string value) + { + return ToDafny_N6_smithy__N3_api__S6_String(value); + } + public static string FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_SharedSet__M5_other(Dafny.ISequence value) + { + return FromDafny_N6_smithy__N3_api__S6_String(value); + } + public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_SharedSet__M5_other(string value) + { + return ToDafny_N6_smithy__N3_api__S6_String(value); + } + public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key__M3_key(Dafny.ISequence value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(value); + } + public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key__M3_key(string value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(value); + } + public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key__M5_value(software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue(value); + } + public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key__M5_value(Amazon.DynamoDBv2.Model.AttributeValue value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue(value); + } + public static string FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Insert__M7_literal(Dafny.ISequence value) + { + return FromDafny_N6_smithy__N3_api__S6_String(value); + } + public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S6_Insert__M7_literal(string value) + { + return ToDafny_N6_smithy__N3_api__S6_String(value); + } + public static int FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetPrefix__M6_length(int value) + { + return FromDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetPrefix__M6_length(int value) + { + return ToDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static int FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetSuffix__M6_length(int value) + { + return FromDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S9_GetSuffix__M6_length(int value) + { + return ToDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static int FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring__M3_low(int value) + { + return FromDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring__M3_low(int value) + { + return ToDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static int FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring__M4_high(int value) + { + return FromDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S12_GetSubstring__M4_high(int value) + { + return ToDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static string FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment__M5_split(Dafny.ISequence value) + { + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S4_Char(value); + } + public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment__M5_split(string value) + { + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S4_Char(value); + } + public static int FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment__M5_index(int value) + { + return FromDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S10_GetSegment__M5_index(int value) + { + return ToDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static string FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M5_split(Dafny.ISequence value) + { + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S4_Char(value); + } + public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M5_split(string value) + { + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S4_Char(value); + } + public static int FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M3_low(int value) + { + return FromDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M3_low(int value) + { + return ToDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static int FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M4_high(int value) + { + return FromDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S11_GetSegments__M4_high(int value) + { + return ToDafny_N6_smithy__N3_api__S7_Integer(value); + } + public static int FromDafny_N6_smithy__N3_api__S7_Integer(int value) + { + return value; + } + public static int ToDafny_N6_smithy__N3_api__S7_Integer(int value) + { + return value; + } + public static AWS.Cryptography.MaterialProviders.CacheType FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType(software.amazon.cryptography.materialproviders.internaldafny.types._ICacheType value) + { + software.amazon.cryptography.materialproviders.internaldafny.types.CacheType concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.CacheType)value; + var converted = new AWS.Cryptography.MaterialProviders.CacheType(); if (value.is_Default) + { + converted.Default = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M7_Default(concrete.dtor_Default); + return converted; + } + if (value.is_No) + { + converted.No = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M2_No(concrete.dtor_No); + return converted; + } + if (value.is_SingleThreaded) + { + converted.SingleThreaded = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M14_SingleThreaded(concrete.dtor_SingleThreaded); + return converted; + } + if (value.is_MultiThreaded) + { + converted.MultiThreaded = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_MultiThreaded(concrete.dtor_MultiThreaded); + return converted; + } + if (value.is_StormTracking) + { + converted.StormTracking = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_StormTracking(concrete.dtor_StormTracking); + return converted; + } + throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.CacheType state"); + } + public static software.amazon.cryptography.materialproviders.internaldafny.types._ICacheType ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType(AWS.Cryptography.MaterialProviders.CacheType value) + { + value.Validate(); if (value.IsSetDefault()) + { + return software.amazon.cryptography.materialproviders.internaldafny.types.CacheType.create_Default(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M7_Default(value.Default)); + } + if (value.IsSetNo()) + { + return software.amazon.cryptography.materialproviders.internaldafny.types.CacheType.create_No(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M2_No(value.No)); + } + if (value.IsSetSingleThreaded()) + { + return software.amazon.cryptography.materialproviders.internaldafny.types.CacheType.create_SingleThreaded(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M14_SingleThreaded(value.SingleThreaded)); + } + if (value.IsSetMultiThreaded()) + { + return software.amazon.cryptography.materialproviders.internaldafny.types.CacheType.create_MultiThreaded(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_MultiThreaded(value.MultiThreaded)); + } + if (value.IsSetStormTracking()) + { + return software.amazon.cryptography.materialproviders.internaldafny.types.CacheType.create_StormTracking(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_StormTracking(value.StormTracking)); + } + throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.CacheType state"); + } + public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(Dafny.ISequence value) + { + return new string(value.Elements); + } + public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(string value) + { + return Dafny.Sequence.FromString(value); + } + public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue(software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue value) + { + software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValue concrete = (software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValue)value; + var converted = new Amazon.DynamoDBv2.Model.AttributeValue(); if (value.is_S) + { + converted.S = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_S(concrete.dtor_S); + return converted; + } + if (value.is_N) + { + converted.N = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_N(concrete.dtor_N); + return converted; + } + if (value.is_B) + { + converted.B = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_B(concrete.dtor_B); + return converted; + } + if (value.is_SS) + { + converted.SS = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_SS(concrete.dtor_SS); + return converted; + } + if (value.is_NS) + { + converted.NS = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_NS(concrete.dtor_NS); + return converted; + } + if (value.is_BS) + { + converted.BS = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_BS(concrete.dtor_BS); + return converted; + } + if (value.is_M) + { + converted.M = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_M(concrete.dtor_M); + return converted; + } + if (value.is_L) + { + converted.L = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_L(concrete.dtor_L); + return converted; + } + if (value.is_NULL) + { + converted.NULL = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M4_NULL(concrete.dtor_NULL); + return converted; + } + if (value.is_BOOL) + { + converted.BOOL = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M4_BOOL(concrete.dtor_BOOL); + return converted; + } + throw new System.ArgumentException("Invalid Amazon.DynamoDBv2.Model.AttributeValue state"); + } + public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue(Amazon.DynamoDBv2.Model.AttributeValue value) + { + if (value.S != null) + { + return software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValue.create_S(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_S(value.S)); + } + if (value.N != null) + { + return software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValue.create_N(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_N(value.N)); + } + if (value.B != null) + { + return software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValue.create_B(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_B(value.B)); + } + if (value.SS.Any()) + { + return software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValue.create_SS(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_SS(value.SS)); + } + if (value.NS.Any()) + { + return software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValue.create_NS(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_NS(value.NS)); + } + if (value.BS.Any()) + { + return software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValue.create_BS(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_BS(value.BS)); + } + if (value.IsMSet) + { + return software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValue.create_M(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_M(value.M)); + } + if (value.IsLSet) + { + return software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValue.create_L(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_L(value.L)); + } + if (value.NULL == true) + { + return software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValue.create_NULL(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M4_NULL(value.NULL)); + } + if (value.IsBOOLSet) + { + return software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValue.create_BOOL(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M4_BOOL(value.BOOL)); + } + throw new System.ArgumentException("Invalid Amazon.DynamoDBv2.Model.AttributeValue state"); + } + public static string FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S4_Char(Dafny.ISequence value) + { + return new string(value.Elements); + } + public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S4_Char(string value) + { + return Dafny.Sequence.FromString(value); + } + public static AWS.Cryptography.MaterialProviders.DefaultCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M7_Default(software.amazon.cryptography.materialproviders.internaldafny.types._IDefaultCache value) + { + return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache(value); + } + public static software.amazon.cryptography.materialproviders.internaldafny.types._IDefaultCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M7_Default(AWS.Cryptography.MaterialProviders.DefaultCache value) + { + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache(value); + } + public static AWS.Cryptography.MaterialProviders.NoCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M2_No(software.amazon.cryptography.materialproviders.internaldafny.types._INoCache value) + { + return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_NoCache(value); + } + public static software.amazon.cryptography.materialproviders.internaldafny.types._INoCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M2_No(AWS.Cryptography.MaterialProviders.NoCache value) + { + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_NoCache(value); + } + public static AWS.Cryptography.MaterialProviders.SingleThreadedCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M14_SingleThreaded(software.amazon.cryptography.materialproviders.internaldafny.types._ISingleThreadedCache value) + { + return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache(value); + } + public static software.amazon.cryptography.materialproviders.internaldafny.types._ISingleThreadedCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M14_SingleThreaded(AWS.Cryptography.MaterialProviders.SingleThreadedCache value) + { + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache(value); + } + public static AWS.Cryptography.MaterialProviders.MultiThreadedCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_MultiThreaded(software.amazon.cryptography.materialproviders.internaldafny.types._IMultiThreadedCache value) + { + return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache(value); + } + public static software.amazon.cryptography.materialproviders.internaldafny.types._IMultiThreadedCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_MultiThreaded(AWS.Cryptography.MaterialProviders.MultiThreadedCache value) + { + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache(value); + } + public static AWS.Cryptography.MaterialProviders.StormTrackingCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_StormTracking(software.amazon.cryptography.materialproviders.internaldafny.types._IStormTrackingCache value) + { + return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache(value); + } + public static software.amazon.cryptography.materialproviders.internaldafny.types._IStormTrackingCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_StormTracking(AWS.Cryptography.MaterialProviders.StormTrackingCache value) + { + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache(value); + } + public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_S(Dafny.ISequence value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_StringAttributeValue(value); + } + public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_S(string value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_StringAttributeValue(value); + } + public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_N(Dafny.ISequence value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_NumberAttributeValue(value); + } + public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_N(string value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_NumberAttributeValue(value); + } + public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_B(Dafny.ISequence value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BinaryAttributeValue(value); + } + public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_B(System.IO.MemoryStream value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BinaryAttributeValue(value); + } + public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_SS(Dafny.ISequence> value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_StringSetAttributeValue(value); + } + public static Dafny.ISequence> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_SS(System.Collections.Generic.List value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_StringSetAttributeValue(value); + } + public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_NS(Dafny.ISequence> value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_NumberSetAttributeValue(value); + } + public static Dafny.ISequence> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_NS(System.Collections.Generic.List value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_NumberSetAttributeValue(value); + } + public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_BS(Dafny.ISequence> value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_BinarySetAttributeValue(value); + } + public static Dafny.ISequence> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_BS(System.Collections.Generic.List value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_BinarySetAttributeValue(value); + } + public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_M(Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue(value); + } + public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_M(System.Collections.Generic.Dictionary value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue(value); + } + public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_L(Dafny.ISequence value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ListAttributeValue(value); + } + public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_L(System.Collections.Generic.List value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ListAttributeValue(value); + } + public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M4_NULL(bool value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_NullAttributeValue(value); + } + public static bool ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M4_NULL(bool value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_NullAttributeValue(value); + } + public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M4_BOOL(bool value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BooleanAttributeValue(value); + } + public static bool ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M4_BOOL(bool value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BooleanAttributeValue(value); + } + public static AWS.Cryptography.MaterialProviders.DefaultCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache(software.amazon.cryptography.materialproviders.internaldafny.types._IDefaultCache value) + { + software.amazon.cryptography.materialproviders.internaldafny.types.DefaultCache concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.DefaultCache)value; AWS.Cryptography.MaterialProviders.DefaultCache converted = new AWS.Cryptography.MaterialProviders.DefaultCache(); converted.EntryCapacity = (int)FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache__M13_entryCapacity(concrete._entryCapacity); return converted; + } + public static software.amazon.cryptography.materialproviders.internaldafny.types._IDefaultCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache(AWS.Cryptography.MaterialProviders.DefaultCache value) + { + value.Validate(); + + return new software.amazon.cryptography.materialproviders.internaldafny.types.DefaultCache(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache__M13_entryCapacity(value.EntryCapacity)); + } + public static AWS.Cryptography.MaterialProviders.NoCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_NoCache(software.amazon.cryptography.materialproviders.internaldafny.types._INoCache value) + { + software.amazon.cryptography.materialproviders.internaldafny.types.NoCache concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.NoCache)value; AWS.Cryptography.MaterialProviders.NoCache converted = new AWS.Cryptography.MaterialProviders.NoCache(); return converted; + } + public static software.amazon.cryptography.materialproviders.internaldafny.types._INoCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_NoCache(AWS.Cryptography.MaterialProviders.NoCache value) + { + value.Validate(); + + return new software.amazon.cryptography.materialproviders.internaldafny.types.NoCache(); + } + public static AWS.Cryptography.MaterialProviders.SingleThreadedCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache(software.amazon.cryptography.materialproviders.internaldafny.types._ISingleThreadedCache value) + { + software.amazon.cryptography.materialproviders.internaldafny.types.SingleThreadedCache concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.SingleThreadedCache)value; AWS.Cryptography.MaterialProviders.SingleThreadedCache converted = new AWS.Cryptography.MaterialProviders.SingleThreadedCache(); converted.EntryCapacity = (int)FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M13_entryCapacity(concrete._entryCapacity); + if (concrete._entryPruningTailSize.is_Some) converted.EntryPruningTailSize = (int)FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M20_entryPruningTailSize(concrete._entryPruningTailSize); return converted; + } + public static software.amazon.cryptography.materialproviders.internaldafny.types._ISingleThreadedCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache(AWS.Cryptography.MaterialProviders.SingleThreadedCache value) + { + value.Validate(); + int? var_entryPruningTailSize = value.IsSetEntryPruningTailSize() ? value.EntryPruningTailSize : (int?)null; + return new software.amazon.cryptography.materialproviders.internaldafny.types.SingleThreadedCache(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M13_entryCapacity(value.EntryCapacity), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M20_entryPruningTailSize(var_entryPruningTailSize)); + } + public static AWS.Cryptography.MaterialProviders.MultiThreadedCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache(software.amazon.cryptography.materialproviders.internaldafny.types._IMultiThreadedCache value) + { + software.amazon.cryptography.materialproviders.internaldafny.types.MultiThreadedCache concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.MultiThreadedCache)value; AWS.Cryptography.MaterialProviders.MultiThreadedCache converted = new AWS.Cryptography.MaterialProviders.MultiThreadedCache(); converted.EntryCapacity = (int)FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M13_entryCapacity(concrete._entryCapacity); + if (concrete._entryPruningTailSize.is_Some) converted.EntryPruningTailSize = (int)FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M20_entryPruningTailSize(concrete._entryPruningTailSize); return converted; + } + public static software.amazon.cryptography.materialproviders.internaldafny.types._IMultiThreadedCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache(AWS.Cryptography.MaterialProviders.MultiThreadedCache value) + { + value.Validate(); + int? var_entryPruningTailSize = value.IsSetEntryPruningTailSize() ? value.EntryPruningTailSize : (int?)null; + return new software.amazon.cryptography.materialproviders.internaldafny.types.MultiThreadedCache(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M13_entryCapacity(value.EntryCapacity), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M20_entryPruningTailSize(var_entryPruningTailSize)); + } + public static AWS.Cryptography.MaterialProviders.StormTrackingCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache(software.amazon.cryptography.materialproviders.internaldafny.types._IStormTrackingCache value) + { + software.amazon.cryptography.materialproviders.internaldafny.types.StormTrackingCache concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.StormTrackingCache)value; AWS.Cryptography.MaterialProviders.StormTrackingCache converted = new AWS.Cryptography.MaterialProviders.StormTrackingCache(); converted.EntryCapacity = (int)FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_entryCapacity(concrete._entryCapacity); + if (concrete._entryPruningTailSize.is_Some) converted.EntryPruningTailSize = (int)FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M20_entryPruningTailSize(concrete._entryPruningTailSize); + converted.GracePeriod = (int)FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_gracePeriod(concrete._gracePeriod); + converted.GraceInterval = (int)FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_graceInterval(concrete._graceInterval); + converted.FanOut = (int)FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M6_fanOut(concrete._fanOut); + converted.InFlightTTL = (int)FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_inFlightTTL(concrete._inFlightTTL); + converted.SleepMilli = (int)FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M10_sleepMilli(concrete._sleepMilli); return converted; + } + public static software.amazon.cryptography.materialproviders.internaldafny.types._IStormTrackingCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache(AWS.Cryptography.MaterialProviders.StormTrackingCache value) + { + value.Validate(); + int? var_entryPruningTailSize = value.IsSetEntryPruningTailSize() ? value.EntryPruningTailSize : (int?)null; + return new software.amazon.cryptography.materialproviders.internaldafny.types.StormTrackingCache(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_entryCapacity(value.EntryCapacity), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M20_entryPruningTailSize(var_entryPruningTailSize), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_gracePeriod(value.GracePeriod), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_graceInterval(value.GraceInterval), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M6_fanOut(value.FanOut), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_inFlightTTL(value.InFlightTTL), ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M10_sleepMilli(value.SleepMilli)); + } + public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_StringAttributeValue(Dafny.ISequence value) + { + return new string(value.Elements); + } + public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_StringAttributeValue(string value) + { + return Dafny.Sequence.FromString(value); + } + public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_NumberAttributeValue(Dafny.ISequence value) + { + return new string(value.Elements); + } + public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_NumberAttributeValue(string value) + { + return Dafny.Sequence.FromString(value); + } + public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BinaryAttributeValue(Dafny.ISequence value) + { + return new System.IO.MemoryStream(value.Elements); + } + public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BinaryAttributeValue(System.IO.MemoryStream value) + { + if (value.ToArray().Length == 0 && value.Length > 0) + { + throw new System.ArgumentException("Fatal Error: MemoryStream instance not backed by an array!"); + } + return Dafny.Sequence.FromArray(value.ToArray()); + + } + public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_StringSetAttributeValue(Dafny.ISequence> value) + { + return new System.Collections.Generic.List(value.Elements.Select(FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_StringSetAttributeValue__M6_member)); + } + public static Dafny.ISequence> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_StringSetAttributeValue(System.Collections.Generic.List value) + { + return Dafny.Sequence>.FromArray(value.Select(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_StringSetAttributeValue__M6_member).ToArray()); + } + public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_NumberSetAttributeValue(Dafny.ISequence> value) + { + return new System.Collections.Generic.List(value.Elements.Select(FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_NumberSetAttributeValue__M6_member)); + } + public static Dafny.ISequence> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_NumberSetAttributeValue(System.Collections.Generic.List value) + { + return Dafny.Sequence>.FromArray(value.Select(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_NumberSetAttributeValue__M6_member).ToArray()); + } + public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_BinarySetAttributeValue(Dafny.ISequence> value) + { + return new System.Collections.Generic.List(value.Elements.Select(FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_BinarySetAttributeValue__M6_member)); + } + public static Dafny.ISequence> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_BinarySetAttributeValue(System.Collections.Generic.List value) + { + return Dafny.Sequence>.FromArray(value.Select(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_BinarySetAttributeValue__M6_member).ToArray()); + } + public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue(Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> value) + { + return value.ItemEnumerable.ToDictionary(pair => FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue__M3_key(pair.Car), pair => FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue__M5_value(pair.Cdr)); + } + public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue(System.Collections.Generic.Dictionary value) + { + return Dafny.Map, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue>.FromCollection(value.Select(pair => + new Dafny.Pair, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue>(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue__M3_key(pair.Key), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue__M5_value(pair.Value)) + )); + } + public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ListAttributeValue(Dafny.ISequence value) + { + return new System.Collections.Generic.List(value.Elements.Select(FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ListAttributeValue__M6_member)); + } + public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ListAttributeValue(System.Collections.Generic.List value) + { + return Dafny.Sequence.FromArray(value.Select(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ListAttributeValue__M6_member).ToArray()); + } + public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_NullAttributeValue(bool value) + { + return value; + } + public static bool ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_NullAttributeValue(bool value) + { + return value; + } + public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BooleanAttributeValue(bool value) + { + return value; + } + public static bool ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BooleanAttributeValue(bool value) + { + return value; + } + public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache__M13_entryCapacity(int value) + { + return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache__M13_entryCapacity(int value) + { + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M13_entryCapacity(int value) + { + return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M13_entryCapacity(int value) + { + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M20_entryPruningTailSize(Wrappers_Compile._IOption value) + { + return value.is_None ? (int?)null : FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value.Extract()); + } + public static Wrappers_Compile._IOption ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M20_entryPruningTailSize(int? value) + { + return value == null ? Wrappers_Compile.Option.create_None() : Wrappers_Compile.Option.create_Some(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value)); + } + public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M13_entryCapacity(int value) + { + return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M13_entryCapacity(int value) + { + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M20_entryPruningTailSize(Wrappers_Compile._IOption value) + { + return value.is_None ? (int?)null : FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value.Extract()); + } + public static Wrappers_Compile._IOption ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M20_entryPruningTailSize(int? value) + { + return value == null ? Wrappers_Compile.Option.create_None() : Wrappers_Compile.Option.create_Some(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value)); + } + public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_entryCapacity(int value) + { + return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_entryCapacity(int value) + { + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M20_entryPruningTailSize(Wrappers_Compile._IOption value) + { + return value.is_None ? (int?)null : FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value.Extract()); + } + public static Wrappers_Compile._IOption ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M20_entryPruningTailSize(int? value) + { + return value == null ? Wrappers_Compile.Option.create_None() : Wrappers_Compile.Option.create_Some(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value)); + } + public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_gracePeriod(int value) + { + return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_gracePeriod(int value) + { + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_graceInterval(int value) + { + return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_graceInterval(int value) + { + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M6_fanOut(int value) + { + return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M6_fanOut(int value) + { + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_inFlightTTL(int value) + { + return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_inFlightTTL(int value) + { + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M10_sleepMilli(int value) + { + return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M10_sleepMilli(int value) + { + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + } + public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_StringSetAttributeValue__M6_member(Dafny.ISequence value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_StringAttributeValue(value); + } + public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_StringSetAttributeValue__M6_member(string value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_StringAttributeValue(value); + } + public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_NumberSetAttributeValue__M6_member(Dafny.ISequence value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_NumberAttributeValue(value); + } + public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_NumberSetAttributeValue__M6_member(string value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_NumberAttributeValue(value); + } + public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_BinarySetAttributeValue__M6_member(Dafny.ISequence value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BinaryAttributeValue(value); + } + public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_BinarySetAttributeValue__M6_member(System.IO.MemoryStream value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BinaryAttributeValue(value); + } + public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue__M3_key(Dafny.ISequence value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(value); + } + public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue__M3_key(string value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(value); + } + public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue__M5_value(software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue(value); + } + public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue__M5_value(Amazon.DynamoDBv2.Model.AttributeValue value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue(value); + } + public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ListAttributeValue__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue value) + { + return FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue(value); + } + public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ListAttributeValue__M6_member(Amazon.DynamoDBv2.Model.AttributeValue value) + { + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue(value); + } + public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(int value) + { + return value; + } + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(int value) + { + return value; + } + public static System.Exception FromDafny_CommonError(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IError value) + { + switch (value) + { + case software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_AwsCryptographyDbEncryptionSdkStructuredEncryption dafnyVal: + return AWS.Cryptography.DbEncryptionSDK.StructuredEncryption.TypeConversion.FromDafny_CommonError( + dafnyVal._AwsCryptographyDbEncryptionSdkStructuredEncryption + ); + case software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_AwsCryptographyMaterialProviders dafnyVal: + return AWS.Cryptography.MaterialProviders.TypeConversion.FromDafny_CommonError( + dafnyVal._AwsCryptographyMaterialProviders + ); + case software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_AwsCryptographyPrimitives dafnyVal: + return AWS.Cryptography.Primitives.TypeConversion.FromDafny_CommonError( + dafnyVal._AwsCryptographyPrimitives + ); + case software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_ComAmazonawsDynamodb dafnyVal: + return Com.Amazonaws.Dynamodb.TypeConversion.FromDafny_CommonError( + dafnyVal._ComAmazonawsDynamodb + ); + case software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_DynamoDbEncryptionException dafnyVal: + return FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S27_DynamoDbEncryptionException(dafnyVal); + case software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_CollectionOfErrors dafnyVal: + return new CollectionOfErrors( + new System.Collections.Generic.List(dafnyVal.dtor_list.CloneAsArray() + .Select(x => TypeConversion.FromDafny_CommonError(x))), + new string(dafnyVal.dtor_message.Elements)); + case software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_Opaque dafnyVal: + return new OpaqueError(dafnyVal._obj); + default: + // The switch MUST be complete for _IError, so `value` MUST NOT be an _IError. (How did you get here?) + return new OpaqueError(); + } + } + public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IError ToDafny_CommonError(System.Exception value) + { + + switch (value) + { + case AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbEncryptionException exception: + return ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S27_DynamoDbEncryptionException(exception); + case CollectionOfErrors collectionOfErrors: + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_CollectionOfErrors( + Dafny.Sequence + .FromArray( + collectionOfErrors.list.Select + (x => TypeConversion.ToDafny_CommonError(x)) + .ToArray()), + Dafny.Sequence.FromString(collectionOfErrors.Message) + ); + // OpaqueError is redundant, but listed for completeness. + case OpaqueError exception: + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_Opaque(exception); + case System.Exception exception: + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_Opaque(exception); + default: + // The switch MUST be complete for System.Exception, so `value` MUST NOT be an System.Exception. (How did you get here?) + return new software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.Error_Opaque(value); + } + } + } +} diff --git a/TestVectors/runtimes/net/Generated/DDBEncryption/WrappedNativeWrapper_DynamoDbKeyBranchKeyIdSupplier.cs b/TestVectors/runtimes/net/Generated/DDBEncryption/WrappedNativeWrapper_DynamoDbKeyBranchKeyIdSupplier.cs new file mode 100644 index 000000000..6a4671ffb --- /dev/null +++ b/TestVectors/runtimes/net/Generated/DDBEncryption/WrappedNativeWrapper_DynamoDbKeyBranchKeyIdSupplier.cs @@ -0,0 +1,49 @@ +// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +// Do not modify this file. This file is machine generated, and any changes to it will be overwritten. +// ReSharper disable RedundantUsingDirective +// ReSharper disable RedundantNameQualifier +// ReSharper disable SuggestVarOrType_SimpleTypes +using System; +using _System; +using Wrappers_Compile; + +namespace AWS.Cryptography.DbEncryptionSDK.DynamoDb.Wrapped +{ + internal class WrappedNativeWrapper_DynamoDbKeyBranchKeyIdSupplier : software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.IDynamoDbKeyBranchKeyIdSupplier + { + internal readonly DynamoDbKeyBranchKeyIdSupplierBase _impl; + public WrappedNativeWrapper_DynamoDbKeyBranchKeyIdSupplier(DynamoDbKeyBranchKeyIdSupplierBase nativeImpl) + { + _impl = nativeImpl; + } + public Wrappers_Compile._IResult GetBranchKeyIdFromDdbKey(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetBranchKeyIdFromDdbKeyInput input) + { + void validateOutput(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetBranchKeyIdFromDdbKeyOutput nativeOutput) + { + try { nativeOutput.Validate(); } + catch (ArgumentException e) + { + var message = $"Output of {_impl}._GetBranchKeyIdFromDdbKey is invalid. {e.Message}"; + throw new DynamoDbEncryptionException(message); + } + } + AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetBranchKeyIdFromDdbKeyInput nativeInput = TypeConversion.FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S29_GetBranchKeyIdFromDdbKeyInput(input); + try + { + AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetBranchKeyIdFromDdbKeyOutput nativeOutput = _impl.GetBranchKeyIdFromDdbKey(nativeInput); + _ = nativeOutput ?? throw new DynamoDbEncryptionException($"{_impl}._GetBranchKeyIdFromDdbKey returned null, should be {typeof(AWS.Cryptography.DbEncryptionSDK.DynamoDb.GetBranchKeyIdFromDdbKeyOutput)}"); + validateOutput(nativeOutput); + return Wrappers_Compile.Result.create_Success(TypeConversion.ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S30_GetBranchKeyIdFromDdbKeyOutput(nativeOutput)); + } + catch (Exception e) + { + return Wrappers_Compile.Result.create_Failure(TypeConversion.ToDafny_CommonError(e)); + } + } + public Wrappers_Compile._IResult GetBranchKeyIdFromDdbKey_k(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IGetBranchKeyIdFromDdbKeyInput input) + { + throw new DynamoDbEncryptionException("Not supported at this time."); + } + } +} diff --git a/TestVectors/runtimes/net/Generated/DDBEncryption/WrappedNativeWrapper_LegacyDynamoDbEncryptor.cs b/TestVectors/runtimes/net/Generated/DDBEncryption/WrappedNativeWrapper_LegacyDynamoDbEncryptor.cs new file mode 100644 index 000000000..5c2d4198a --- /dev/null +++ b/TestVectors/runtimes/net/Generated/DDBEncryption/WrappedNativeWrapper_LegacyDynamoDbEncryptor.cs @@ -0,0 +1,22 @@ +// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +// Do not modify this file. This file is machine generated, and any changes to it will be overwritten. +// ReSharper disable RedundantUsingDirective +// ReSharper disable RedundantNameQualifier +// ReSharper disable SuggestVarOrType_SimpleTypes +using System; +using _System; +using Wrappers_Compile; + +namespace AWS.Cryptography.DbEncryptionSDK.DynamoDb.Wrapped +{ + internal class WrappedNativeWrapper_LegacyDynamoDbEncryptor : software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor + { + internal readonly LegacyDynamoDbEncryptorBase _impl; + public WrappedNativeWrapper_LegacyDynamoDbEncryptor(LegacyDynamoDbEncryptorBase nativeImpl) + { + _impl = nativeImpl; + } + + } +} diff --git a/TestVectors/runtimes/net/src/TestVectorsMain.cs b/TestVectors/runtimes/net/src/TestVectorsMain.cs index 6718d8877..1126929bd 100644 --- a/TestVectors/runtimes/net/src/TestVectorsMain.cs +++ b/TestVectors/runtimes/net/src/TestVectorsMain.cs @@ -5,6 +5,6 @@ class Program static void Main() { WrappedDDBEncryptionMain_Compile.__default.ASDF(); - } + } } } diff --git a/submodules/smithy-dafny b/submodules/smithy-dafny index 07b8dfe9d..d9c596cb8 160000 --- a/submodules/smithy-dafny +++ b/submodules/smithy-dafny @@ -1 +1 @@ -Subproject commit 07b8dfe9d5d8d10233e86e6f850d9c4fded966c0 +Subproject commit d9c596cb85ce55434efb57a5f88e6dd7fb68d505