Class LogConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.gamelift.model.LogConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LogConfiguration.Builder,LogConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class LogConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LogConfiguration.Builder,LogConfiguration>
A method for collecting container logs for the fleet. Amazon GameLift saves all standard output for each container in logs, including game session logs. You can select from the following methods:
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLogConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LogConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LogDestinationlogDestination()The type of log collection to use for a fleet.StringlogDestinationAsString()The type of log collection to use for a fleet.StringlogGroupArn()If log destination isCLOUDWATCH, logs are sent to the specified log group in Amazon CloudWatch.Strings3BucketName()If log destination isS3, logs are sent to the specified Amazon S3 bucket name.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends LogConfiguration.Builder>serializableBuilderClass()LogConfiguration.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
-
logDestination
public final LogDestination logDestination()
The type of log collection to use for a fleet.
-
CLOUDWATCH-- (default value) Send logs to an Amazon CloudWatch log group that you define. Each container emits a log stream, which is organized in the log group. -
S3-- Store logs in an Amazon S3 bucket that you define. -
NONE-- Don't collect container logs.
If the service returns an enum value that is not available in the current SDK version,
logDestinationwill returnLogDestination.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlogDestinationAsString().- Returns:
- The type of log collection to use for a fleet.
-
CLOUDWATCH-- (default value) Send logs to an Amazon CloudWatch log group that you define. Each container emits a log stream, which is organized in the log group. -
S3-- Store logs in an Amazon S3 bucket that you define. -
NONE-- Don't collect container logs.
-
- See Also:
LogDestination
-
-
logDestinationAsString
public final String logDestinationAsString()
The type of log collection to use for a fleet.
-
CLOUDWATCH-- (default value) Send logs to an Amazon CloudWatch log group that you define. Each container emits a log stream, which is organized in the log group. -
S3-- Store logs in an Amazon S3 bucket that you define. -
NONE-- Don't collect container logs.
If the service returns an enum value that is not available in the current SDK version,
logDestinationwill returnLogDestination.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlogDestinationAsString().- Returns:
- The type of log collection to use for a fleet.
-
CLOUDWATCH-- (default value) Send logs to an Amazon CloudWatch log group that you define. Each container emits a log stream, which is organized in the log group. -
S3-- Store logs in an Amazon S3 bucket that you define. -
NONE-- Don't collect container logs.
-
- See Also:
LogDestination
-
-
s3BucketName
public final String s3BucketName()
If log destination is
S3, logs are sent to the specified Amazon S3 bucket name.- Returns:
- If log destination is
S3, logs are sent to the specified Amazon S3 bucket name.
-
logGroupArn
public final String logGroupArn()
If log destination is
CLOUDWATCH, logs are sent to the specified log group in Amazon CloudWatch.- Returns:
- If log destination is
CLOUDWATCH, logs are sent to the specified log group in Amazon CloudWatch.
-
toBuilder
public LogConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LogConfiguration.Builder,LogConfiguration>
-
builder
public static LogConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends LogConfiguration.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
-
-