All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.network.models.ApplicationGatewayAuthenticationCertificate Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure Network Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt

There is a newer version: 2.44.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.network.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.network.fluent.models.ApplicationGatewayAuthenticationCertificateInner;
import com.azure.resourcemanager.resources.fluentcore.arm.models.ChildResource;
import com.azure.resourcemanager.resources.fluentcore.model.Attachable;
import com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel;
import com.azure.resourcemanager.resources.fluentcore.model.Settable;
import java.io.File;
import java.io.IOException;

/** A client-side representation of an application gateway authentication certificate. */
@Fluent()
public interface ApplicationGatewayAuthenticationCertificate
    extends HasInnerModel, ChildResource {

    /** @return base-64 encoded bytes of the X.509 certificate */
    String data();

    /** Grouping of application gateway authentication certificate stages. */
    interface DefinitionStages {
        /**
         * The first stage of an application gateway authentication certificate definition.
         *
         * @param  the stage of the parent application gateway definition to return to after attaching this
         *     definition
         */
        interface Blank extends WithData {
        }

        /**
         * The stage of an application gateway authentication certificate definition allowing to specify the data of the
         * certificate.
         *
         * @param  the stage of the parent application gateway definition to return to after attaching this
         *     definition
         */
        interface WithData {
            /**
             * Specifies an X.509 certificate to upload.
             *
             * @param derData the DER-encoded bytes of an X.509 certificate
             * @return the next stage of the definition
             */
            WithAttach fromBytes(byte[] derData);

            /**
             * Specifies an X.509 certificate to upload.
             *
             * @param certificateFile a DER encoded X.509 certificate file
             * @return the next stage of the definition
             * @throws IOException when there are problems reading the certificate file
             */
            WithAttach fromFile(File certificateFile) throws IOException;

            /**
             * Specifies an X.509 certificate to upload.
             *
             * @param base64data base-64 encoded data of the certificate
             * @return the next stage of the definition
             */
            WithAttach fromBase64(String base64data);
        }

        /**
         * The final stage of an application gateway authentication certificate definition.
         *
         * 

At this stage, any remaining optional settings can be specified, or the definition can be attached to the * parent application gateway definition. * * @param the stage of the parent application gateway definition to return to after attaching this * definition */ interface WithAttach extends Attachable.InDefinition { } } /** * The entirety of an application gateway authentication certificate definition. * * @param the stage of the parent application gateway definition to return to after attaching this * definition */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithAttach, DefinitionStages.WithData { } /** Grouping of application gateway authentication certificate update stages. */ interface UpdateStages { } /** * The entirety of an application gateway authentication certificate update as part of an application gateway * update. */ interface Update extends Settable { } /** * Grouping of application gateway authentication certificate definition stages applicable as part of an application * gateway update. */ interface UpdateDefinitionStages { /** * The first stage of an application gateway authentication certificate definition. * * @param the stage of the parent application gateway definition to return to after attaching this * definition */ interface Blank extends WithData { } /** * The stage of an application gateway authentication certificate definition allowing to specify the data of the * certificate. * * @param the stage of the parent application gateway update to return to after attaching this * definition */ interface WithData { /** * Specifies an X.509 certificate to upload. * * @param data the DER-encoded bytes of an X.509 certificate * @return the next stage of the definition */ WithAttach fromBytes(byte[] data); /** * Specifies an X.509 certificate to upload. * * @param certificateFile a DER encoded X.509 certificate file * @return the next stage of the definition * @throws IOException when there are problems reading the certificate file */ WithAttach fromFile(File certificateFile) throws IOException; /** * Specifies an X.509 certificate to upload. * * @param base64data base-64 encoded data of the certificate * @return the next stage of the definition */ WithAttach fromBase64(String base64data); } /** * The final stage of an application gateway authentication certificate definition. * *

At this stage, any remaining optional settings can be specified, or the definition can be attached to the * parent application gateway definition. * * @param the stage of the parent application gateway definition to return to after attaching this * definition */ interface WithAttach extends Attachable.InUpdate { } } /** * The entirety of an application gateway authentication certificate definition as part of an application gateway * update. * * @param the stage of the parent application gateway definition to return to after attaching this * definition */ interface UpdateDefinition extends UpdateDefinitionStages.Blank, UpdateDefinitionStages.WithAttach, UpdateDefinitionStages.WithData { } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy