@Generated(value="software.amazon.awssdk:codegen") public final class AccessPolicySummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AccessPolicySummary.Builder,AccessPolicySummary>
Contains an access policy that defines an identity's access to an AWS IoT SiteWise Monitor resource.
Modifier and Type | Class and Description |
---|---|
static interface |
AccessPolicySummary.Builder |
Modifier and Type | Method and Description |
---|---|
static AccessPolicySummary.Builder |
builder() |
Instant |
creationDate()
The date the access policy was created, in Unix epoch time.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The ID of the access policy.
|
Identity |
identity()
The identity (an AWS SSO user, an AWS SSO group, or an IAM user).
|
Instant |
lastUpdateDate()
The date the access policy was last updated, in Unix epoch time.
|
Permission |
permission()
The permissions for the access policy.
|
String |
permissionAsString()
The permissions for the access policy.
|
Resource |
resource()
The AWS IoT SiteWise Monitor resource (a portal or project).
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AccessPolicySummary.Builder> |
serializableBuilderClass() |
AccessPolicySummary.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final String id()
The ID of the access policy.
public final Identity identity()
The identity (an AWS SSO user, an AWS SSO group, or an IAM user).
public final Resource resource()
The AWS IoT SiteWise Monitor resource (a portal or project).
public final Permission permission()
The permissions for the access policy. Note that a project ADMINISTRATOR
is also known as a project
owner.
If the service returns an enum value that is not available in the current SDK version, permission
will
return Permission.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
permissionAsString()
.
ADMINISTRATOR
is also known as a
project owner.Permission
public final String permissionAsString()
The permissions for the access policy. Note that a project ADMINISTRATOR
is also known as a project
owner.
If the service returns an enum value that is not available in the current SDK version, permission
will
return Permission.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
permissionAsString()
.
ADMINISTRATOR
is also known as a
project owner.Permission
public final Instant creationDate()
The date the access policy was created, in Unix epoch time.
public final Instant lastUpdateDate()
The date the access policy was last updated, in Unix epoch time.
public AccessPolicySummary.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<AccessPolicySummary.Builder,AccessPolicySummary>
public static AccessPolicySummary.Builder builder()
public static Class<? extends AccessPolicySummary.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.