Class EnabledControlFilter
- java.lang.Object
-
- software.amazon.awssdk.services.controltower.model.EnabledControlFilter
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EnabledControlFilter.Builder,EnabledControlFilter>
@Generated("software.amazon.awssdk:codegen") public final class EnabledControlFilter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EnabledControlFilter.Builder,EnabledControlFilter>
A structure that returns a set of control identifiers, the control status for each control in the set, and the drift status for each control in the set.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEnabledControlFilter.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnabledControlFilter.Builderbuilder()List<String>controlIdentifiers()The set ofcontrolIdentifierreturned by the filter.List<DriftStatus>driftStatuses()A list ofDriftStatusitems.List<String>driftStatusesAsStrings()A list ofDriftStatusitems.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasControlIdentifiers()For responses, this returns true if the service returned a value for the ControlIdentifiers property.booleanhasDriftStatuses()For responses, this returns true if the service returned a value for the DriftStatuses property.inthashCode()booleanhasStatuses()For responses, this returns true if the service returned a value for the Statuses property.List<SdkField<?>>sdkFields()static Class<? extends EnabledControlFilter.Builder>serializableBuilderClass()List<EnablementStatus>statuses()A list ofEnablementStatusitems.List<String>statusesAsStrings()A list ofEnablementStatusitems.EnabledControlFilter.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
-
hasControlIdentifiers
public final boolean hasControlIdentifiers()
For responses, this returns true if the service returned a value for the ControlIdentifiers 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.
-
controlIdentifiers
public final List<String> controlIdentifiers()
The set of
controlIdentifierreturned by the filter.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
hasControlIdentifiers()method.- Returns:
- The set of
controlIdentifierreturned by the filter.
-
driftStatuses
public final List<DriftStatus> driftStatuses()
A list of
DriftStatusitems.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
hasDriftStatuses()method.- Returns:
- A list of
DriftStatusitems.
-
hasDriftStatuses
public final boolean hasDriftStatuses()
For responses, this returns true if the service returned a value for the DriftStatuses 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.
-
driftStatusesAsStrings
public final List<String> driftStatusesAsStrings()
A list of
DriftStatusitems.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
hasDriftStatuses()method.- Returns:
- A list of
DriftStatusitems.
-
statuses
public final List<EnablementStatus> statuses()
A list of
EnablementStatusitems.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
hasStatuses()method.- Returns:
- A list of
EnablementStatusitems.
-
hasStatuses
public final boolean hasStatuses()
For responses, this returns true if the service returned a value for the Statuses 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.
-
statusesAsStrings
public final List<String> statusesAsStrings()
A list of
EnablementStatusitems.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
hasStatuses()method.- Returns:
- A list of
EnablementStatusitems.
-
toBuilder
public EnabledControlFilter.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EnabledControlFilter.Builder,EnabledControlFilter>
-
builder
public static EnabledControlFilter.Builder builder()
-
serializableBuilderClass
public static Class<? extends EnabledControlFilter.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.
-
-