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

com.microsoft.azure.management.network.PatchRouteFilterRule Maven / Gradle / Ivy

There is a newer version: 1.41.4
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.management.network;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.SubResource;

/**
 * Route Filter Rule Resource.
 */
@JsonFlatten
public class PatchRouteFilterRule extends SubResource {
    /**
     * The access type of the rule. Possible values include: 'Allow', 'Deny'.
     */
    @JsonProperty(value = "properties.access", required = true)
    private Access access;

    /**
     * The rule type of the rule.
     */
    @JsonProperty(value = "properties.routeFilterRuleType", required = true)
    private String routeFilterRuleType;

    /**
     * The collection for bgp community values to filter on. e.g.
     * ['12076:5010','12076:5020'].
     */
    @JsonProperty(value = "properties.communities", required = true)
    private List communities;

    /**
     * The provisioning state of the route filter rule resource. Possible
     * values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
     */
    @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
    private ProvisioningState provisioningState;

    /**
     * The name of the resource that is unique within a resource group. This
     * name can be used to access the resource.
     */
    @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
    private String name;

    /**
     * A unique read-only string that changes whenever the resource is updated.
     */
    @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
    private String etag;

    /**
     * Creates an instance of PatchRouteFilterRule class.
     */
    public PatchRouteFilterRule() {
        routeFilterRuleType = "Community";
    }

    /**
     * Get the access type of the rule. Possible values include: 'Allow', 'Deny'.
     *
     * @return the access value
     */
    public Access access() {
        return this.access;
    }

    /**
     * Set the access type of the rule. Possible values include: 'Allow', 'Deny'.
     *
     * @param access the access value to set
     * @return the PatchRouteFilterRule object itself.
     */
    public PatchRouteFilterRule withAccess(Access access) {
        this.access = access;
        return this;
    }

    /**
     * Get the rule type of the rule.
     *
     * @return the routeFilterRuleType value
     */
    public String routeFilterRuleType() {
        return this.routeFilterRuleType;
    }

    /**
     * Set the rule type of the rule.
     *
     * @param routeFilterRuleType the routeFilterRuleType value to set
     * @return the PatchRouteFilterRule object itself.
     */
    public PatchRouteFilterRule withRouteFilterRuleType(String routeFilterRuleType) {
        this.routeFilterRuleType = routeFilterRuleType;
        return this;
    }

    /**
     * Get the collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].
     *
     * @return the communities value
     */
    public List communities() {
        return this.communities;
    }

    /**
     * Set the collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].
     *
     * @param communities the communities value to set
     * @return the PatchRouteFilterRule object itself.
     */
    public PatchRouteFilterRule withCommunities(List communities) {
        this.communities = communities;
        return this;
    }

    /**
     * Get the provisioning state of the route filter rule resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
     *
     * @return the provisioningState value
     */
    public ProvisioningState provisioningState() {
        return this.provisioningState;
    }

    /**
     * Get the name of the resource that is unique within a resource group. This name can be used to access the resource.
     *
     * @return the name value
     */
    public String name() {
        return this.name;
    }

    /**
     * Get a unique read-only string that changes whenever the resource is updated.
     *
     * @return the etag value
     */
    public String etag() {
        return this.etag;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy