Class MethodSetting

    • Method Detail

      • metricsEnabled

        public final Boolean metricsEnabled()

        Specifies whether Amazon CloudWatch metrics are enabled for this method.

        Returns:
        Specifies whether Amazon CloudWatch metrics are enabled for this method.
      • loggingLevel

        public final String loggingLevel()

        Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are OFF, ERROR, and INFO. Choose ERROR to write only error-level entries to CloudWatch Logs, or choose INFO to include all ERROR events as well as extra informational events.

        Returns:
        Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are OFF, ERROR, and INFO. Choose ERROR to write only error-level entries to CloudWatch Logs, or choose INFO to include all ERROR events as well as extra informational events.
      • dataTraceEnabled

        public final Boolean dataTraceEnabled()

        Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.

        Returns:
        Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.
      • throttlingBurstLimit

        public final Integer throttlingBurstLimit()

        Specifies the throttling burst limit.

        Returns:
        Specifies the throttling burst limit.
      • throttlingRateLimit

        public final Double throttlingRateLimit()

        Specifies the throttling rate limit.

        Returns:
        Specifies the throttling rate limit.
      • cachingEnabled

        public final Boolean cachingEnabled()

        Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.

        Returns:
        Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
      • cacheTtlInSeconds

        public final Integer cacheTtlInSeconds()

        Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.

        Returns:
        Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
      • cacheDataEncrypted

        public final Boolean cacheDataEncrypted()

        Specifies whether the cached responses are encrypted.

        Returns:
        Specifies whether the cached responses are encrypted.
      • requireAuthorizationForCacheControl

        public final Boolean requireAuthorizationForCacheControl()

        Specifies whether authorization is required for a cache invalidation request.

        Returns:
        Specifies whether authorization is required for a cache invalidation request.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)