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

com.pulumi.azure.apimanagement.ApiOperationPolicyArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azure.apimanagement;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ApiOperationPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApiOperationPolicyArgs Empty = new ApiOperationPolicyArgs();

    /**
     * The name of the API Management Service. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="apiManagementName", required=true)
    private Output apiManagementName;

    /**
     * @return The name of the API Management Service. Changing this forces a new resource to be created.
     * 
     */
    public Output apiManagementName() {
        return this.apiManagementName;
    }

    /**
     * The name of the API within the API Management Service where the Operation exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="apiName", required=true)
    private Output apiName;

    /**
     * @return The name of the API within the API Management Service where the Operation exists. Changing this forces a new resource to be created.
     * 
     */
    public Output apiName() {
        return this.apiName;
    }

    /**
     * The operation identifier within an API. Must be unique in the current API Management service instance. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="operationId", required=true)
    private Output operationId;

    /**
     * @return The operation identifier within an API. Must be unique in the current API Management service instance. Changing this forces a new resource to be created.
     * 
     */
    public Output operationId() {
        return this.operationId;
    }

    /**
     * The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The XML Content for this Policy.
     * 
     */
    @Import(name="xmlContent")
    private @Nullable Output xmlContent;

    /**
     * @return The XML Content for this Policy.
     * 
     */
    public Optional> xmlContent() {
        return Optional.ofNullable(this.xmlContent);
    }

    /**
     * A link to a Policy XML Document, which must be publicly available.
     * 
     */
    @Import(name="xmlLink")
    private @Nullable Output xmlLink;

    /**
     * @return A link to a Policy XML Document, which must be publicly available.
     * 
     */
    public Optional> xmlLink() {
        return Optional.ofNullable(this.xmlLink);
    }

    private ApiOperationPolicyArgs() {}

    private ApiOperationPolicyArgs(ApiOperationPolicyArgs $) {
        this.apiManagementName = $.apiManagementName;
        this.apiName = $.apiName;
        this.operationId = $.operationId;
        this.resourceGroupName = $.resourceGroupName;
        this.xmlContent = $.xmlContent;
        this.xmlLink = $.xmlLink;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(ApiOperationPolicyArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private ApiOperationPolicyArgs $;

        public Builder() {
            $ = new ApiOperationPolicyArgs();
        }

        public Builder(ApiOperationPolicyArgs defaults) {
            $ = new ApiOperationPolicyArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param apiManagementName The name of the API Management Service. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder apiManagementName(Output apiManagementName) {
            $.apiManagementName = apiManagementName;
            return this;
        }

        /**
         * @param apiManagementName The name of the API Management Service. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder apiManagementName(String apiManagementName) {
            return apiManagementName(Output.of(apiManagementName));
        }

        /**
         * @param apiName The name of the API within the API Management Service where the Operation exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder apiName(Output apiName) {
            $.apiName = apiName;
            return this;
        }

        /**
         * @param apiName The name of the API within the API Management Service where the Operation exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder apiName(String apiName) {
            return apiName(Output.of(apiName));
        }

        /**
         * @param operationId The operation identifier within an API. Must be unique in the current API Management service instance. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder operationId(Output operationId) {
            $.operationId = operationId;
            return this;
        }

        /**
         * @param operationId The operation identifier within an API. Must be unique in the current API Management service instance. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder operationId(String operationId) {
            return operationId(Output.of(operationId));
        }

        /**
         * @param resourceGroupName The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param xmlContent The XML Content for this Policy.
         * 
         * @return builder
         * 
         */
        public Builder xmlContent(@Nullable Output xmlContent) {
            $.xmlContent = xmlContent;
            return this;
        }

        /**
         * @param xmlContent The XML Content for this Policy.
         * 
         * @return builder
         * 
         */
        public Builder xmlContent(String xmlContent) {
            return xmlContent(Output.of(xmlContent));
        }

        /**
         * @param xmlLink A link to a Policy XML Document, which must be publicly available.
         * 
         * @return builder
         * 
         */
        public Builder xmlLink(@Nullable Output xmlLink) {
            $.xmlLink = xmlLink;
            return this;
        }

        /**
         * @param xmlLink A link to a Policy XML Document, which must be publicly available.
         * 
         * @return builder
         * 
         */
        public Builder xmlLink(String xmlLink) {
            return xmlLink(Output.of(xmlLink));
        }

        public ApiOperationPolicyArgs build() {
            if ($.apiManagementName == null) {
                throw new MissingRequiredPropertyException("ApiOperationPolicyArgs", "apiManagementName");
            }
            if ($.apiName == null) {
                throw new MissingRequiredPropertyException("ApiOperationPolicyArgs", "apiName");
            }
            if ($.operationId == null) {
                throw new MissingRequiredPropertyException("ApiOperationPolicyArgs", "operationId");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ApiOperationPolicyArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy