Class LogSourceResource
- java.lang.Object
-
- software.amazon.awssdk.services.securitylake.model.LogSourceResource
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LogSourceResource.Builder,LogSourceResource>
@Generated("software.amazon.awssdk:codegen") public final class LogSourceResource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LogSourceResource.Builder,LogSourceResource>
The supported source types from which logs and events are collected in Amazon Security Lake. For a list of supported Amazon Web Services, see the Amazon Security Lake User Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLogSourceResource.Builderstatic classLogSourceResource.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsLogSourceResourceawsLogSource()Amazon Security Lake supports log and event collection for natively supported Amazon Web Services.static LogSourceResource.Builderbuilder()CustomLogSourceResourcecustomLogSource()Amazon Security Lake supports custom source types.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static LogSourceResourcefromAwsLogSource(Consumer<AwsLogSourceResource.Builder> awsLogSource)Create an instance of this class withawsLogSource()initialized to the given value.static LogSourceResourcefromAwsLogSource(AwsLogSourceResource awsLogSource)Create an instance of this class withawsLogSource()initialized to the given value.static LogSourceResourcefromCustomLogSource(Consumer<CustomLogSourceResource.Builder> customLogSource)Create an instance of this class withcustomLogSource()initialized to the given value.static LogSourceResourcefromCustomLogSource(CustomLogSourceResource customLogSource)Create an instance of this class withcustomLogSource()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends LogSourceResource.Builder>serializableBuilderClass()LogSourceResource.BuildertoBuilder()StringtoString()Returns a string representation of this object.LogSourceResource.Typetype()Retrieve an enum value representing which member of this object is populated.-
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
-
awsLogSource
public final AwsLogSourceResource awsLogSource()
Amazon Security Lake supports log and event collection for natively supported Amazon Web Services. For more information, see the Amazon Security Lake User Guide.
- Returns:
- Amazon Security Lake supports log and event collection for natively supported Amazon Web Services. For more information, see the Amazon Security Lake User Guide.
-
customLogSource
public final CustomLogSourceResource customLogSource()
Amazon Security Lake supports custom source types. For more information, see the Amazon Security Lake User Guide.
- Returns:
- Amazon Security Lake supports custom source types. For more information, see the Amazon Security Lake User Guide.
-
toBuilder
public LogSourceResource.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LogSourceResource.Builder,LogSourceResource>
-
builder
public static LogSourceResource.Builder builder()
-
serializableBuilderClass
public static Class<? extends LogSourceResource.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.
-
fromAwsLogSource
public static LogSourceResource fromAwsLogSource(AwsLogSourceResource awsLogSource)
Create an instance of this class withawsLogSource()initialized to the given value.Amazon Security Lake supports log and event collection for natively supported Amazon Web Services. For more information, see the Amazon Security Lake User Guide.
- Parameters:
awsLogSource- Amazon Security Lake supports log and event collection for natively supported Amazon Web Services. For more information, see the Amazon Security Lake User Guide.
-
fromAwsLogSource
public static LogSourceResource fromAwsLogSource(Consumer<AwsLogSourceResource.Builder> awsLogSource)
Create an instance of this class withawsLogSource()initialized to the given value.Amazon Security Lake supports log and event collection for natively supported Amazon Web Services. For more information, see the Amazon Security Lake User Guide.
- Parameters:
awsLogSource- Amazon Security Lake supports log and event collection for natively supported Amazon Web Services. For more information, see the Amazon Security Lake User Guide.
-
fromCustomLogSource
public static LogSourceResource fromCustomLogSource(CustomLogSourceResource customLogSource)
Create an instance of this class withcustomLogSource()initialized to the given value.Amazon Security Lake supports custom source types. For more information, see the Amazon Security Lake User Guide.
- Parameters:
customLogSource- Amazon Security Lake supports custom source types. For more information, see the Amazon Security Lake User Guide.
-
fromCustomLogSource
public static LogSourceResource fromCustomLogSource(Consumer<CustomLogSourceResource.Builder> customLogSource)
Create an instance of this class withcustomLogSource()initialized to the given value.Amazon Security Lake supports custom source types. For more information, see the Amazon Security Lake User Guide.
- Parameters:
customLogSource- Amazon Security Lake supports custom source types. For more information, see the Amazon Security Lake User Guide.
-
type
public LogSourceResource.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beLogSourceResource.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beLogSourceResource.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-