// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.databoxedge.generated;

import com.azure.resourcemanager.databoxedge.models.AccountType;
import com.azure.resourcemanager.databoxedge.models.AsymmetricEncryptedSecret;
import com.azure.resourcemanager.databoxedge.models.EncryptionAlgorithm;
import com.azure.resourcemanager.databoxedge.models.SslStatus;

/** Samples for StorageAccountCredentials CreateOrUpdate. */
public final class StorageAccountCredentialsCreateOrUpdateSamples {
    /*
     * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2019-08-01/examples/SACPut.json
     */
    /**
     * Sample code: SACPut.
     *
     * @param manager Entry point to DataBoxEdgeManager.
     */
    public static void sACPut(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
        manager
            .storageAccountCredentials()
            .define("sac1")
            .withExistingDataBoxEdgeDevice("testedgedevice", "GroupForEdgeAutomation")
            .withAlias("sac1")
            .withSslStatus(SslStatus.DISABLED)
            .withAccountType(AccountType.BLOB_STORAGE)
            .withUsername("cisbvt")
            .withAccountKey(
                new AsymmetricEncryptedSecret()
                    .withValue(
                        "lAeZEYi6rNP1/EyNaVUYmTSZEYyaIaWmwUsGwek0+xiZj54GM9Ue9/UA2ed/ClC03wuSit2XzM/cLRU5eYiFBwks23rGwiQOr3sruEL2a74EjPD050xYjA6M1I2hu/w2yjVHhn5j+DbXS4Xzi+rHHNZK3DgfDO3PkbECjPck+PbpSBjy9+6Mrjcld5DIZhUAeMlMHrFlg+WKRKB14o/og56u5/xX6WKlrMLEQ+y6E18dUwvWs2elTNoVO8PBE8SM/CfooX4AMNvaNdSObNBPdP+F6Lzc556nFNWXrBLRt0vC7s9qTiVRO4x/qCNaK/B4y7IqXMllwQFf4Np9UQ2ECA==")
                    .withEncryptionCertThumbprint("2A9D8D6BE51574B5461230AEF02F162C5F01AD31")
                    .withEncryptionAlgorithm(EncryptionAlgorithm.AES256))
            .create();
    }
}
