Class CloudWatchLogConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.emr.model.CloudWatchLogConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CloudWatchLogConfiguration.Builder,CloudWatchLogConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class CloudWatchLogConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CloudWatchLogConfiguration.Builder,CloudWatchLogConfiguration>
Holds CloudWatch log configuration settings and metadata that specify settings like log files to monitor and where to send them.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCloudWatchLogConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CloudWatchLogConfiguration.Builderbuilder()Booleanenabled()Specifies if CloudWatch logging is enabled.StringencryptionKeyArn()The ARN of the encryption key used to encrypt the logs.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasLogTypes()For responses, this returns true if the service returned a value for the LogTypes property.StringlogGroupName()The name of the CloudWatch log group where logs are published.StringlogStreamNamePrefix()The prefix of the log stream name.Map<String,List<String>>logTypes()A map of log types to file names for publishing logs to the standard output or standard error streams for CloudWatch.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CloudWatchLogConfiguration.Builder>serializableBuilderClass()CloudWatchLogConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
enabled
public final Boolean enabled()
Specifies if CloudWatch logging is enabled.
- Returns:
- Specifies if CloudWatch logging is enabled.
-
logGroupName
public final String logGroupName()
The name of the CloudWatch log group where logs are published.
- Returns:
- The name of the CloudWatch log group where logs are published.
-
logStreamNamePrefix
public final String logStreamNamePrefix()
The prefix of the log stream name.
- Returns:
- The prefix of the log stream name.
-
encryptionKeyArn
public final String encryptionKeyArn()
The ARN of the encryption key used to encrypt the logs.
- Returns:
- The ARN of the encryption key used to encrypt the logs.
-
hasLogTypes
public final boolean hasLogTypes()
For responses, this returns true if the service returned a value for the LogTypes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
logTypes
public final Map<String,List<String>> logTypes()
A map of log types to file names for publishing logs to the standard output or standard error streams for CloudWatch. Valid log types include STEP_LOGS, SPARK_DRIVER, and SPARK_EXECUTOR. Valid file names for each type include STDOUT and STDERR.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasLogTypes()method.- Returns:
- A map of log types to file names for publishing logs to the standard output or standard error streams for CloudWatch. Valid log types include STEP_LOGS, SPARK_DRIVER, and SPARK_EXECUTOR. Valid file names for each type include STDOUT and STDERR.
-
toBuilder
public CloudWatchLogConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CloudWatchLogConfiguration.Builder,CloudWatchLogConfiguration>
-
builder
public static CloudWatchLogConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends CloudWatchLogConfiguration.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-