Class NodeGroupAutoscalingPolicy.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroupAutoscalingPolicy.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroupAutoscalingPolicy.Builder>
      • getDefaultInstanceForType

        public NodeGroupAutoscalingPolicy getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public NodeGroupAutoscalingPolicy build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public NodeGroupAutoscalingPolicy buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroupAutoscalingPolicy.Builder>
      • mergeFrom

        public NodeGroupAutoscalingPolicy.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NodeGroupAutoscalingPolicy.Builder>
        Throws:
        IOException
      • hasMaxNodes

        public boolean hasMaxNodes()
         The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100.
         
        optional int32 max_nodes = 297762838;
        Specified by:
        hasMaxNodes in interface NodeGroupAutoscalingPolicyOrBuilder
        Returns:
        Whether the maxNodes field is set.
      • getMaxNodes

        public int getMaxNodes()
         The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100.
         
        optional int32 max_nodes = 297762838;
        Specified by:
        getMaxNodes in interface NodeGroupAutoscalingPolicyOrBuilder
        Returns:
        The maxNodes.
      • setMaxNodes

        public NodeGroupAutoscalingPolicy.Builder setMaxNodes​(int value)
         The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100.
         
        optional int32 max_nodes = 297762838;
        Parameters:
        value - The maxNodes to set.
        Returns:
        This builder for chaining.
      • clearMaxNodes

        public NodeGroupAutoscalingPolicy.Builder clearMaxNodes()
         The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100.
         
        optional int32 max_nodes = 297762838;
        Returns:
        This builder for chaining.
      • hasMinNodes

        public boolean hasMinNodes()
         The minimum number of nodes that the group should have.
         
        optional int32 min_nodes = 533370500;
        Specified by:
        hasMinNodes in interface NodeGroupAutoscalingPolicyOrBuilder
        Returns:
        Whether the minNodes field is set.
      • getMinNodes

        public int getMinNodes()
         The minimum number of nodes that the group should have.
         
        optional int32 min_nodes = 533370500;
        Specified by:
        getMinNodes in interface NodeGroupAutoscalingPolicyOrBuilder
        Returns:
        The minNodes.
      • setMinNodes

        public NodeGroupAutoscalingPolicy.Builder setMinNodes​(int value)
         The minimum number of nodes that the group should have.
         
        optional int32 min_nodes = 533370500;
        Parameters:
        value - The minNodes to set.
        Returns:
        This builder for chaining.
      • clearMinNodes

        public NodeGroupAutoscalingPolicy.Builder clearMinNodes()
         The minimum number of nodes that the group should have.
         
        optional int32 min_nodes = 533370500;
        Returns:
        This builder for chaining.
      • hasMode

        public boolean hasMode()
         The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes.
         Check the Mode enum for the list of possible values.
         
        optional string mode = 3357091;
        Specified by:
        hasMode in interface NodeGroupAutoscalingPolicyOrBuilder
        Returns:
        Whether the mode field is set.
      • getMode

        public String getMode()
         The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes.
         Check the Mode enum for the list of possible values.
         
        optional string mode = 3357091;
        Specified by:
        getMode in interface NodeGroupAutoscalingPolicyOrBuilder
        Returns:
        The mode.
      • getModeBytes

        public com.google.protobuf.ByteString getModeBytes()
         The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes.
         Check the Mode enum for the list of possible values.
         
        optional string mode = 3357091;
        Specified by:
        getModeBytes in interface NodeGroupAutoscalingPolicyOrBuilder
        Returns:
        The bytes for mode.
      • setMode

        public NodeGroupAutoscalingPolicy.Builder setMode​(String value)
         The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes.
         Check the Mode enum for the list of possible values.
         
        optional string mode = 3357091;
        Parameters:
        value - The mode to set.
        Returns:
        This builder for chaining.
      • clearMode

        public NodeGroupAutoscalingPolicy.Builder clearMode()
         The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes.
         Check the Mode enum for the list of possible values.
         
        optional string mode = 3357091;
        Returns:
        This builder for chaining.
      • setModeBytes

        public NodeGroupAutoscalingPolicy.Builder setModeBytes​(com.google.protobuf.ByteString value)
         The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes.
         Check the Mode enum for the list of possible values.
         
        optional string mode = 3357091;
        Parameters:
        value - The bytes for mode to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final NodeGroupAutoscalingPolicy.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroupAutoscalingPolicy.Builder>
      • mergeUnknownFields

        public final NodeGroupAutoscalingPolicy.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroupAutoscalingPolicy.Builder>