Class RequestWidget
- java.lang.Object
-
- software.amazon.awssdk.services.cloudtrail.model.RequestWidget
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RequestWidget.Builder,RequestWidget>
@Generated("software.amazon.awssdk:codegen") public final class RequestWidget extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RequestWidget.Builder,RequestWidget>
Contains information about a widget on a CloudTrail Lake dashboard.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRequestWidget.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestWidget.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasQueryParameters()For responses, this returns true if the service returned a value for the QueryParameters property.booleanhasViewProperties()For responses, this returns true if the service returned a value for the ViewProperties property.List<String>queryParameters()The optional query parameters.StringqueryStatement()The query statement for the widget.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends RequestWidget.Builder>serializableBuilderClass()RequestWidget.BuildertoBuilder()StringtoString()Returns a string representation of this object.Map<String,String>viewProperties()The view properties for the widget.-
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
-
queryStatement
public final String queryStatement()
The query statement for the widget. For custom dashboard widgets, you can query across multiple event data stores as long as all event data stores exist in your account.
When a query uses
?witheventTime,?must be surrounded by single quotes as follows:'?'.- Returns:
- The query statement for the widget. For custom dashboard widgets, you can query across multiple event
data stores as long as all event data stores exist in your account.
When a query uses
?witheventTime,?must be surrounded by single quotes as follows:'?'.
-
hasQueryParameters
public final boolean hasQueryParameters()
For responses, this returns true if the service returned a value for the QueryParameters 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.
-
queryParameters
public final List<String> queryParameters()
The optional query parameters. The following query parameters are valid:
$StartTime$,$EndTime$, and$Period$.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
hasQueryParameters()method.- Returns:
- The optional query parameters. The following query parameters are valid:
$StartTime$,$EndTime$, and$Period$.
-
hasViewProperties
public final boolean hasViewProperties()
For responses, this returns true if the service returned a value for the ViewProperties 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.
-
viewProperties
public final Map<String,String> viewProperties()
The view properties for the widget. For more information about view properties, see View properties for widgets in the CloudTrail User Guide.
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
hasViewProperties()method.- Returns:
- The view properties for the widget. For more information about view properties, see View properties for widgets in the CloudTrail User Guide.
-
toBuilder
public RequestWidget.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RequestWidget.Builder,RequestWidget>
-
builder
public static RequestWidget.Builder builder()
-
serializableBuilderClass
public static Class<? extends RequestWidget.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
-
-