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

package com.azure.resourcemanager.automation.generated;

/** Samples for Certificate CreateOrUpdate. */
public final class CertificateCreateOrUpdateSamples {
    /*
     * x-ms-original-file: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateCertificate.json
     */
    /**
     * Sample code: Create or update a certificate.
     *
     * @param manager Entry point to AutomationManager.
     */
    public static void createOrUpdateACertificate(com.azure.resourcemanager.automation.AutomationManager manager) {
        manager
            .certificates()
            .define("testCert")
            .withExistingAutomationAccount("rg", "myAutomationAccount18")
            .withName("testCert")
            .withBase64Value("base 64 value of cert")
            .withDescription("Sample Cert")
            .withThumbprint("thumbprint of cert")
            .withIsExportable(false)
            .create();
    }
}
