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

package com.azure.resourcemanager.peering.implementation;

import com.azure.resourcemanager.peering.fluent.models.CdnPeeringPrefixInner;
import com.azure.resourcemanager.peering.models.CdnPeeringPrefix;

public final class CdnPeeringPrefixImpl implements CdnPeeringPrefix {
    private CdnPeeringPrefixInner innerObject;

    private final com.azure.resourcemanager.peering.PeeringManager serviceManager;

    CdnPeeringPrefixImpl(
        CdnPeeringPrefixInner innerObject, com.azure.resourcemanager.peering.PeeringManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public String id() {
        return this.innerModel().id();
    }

    public String name() {
        return this.innerModel().name();
    }

    public String type() {
        return this.innerModel().type();
    }

    public String prefix() {
        return this.innerModel().prefix();
    }

    public String azureRegion() {
        return this.innerModel().azureRegion();
    }

    public String azureService() {
        return this.innerModel().azureService();
    }

    public Boolean isPrimaryRegion() {
        return this.innerModel().isPrimaryRegion();
    }

    public String bgpCommunity() {
        return this.innerModel().bgpCommunity();
    }

    public CdnPeeringPrefixInner innerModel() {
        return this.innerObject;
    }

    private com.azure.resourcemanager.peering.PeeringManager manager() {
        return this.serviceManager;
    }
}
