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

namespace Google\Cloud\GkeMultiCloud\V1;

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

/**
 * Configuration for the placement of a control plane replica.
 *
 * Generated from protobuf message <code>google.cloud.gkemulticloud.v1.ReplicaPlacement</code>
 */
class ReplicaPlacement extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. For a given replica, the ARM ID of the subnet where the control
     * plane VM is deployed. Make sure it's a subnet under the virtual network in
     * the cluster configuration.
     *
     * Generated from protobuf field <code>string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $subnet_id = '';
    /**
     * Required. For a given replica, the Azure availability zone where to
     * provision the control plane VM and the ETCD disk.
     *
     * Generated from protobuf field <code>string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $azure_availability_zone = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $subnet_id
     *           Required. For a given replica, the ARM ID of the subnet where the control
     *           plane VM is deployed. Make sure it's a subnet under the virtual network in
     *           the cluster configuration.
     *     @type string $azure_availability_zone
     *           Required. For a given replica, the Azure availability zone where to
     *           provision the control plane VM and the ETCD disk.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. For a given replica, the ARM ID of the subnet where the control
     * plane VM is deployed. Make sure it's a subnet under the virtual network in
     * the cluster configuration.
     *
     * Generated from protobuf field <code>string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getSubnetId()
    {
        return $this->subnet_id;
    }

    /**
     * Required. For a given replica, the ARM ID of the subnet where the control
     * plane VM is deployed. Make sure it's a subnet under the virtual network in
     * the cluster configuration.
     *
     * Generated from protobuf field <code>string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setSubnetId($var)
    {
        GPBUtil::checkString($var, True);
        $this->subnet_id = $var;

        return $this;
    }

    /**
     * Required. For a given replica, the Azure availability zone where to
     * provision the control plane VM and the ETCD disk.
     *
     * Generated from protobuf field <code>string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getAzureAvailabilityZone()
    {
        return $this->azure_availability_zone;
    }

    /**
     * Required. For a given replica, the Azure availability zone where to
     * provision the control plane VM and the ETCD disk.
     *
     * Generated from protobuf field <code>string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setAzureAvailabilityZone($var)
    {
        GPBUtil::checkString($var, True);
        $this->azure_availability_zone = $var;

        return $this;
    }

}

