Class ResourceSnapshotPayload
- java.lang.Object
-
- software.amazon.awssdk.services.partnercentralselling.model.ResourceSnapshotPayload
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResourceSnapshotPayload.Builder,ResourceSnapshotPayload>
@Generated("software.amazon.awssdk:codegen") public final class ResourceSnapshotPayload extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceSnapshotPayload.Builder,ResourceSnapshotPayload>
Represents the payload of a resource snapshot. This structure is designed to accommodate different types of resource snapshots, currently supporting opportunity summaries.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResourceSnapshotPayload.Builderstatic classResourceSnapshotPayload.Type
-
Method Summary
-
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
-
opportunitySummary
public final OpportunitySummaryView opportunitySummary()
An object that contains an
opportunity's subset of fields.- Returns:
- An object that contains an
opportunity's subset of fields.
-
toBuilder
public ResourceSnapshotPayload.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResourceSnapshotPayload.Builder,ResourceSnapshotPayload>
-
builder
public static ResourceSnapshotPayload.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResourceSnapshotPayload.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.
-
fromOpportunitySummary
public static ResourceSnapshotPayload fromOpportunitySummary(OpportunitySummaryView opportunitySummary)
Create an instance of this class withopportunitySummary()initialized to the given value.An object that contains an
opportunity's subset of fields.- Parameters:
opportunitySummary- An object that contains anopportunity's subset of fields.
-
fromOpportunitySummary
public static ResourceSnapshotPayload fromOpportunitySummary(Consumer<OpportunitySummaryView.Builder> opportunitySummary)
Create an instance of this class withopportunitySummary()initialized to the given value.An object that contains an
opportunity's subset of fields.- Parameters:
opportunitySummary- An object that contains anopportunity's subset of fields.
-
type
public ResourceSnapshotPayload.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 beResourceSnapshotPayload.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 beResourceSnapshotPayload.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
-
-