@max_replicas.setter<EOL><INDENT>def max_replicas(self, max_replicas):<DEDENT>
if max_replicas is None:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self._max_replicas = max_replicas<EOL>
Sets the max_replicas of this V2beta1HorizontalPodAutoscalerSpec.
maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.

:param max_replicas: The max_replicas of this V2beta1HorizontalPodAutoscalerSpec.
:type: int