Class GetProtectionStatusResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.fms.model.FmsResponse
-
- software.amazon.awssdk.services.fms.model.GetProtectionStatusResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetProtectionStatusResponse.Builder,GetProtectionStatusResponse>
@Generated("software.amazon.awssdk:codegen") public final class GetProtectionStatusResponse extends FmsResponse implements ToCopyableBuilder<GetProtectionStatusResponse.Builder,GetProtectionStatusResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetProtectionStatusResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringadminAccountId()The ID of the Firewall Manager administrator account for this policy.static GetProtectionStatusResponse.Builderbuilder()Stringdata()Details about the attack, including the following:booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringnextToken()If you have more objects than the number that you specified forMaxResultsin the request, the response includes aNextTokenvalue.List<SdkField<?>>sdkFields()static Class<? extends GetProtectionStatusResponse.Builder>serializableBuilderClass()SecurityServiceTypeserviceType()The service type that is protected by the policy.StringserviceTypeAsString()The service type that is protected by the policy.GetProtectionStatusResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.fms.model.FmsResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
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
-
adminAccountId
public final String adminAccountId()
The ID of the Firewall Manager administrator account for this policy.
- Returns:
- The ID of the Firewall Manager administrator account for this policy.
-
serviceType
public final SecurityServiceType serviceType()
The service type that is protected by the policy. Currently, this is always
SHIELD_ADVANCED.If the service returns an enum value that is not available in the current SDK version,
serviceTypewill returnSecurityServiceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromserviceTypeAsString().- Returns:
- The service type that is protected by the policy. Currently, this is always
SHIELD_ADVANCED. - See Also:
SecurityServiceType
-
serviceTypeAsString
public final String serviceTypeAsString()
The service type that is protected by the policy. Currently, this is always
SHIELD_ADVANCED.If the service returns an enum value that is not available in the current SDK version,
serviceTypewill returnSecurityServiceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromserviceTypeAsString().- Returns:
- The service type that is protected by the policy. Currently, this is always
SHIELD_ADVANCED. - See Also:
SecurityServiceType
-
data
public final String data()
Details about the attack, including the following:
-
Attack type
-
Account ID
-
ARN of the resource attacked
-
Start time of the attack
-
End time of the attack (ongoing attacks will not have an end time)
The details are in JSON format.
- Returns:
- Details about the attack, including the following:
-
Attack type
-
Account ID
-
ARN of the resource attacked
-
Start time of the attack
-
End time of the attack (ongoing attacks will not have an end time)
The details are in JSON format.
-
-
-
nextToken
public final String nextToken()
If you have more objects than the number that you specified for
MaxResultsin the request, the response includes aNextTokenvalue. To list more objects, submit anotherGetProtectionStatusrequest, and specify theNextTokenvalue from the response in theNextTokenvalue in the next request.Amazon Web Services SDKs provide auto-pagination that identify
NextTokenin a response and make subsequent request calls automatically on your behalf. However, this feature is not supported byGetProtectionStatus. You must submit subsequent requests withNextTokenusing your own processes.- Returns:
- If you have more objects than the number that you specified for
MaxResultsin the request, the response includes aNextTokenvalue. To list more objects, submit anotherGetProtectionStatusrequest, and specify theNextTokenvalue from the response in theNextTokenvalue in the next request.Amazon Web Services SDKs provide auto-pagination that identify
NextTokenin a response and make subsequent request calls automatically on your behalf. However, this feature is not supported byGetProtectionStatus. You must submit subsequent requests withNextTokenusing your own processes.
-
toBuilder
public GetProtectionStatusResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetProtectionStatusResponse.Builder,GetProtectionStatusResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static GetProtectionStatusResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetProtectionStatusResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
-