Class AwsAutoscalingGroupMetricsCollection.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<AwsAutoscalingGroupMetricsCollection.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<AwsAutoscalingGroupMetricsCollection.Builder>
      • getDefaultInstanceForType

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

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

        public AwsAutoscalingGroupMetricsCollection 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<AwsAutoscalingGroupMetricsCollection.Builder>
      • getGranularity

        public String getGranularity()
         Required. The frequency at which EC2 Auto Scaling sends aggregated data to
         AWS CloudWatch. The only valid value is "1Minute".
         
        string granularity = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getGranularity in interface AwsAutoscalingGroupMetricsCollectionOrBuilder
        Returns:
        The granularity.
      • getGranularityBytes

        public com.google.protobuf.ByteString getGranularityBytes()
         Required. The frequency at which EC2 Auto Scaling sends aggregated data to
         AWS CloudWatch. The only valid value is "1Minute".
         
        string granularity = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getGranularityBytes in interface AwsAutoscalingGroupMetricsCollectionOrBuilder
        Returns:
        The bytes for granularity.
      • setGranularity

        public AwsAutoscalingGroupMetricsCollection.Builder setGranularity​(String value)
         Required. The frequency at which EC2 Auto Scaling sends aggregated data to
         AWS CloudWatch. The only valid value is "1Minute".
         
        string granularity = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The granularity to set.
        Returns:
        This builder for chaining.
      • clearGranularity

        public AwsAutoscalingGroupMetricsCollection.Builder clearGranularity()
         Required. The frequency at which EC2 Auto Scaling sends aggregated data to
         AWS CloudWatch. The only valid value is "1Minute".
         
        string granularity = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setGranularityBytes

        public AwsAutoscalingGroupMetricsCollection.Builder setGranularityBytes​(com.google.protobuf.ByteString value)
         Required. The frequency at which EC2 Auto Scaling sends aggregated data to
         AWS CloudWatch. The only valid value is "1Minute".
         
        string granularity = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for granularity to set.
        Returns:
        This builder for chaining.
      • getMetricsList

        public com.google.protobuf.ProtocolStringList getMetricsList()
         Optional. The metrics to enable. For a list of valid metrics, see
         https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
         If you specify Granularity and don't specify any metrics, all metrics are
         enabled.
         
        repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getMetricsList in interface AwsAutoscalingGroupMetricsCollectionOrBuilder
        Returns:
        A list containing the metrics.
      • getMetricsCount

        public int getMetricsCount()
         Optional. The metrics to enable. For a list of valid metrics, see
         https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
         If you specify Granularity and don't specify any metrics, all metrics are
         enabled.
         
        repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getMetricsCount in interface AwsAutoscalingGroupMetricsCollectionOrBuilder
        Returns:
        The count of metrics.
      • getMetrics

        public String getMetrics​(int index)
         Optional. The metrics to enable. For a list of valid metrics, see
         https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
         If you specify Granularity and don't specify any metrics, all metrics are
         enabled.
         
        repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getMetrics in interface AwsAutoscalingGroupMetricsCollectionOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The metrics at the given index.
      • getMetricsBytes

        public com.google.protobuf.ByteString getMetricsBytes​(int index)
         Optional. The metrics to enable. For a list of valid metrics, see
         https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
         If you specify Granularity and don't specify any metrics, all metrics are
         enabled.
         
        repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getMetricsBytes in interface AwsAutoscalingGroupMetricsCollectionOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the metrics at the given index.
      • setMetrics

        public AwsAutoscalingGroupMetricsCollection.Builder setMetrics​(int index,
                                                                       String value)
         Optional. The metrics to enable. For a list of valid metrics, see
         https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
         If you specify Granularity and don't specify any metrics, all metrics are
         enabled.
         
        repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The metrics to set.
        Returns:
        This builder for chaining.
      • addMetrics

        public AwsAutoscalingGroupMetricsCollection.Builder addMetrics​(String value)
         Optional. The metrics to enable. For a list of valid metrics, see
         https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
         If you specify Granularity and don't specify any metrics, all metrics are
         enabled.
         
        repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The metrics to add.
        Returns:
        This builder for chaining.
      • addAllMetrics

        public AwsAutoscalingGroupMetricsCollection.Builder addAllMetrics​(Iterable<String> values)
         Optional. The metrics to enable. For a list of valid metrics, see
         https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
         If you specify Granularity and don't specify any metrics, all metrics are
         enabled.
         
        repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The metrics to add.
        Returns:
        This builder for chaining.
      • clearMetrics

        public AwsAutoscalingGroupMetricsCollection.Builder clearMetrics()
         Optional. The metrics to enable. For a list of valid metrics, see
         https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
         If you specify Granularity and don't specify any metrics, all metrics are
         enabled.
         
        repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • addMetricsBytes

        public AwsAutoscalingGroupMetricsCollection.Builder addMetricsBytes​(com.google.protobuf.ByteString value)
         Optional. The metrics to enable. For a list of valid metrics, see
         https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
         If you specify Granularity and don't specify any metrics, all metrics are
         enabled.
         
        repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes of the metrics to add.
        Returns:
        This builder for chaining.