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

namespace Google\Cloud\GkeMultiCloud\V1;

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

/**
 * AwsNodePoolAutoscaling contains information required by cluster autoscaler
 * to adjust the size of the node pool to the current cluster usage.
 *
 * Generated from protobuf message <code>google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling</code>
 */
class AwsNodePoolAutoscaling extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Minimum number of nodes in the node pool. Must be greater than or
     * equal to 1 and less than or equal to max_node_count.
     *
     * Generated from protobuf field <code>int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $min_node_count = 0;
    /**
     * Required. Maximum number of nodes in the node pool. Must be greater than or
     * equal to min_node_count and less than or equal to 50.
     *
     * Generated from protobuf field <code>int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $max_node_count = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $min_node_count
     *           Required. Minimum number of nodes in the node pool. Must be greater than or
     *           equal to 1 and less than or equal to max_node_count.
     *     @type int $max_node_count
     *           Required. Maximum number of nodes in the node pool. Must be greater than or
     *           equal to min_node_count and less than or equal to 50.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Minimum number of nodes in the node pool. Must be greater than or
     * equal to 1 and less than or equal to max_node_count.
     *
     * Generated from protobuf field <code>int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getMinNodeCount()
    {
        return $this->min_node_count;
    }

    /**
     * Required. Minimum number of nodes in the node pool. Must be greater than or
     * equal to 1 and less than or equal to max_node_count.
     *
     * Generated from protobuf field <code>int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setMinNodeCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->min_node_count = $var;

        return $this;
    }

    /**
     * Required. Maximum number of nodes in the node pool. Must be greater than or
     * equal to min_node_count and less than or equal to 50.
     *
     * Generated from protobuf field <code>int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getMaxNodeCount()
    {
        return $this->max_node_count;
    }

    /**
     * Required. Maximum number of nodes in the node pool. Must be greater than or
     * equal to min_node_count and less than or equal to 50.
     *
     * Generated from protobuf field <code>int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setMaxNodeCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->max_node_count = $var;

        return $this;
    }

}

