@Generated(value="software.amazon.awssdk:codegen") public final class SubscribedPrincipal extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SubscribedPrincipal.Builder,SubscribedPrincipal>
The principal that has the subscription grant for the asset.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SubscribedPrincipal.Builder |
static class |
SubscribedPrincipal.Type |
| Modifier and Type | Method and Description |
|---|---|
static SubscribedPrincipal.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static SubscribedPrincipal |
fromProject(Consumer<SubscribedProject.Builder> project)
Create an instance of this class with
project() initialized to the given value. |
static SubscribedPrincipal |
fromProject(SubscribedProject project)
Create an instance of this class with
project() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
SubscribedProject |
project()
The project that has the subscription grant.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SubscribedPrincipal.Builder> |
serializableBuilderClass() |
SubscribedPrincipal.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
SubscribedPrincipal.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final SubscribedProject project()
The project that has the subscription grant.
public SubscribedPrincipal.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SubscribedPrincipal.Builder,SubscribedPrincipal>public static SubscribedPrincipal.Builder builder()
public static Class<? extends SubscribedPrincipal.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static SubscribedPrincipal fromProject(SubscribedProject project)
project() initialized to the given value.
The project that has the subscription grant.
project - The project that has the subscription grant.public static SubscribedPrincipal fromProject(Consumer<SubscribedProject.Builder> project)
project() initialized to the given value.
The project that has the subscription grant.
project - The project that has the subscription grant.public SubscribedPrincipal.Type type()
SubscribedPrincipal.Type.UNKNOWN_TO_SDK_VERSION if 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 be SubscribedPrincipal.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.