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

package com.azure.resourcemanager.mobilenetwork.generated;

import com.azure.resourcemanager.mobilenetwork.models.AttachedDataNetworkResourceId;
import com.azure.resourcemanager.mobilenetwork.models.SimNameAndProperties;
import com.azure.resourcemanager.mobilenetwork.models.SimPolicyResourceId;
import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpProperties;
import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpPropertiesStaticIp;
import com.azure.resourcemanager.mobilenetwork.models.SimUploadList;
import com.azure.resourcemanager.mobilenetwork.models.SliceResourceId;
import java.util.Arrays;

/** Samples for Sims BulkUpload. */
public final class SimsBulkUploadSamples {
    /*
     * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimBulkUpload.json
     */
    /**
     * Sample code: Bulk upload SIMs in a SIM group.
     *
     * @param manager Entry point to MobileNetworkManager.
     */
    public static void bulkUploadSIMsInASIMGroup(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) {
        manager
            .sims()
            .bulkUpload(
                "rg1",
                "testSimGroup",
                new SimUploadList()
                    .withSims(
                        Arrays
                            .asList(
                                new SimNameAndProperties()
                                    .withName("testSim")
                                    .withAuthenticationKey("fakeTokenPlaceholder")
                                    .withOperatorKeyCode("fakeTokenPlaceholder")
                                    .withInternationalMobileSubscriberIdentity("00000")
                                    .withIntegratedCircuitCardIdentifier("8900000000000000000")
                                    .withDeviceType("Video camera")
                                    .withSimPolicy(
                                        new SimPolicyResourceId()
                                            .withId(
                                                "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy"))
                                    .withStaticIpConfiguration(
                                        Arrays
                                            .asList(
                                                new SimStaticIpProperties()
                                                    .withAttachedDataNetwork(
                                                        new AttachedDataNetworkResourceId()
                                                            .withId(
                                                                "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork"))
                                                    .withSlice(
                                                        new SliceResourceId()
                                                            .withId(
                                                                "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice"))
                                                    .withStaticIp(
                                                        new SimStaticIpPropertiesStaticIp()
                                                            .withIpv4Address("2.4.0.1")))),
                                new SimNameAndProperties()
                                    .withName("testSim2")
                                    .withAuthenticationKey("fakeTokenPlaceholder")
                                    .withOperatorKeyCode("fakeTokenPlaceholder")
                                    .withInternationalMobileSubscriberIdentity("00000")
                                    .withIntegratedCircuitCardIdentifier("8900000000000000001")
                                    .withDeviceType("Video camera")
                                    .withSimPolicy(
                                        new SimPolicyResourceId()
                                            .withId(
                                                "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy"))
                                    .withStaticIpConfiguration(
                                        Arrays
                                            .asList(
                                                new SimStaticIpProperties()
                                                    .withAttachedDataNetwork(
                                                        new AttachedDataNetworkResourceId()
                                                            .withId(
                                                                "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork"))
                                                    .withSlice(
                                                        new SliceResourceId()
                                                            .withId(
                                                                "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice"))
                                                    .withStaticIp(
                                                        new SimStaticIpPropertiesStaticIp()
                                                            .withIpv4Address("2.4.0.2")))))),
                com.azure.core.util.Context.NONE);
    }
}
