autoCapacityDrain = $autoCapacityDrain; } /** * @return ServiceLbPolicyAutoCapacityDrain */ public function getAutoCapacityDrain() { return $this->autoCapacityDrain; } /** * Output only. The timestamp when this resource was created. * * @param string $createTime */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * Optional. A free-text description of the resource. Max length 1024 * characters. * * @param string $description */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * Optional. Configuration related to health based failover. * * @param ServiceLbPolicyFailoverConfig $failoverConfig */ public function setFailoverConfig(ServiceLbPolicyFailoverConfig $failoverConfig) { $this->failoverConfig = $failoverConfig; } /** * @return ServiceLbPolicyFailoverConfig */ public function getFailoverConfig() { return $this->failoverConfig; } /** * Optional. Configuration to provide isolation support for the associated * Backend Service. * * @param ServiceLbPolicyIsolationConfig $isolationConfig */ public function setIsolationConfig(ServiceLbPolicyIsolationConfig $isolationConfig) { $this->isolationConfig = $isolationConfig; } /** * @return ServiceLbPolicyIsolationConfig */ public function getIsolationConfig() { return $this->isolationConfig; } /** * Optional. Set of label tags associated with the ServiceLbPolicy resource. * * @param string[] $labels */ public function setLabels($labels) { $this->labels = $labels; } /** * @return string[] */ public function getLabels() { return $this->labels; } /** * Optional. The type of load balancing algorithm to be used. The default * behavior is WATERFALL_BY_REGION. * * Accepted values: LOAD_BALANCING_ALGORITHM_UNSPECIFIED, SPRAY_TO_WORLD, * SPRAY_TO_REGION, WATERFALL_BY_REGION, WATERFALL_BY_ZONE * * @param self::LOAD_BALANCING_ALGORITHM_* $loadBalancingAlgorithm */ public function setLoadBalancingAlgorithm($loadBalancingAlgorithm) { $this->loadBalancingAlgorithm = $loadBalancingAlgorithm; } /** * @return self::LOAD_BALANCING_ALGORITHM_* */ public function getLoadBalancingAlgorithm() { return $this->loadBalancingAlgorithm; } /** * Identifier. Name of the ServiceLbPolicy resource. It matches pattern `proje * cts/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_nam * e}`. * * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * Output only. The timestamp when this resource was last updated. * * @param string $updateTime */ public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; } /** * @return string */ public function getUpdateTime() { return $this->updateTime; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ServiceLbPolicy::class, 'Google_Service_NetworkServices_ServiceLbPolicy');