<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/compute/v1/compute.proto

namespace Google\Cloud\Compute\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * [Output Only] The redundancy this group is configured to support. The way a user queries what SLA their Attachment gets is by looking at this field of the Attachment's AttachmentGroup.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.InterconnectAttachmentGroupConfigured</code>
 */
class InterconnectAttachmentGroupConfigured extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.InterconnectAttachmentGroupConfiguredAvailabilitySLA availability_sla = 472702020;</code>
     */
    protected $availability_sla = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Compute\V1\InterconnectAttachmentGroupConfiguredAvailabilitySLA $availability_sla
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.InterconnectAttachmentGroupConfiguredAvailabilitySLA availability_sla = 472702020;</code>
     * @return \Google\Cloud\Compute\V1\InterconnectAttachmentGroupConfiguredAvailabilitySLA|null
     */
    public function getAvailabilitySla()
    {
        return $this->availability_sla;
    }

    public function hasAvailabilitySla()
    {
        return isset($this->availability_sla);
    }

    public function clearAvailabilitySla()
    {
        unset($this->availability_sla);
    }

    /**
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.InterconnectAttachmentGroupConfiguredAvailabilitySLA availability_sla = 472702020;</code>
     * @param \Google\Cloud\Compute\V1\InterconnectAttachmentGroupConfiguredAvailabilitySLA $var
     * @return $this
     */
    public function setAvailabilitySla($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\InterconnectAttachmentGroupConfiguredAvailabilitySLA::class);
        $this->availability_sla = $var;

        return $this;
    }

}

