Class OrganizationalUnitScope
- java.lang.Object
-
- software.amazon.awssdk.services.fms.model.OrganizationalUnitScope
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<OrganizationalUnitScope.Builder,OrganizationalUnitScope>
@Generated("software.amazon.awssdk:codegen") public final class OrganizationalUnitScope extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OrganizationalUnitScope.Builder,OrganizationalUnitScope>
Defines the Organizations organizational units (OUs) that the specified Firewall Manager administrator can apply policies to. For more information about OUs in Organizations, see Managing organizational units (OUs) in the Organizations User Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOrganizationalUnitScope.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanallOrganizationalUnitsEnabled()A boolean value that indicates if the administrator can apply policies to all OUs within an organization.static OrganizationalUnitScope.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)BooleanexcludeSpecifiedOrganizationalUnits()A boolean value that excludes the OUs inOrganizationalUnitScope$OrganizationalUnitsfrom the administrator's scope.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasOrganizationalUnits()For responses, this returns true if the service returned a value for the OrganizationalUnits property.List<String>organizationalUnits()The list of OUs within the organization that the specified Firewall Manager administrator either can or cannot apply policies to, based on the value ofOrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnits.List<SdkField<?>>sdkFields()static Class<? extends OrganizationalUnitScope.Builder>serializableBuilderClass()OrganizationalUnitScope.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
-
hasOrganizationalUnits
public final boolean hasOrganizationalUnits()
For responses, this returns true if the service returned a value for the OrganizationalUnits 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.
-
organizationalUnits
public final List<String> organizationalUnits()
The list of OUs within the organization that the specified Firewall Manager administrator either can or cannot apply policies to, based on the value of
OrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnits. IfOrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnitsis set totrue, then the Firewall Manager administrator can apply policies to all OUs in the organization except for the OUs in this list. IfOrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnitsis set tofalse, then the Firewall Manager administrator can only apply policies to the OUs in this list.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
hasOrganizationalUnits()method.- Returns:
- The list of OUs within the organization that the specified Firewall Manager administrator either can or
cannot apply policies to, based on the value of
OrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnits. IfOrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnitsis set totrue, then the Firewall Manager administrator can apply policies to all OUs in the organization except for the OUs in this list. IfOrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnitsis set tofalse, then the Firewall Manager administrator can only apply policies to the OUs in this list.
-
allOrganizationalUnitsEnabled
public final Boolean allOrganizationalUnitsEnabled()
A boolean value that indicates if the administrator can apply policies to all OUs within an organization. If true, the administrator can manage all OUs within the organization. You can either enable management of all OUs through this operation, or you can specify OUs to manage in
OrganizationalUnitScope$OrganizationalUnits. You cannot specify both.- Returns:
- A boolean value that indicates if the administrator can apply policies to all OUs within an organization.
If true, the administrator can manage all OUs within the organization. You can either enable management
of all OUs through this operation, or you can specify OUs to manage in
OrganizationalUnitScope$OrganizationalUnits. You cannot specify both.
-
excludeSpecifiedOrganizationalUnits
public final Boolean excludeSpecifiedOrganizationalUnits()
A boolean value that excludes the OUs in
OrganizationalUnitScope$OrganizationalUnitsfrom the administrator's scope. If true, the Firewall Manager administrator can apply policies to all OUs in the organization except for the OUs listed inOrganizationalUnitScope$OrganizationalUnits. You can either specify a list of OUs to exclude byOrganizationalUnitScope$OrganizationalUnits, or you can enable management of all OUs byOrganizationalUnitScope$AllOrganizationalUnitsEnabled. You cannot specify both.- Returns:
- A boolean value that excludes the OUs in
OrganizationalUnitScope$OrganizationalUnitsfrom the administrator's scope. If true, the Firewall Manager administrator can apply policies to all OUs in the organization except for the OUs listed inOrganizationalUnitScope$OrganizationalUnits. You can either specify a list of OUs to exclude byOrganizationalUnitScope$OrganizationalUnits, or you can enable management of all OUs byOrganizationalUnitScope$AllOrganizationalUnitsEnabled. You cannot specify both.
-
toBuilder
public OrganizationalUnitScope.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<OrganizationalUnitScope.Builder,OrganizationalUnitScope>
-
builder
public static OrganizationalUnitScope.Builder builder()
-
serializableBuilderClass
public static Class<? extends OrganizationalUnitScope.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.
-
-