Class Target
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.model.Target
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Target.Builder,Target>
@Generated("software.amazon.awssdk:codegen") public final class Target extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Target.Builder,Target>
The target account, organizational unit, or the root that is associated with an Security Hub configuration. The configuration can be a configuration policy or self-managed behavior.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTarget.Builderstatic classTarget.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccountId()The Amazon Web Services account ID of the target account.static Target.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static TargetfromAccountId(String accountId)Create an instance of this class withaccountId()initialized to the given value.static TargetfromOrganizationalUnitId(String organizationalUnitId)Create an instance of this class withorganizationalUnitId()initialized to the given value.static TargetfromRootId(String rootId)Create an instance of this class withrootId()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringorganizationalUnitId()The organizational unit ID of the target organizational unit.StringrootId()The ID of the organization root.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Target.Builder>serializableBuilderClass()Target.BuildertoBuilder()StringtoString()Returns a string representation of this object.Target.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
-
accountId
public final String accountId()
The Amazon Web Services account ID of the target account.
- Returns:
- The Amazon Web Services account ID of the target account.
-
organizationalUnitId
public final String organizationalUnitId()
The organizational unit ID of the target organizational unit.
- Returns:
- The organizational unit ID of the target organizational unit.
-
rootId
public final String rootId()
The ID of the organization root.
- Returns:
- The ID of the organization root.
-
toBuilder
public Target.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Target.Builder,Target>
-
builder
public static Target.Builder builder()
-
serializableBuilderClass
public static Class<? extends Target.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.
-
fromAccountId
public static Target fromAccountId(String accountId)
Create an instance of this class withaccountId()initialized to the given value.The Amazon Web Services account ID of the target account.
- Parameters:
accountId- The Amazon Web Services account ID of the target account.
-
fromOrganizationalUnitId
public static Target fromOrganizationalUnitId(String organizationalUnitId)
Create an instance of this class withorganizationalUnitId()initialized to the given value.The organizational unit ID of the target organizational unit.
- Parameters:
organizationalUnitId- The organizational unit ID of the target organizational unit.
-
fromRootId
public static Target fromRootId(String rootId)
Create an instance of this class withrootId()initialized to the given value.The ID of the organization root.
- Parameters:
rootId- The ID of the organization root.
-
type
public Target.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 beTarget.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 beTarget.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-