Class Logger
- java.lang.Object
-
- software.amazon.awssdk.services.greengrass.model.Logger
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Logger.Builder,Logger>
@Generated("software.amazon.awssdk:codegen") public final class Logger extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Logger.Builder,Logger>
Information about a logger- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLogger.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Logger.Builderbuilder()LoggerComponentcomponent()The component that will be subject to logging.StringcomponentAsString()The component that will be subject to logging.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()A descriptive or arbitrary ID for the logger.LoggerLevellevel()The level of the logs.StringlevelAsString()The level of the logs.List<SdkField<?>>sdkFields()static Class<? extends Logger.Builder>serializableBuilderClass()Integerspace()The amount of file space, in KB, to use if the local file system is used for logging purposes.Logger.BuildertoBuilder()StringtoString()Returns a string representation of this object.LoggerTypetype()The type of log output which will be used.StringtypeAsString()The type of log output which will be used.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
component
public final LoggerComponent component()
The component that will be subject to logging.If the service returns an enum value that is not available in the current SDK version,
componentwill returnLoggerComponent.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcomponentAsString().- Returns:
- The component that will be subject to logging.
- See Also:
LoggerComponent
-
componentAsString
public final String componentAsString()
The component that will be subject to logging.If the service returns an enum value that is not available in the current SDK version,
componentwill returnLoggerComponent.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcomponentAsString().- Returns:
- The component that will be subject to logging.
- See Also:
LoggerComponent
-
id
public final String id()
A descriptive or arbitrary ID for the logger. This value must be unique within the logger definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.- Returns:
- A descriptive or arbitrary ID for the logger. This value must be unique within the logger definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.
-
level
public final LoggerLevel level()
The level of the logs.If the service returns an enum value that is not available in the current SDK version,
levelwill returnLoggerLevel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlevelAsString().- Returns:
- The level of the logs.
- See Also:
LoggerLevel
-
levelAsString
public final String levelAsString()
The level of the logs.If the service returns an enum value that is not available in the current SDK version,
levelwill returnLoggerLevel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlevelAsString().- Returns:
- The level of the logs.
- See Also:
LoggerLevel
-
space
public final Integer space()
The amount of file space, in KB, to use if the local file system is used for logging purposes.- Returns:
- The amount of file space, in KB, to use if the local file system is used for logging purposes.
-
type
public final LoggerType type()
The type of log output which will be used.If the service returns an enum value that is not available in the current SDK version,
typewill returnLoggerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of log output which will be used.
- See Also:
LoggerType
-
typeAsString
public final String typeAsString()
The type of log output which will be used.If the service returns an enum value that is not available in the current SDK version,
typewill returnLoggerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of log output which will be used.
- See Also:
LoggerType
-
toBuilder
public Logger.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Logger.Builder,Logger>
-
builder
public static Logger.Builder builder()
-
serializableBuilderClass
public static Class<? extends Logger.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
-