Class PartnershipSummary
- java.lang.Object
-
- software.amazon.awssdk.services.b2bi.model.PartnershipSummary
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PartnershipSummary.Builder,PartnershipSummary>
@Generated("software.amazon.awssdk:codegen") public final class PartnershipSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PartnershipSummary.Builder,PartnershipSummary>
A structure that contains the details for a partnership. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePartnershipSummary.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PartnershipSummary.Builderbuilder()List<String>capabilities()Returns one or more capabilities associated with this partnership.InstantcreatedAt()Returns a timestamp for creation date and time of the partnership.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasCapabilities()For responses, this returns true if the service returned a value for the Capabilities property.inthashCode()InstantmodifiedAt()Returns a timestamp that identifies the most recent date and time that the partnership was modified.Stringname()Returns the name of the partnership.StringpartnershipId()Returns the unique, system-generated identifier for a partnership.StringprofileId()Returns the unique, system-generated identifier for the profile connected to this partnership.List<SdkField<?>>sdkFields()static Class<? extends PartnershipSummary.Builder>serializableBuilderClass()PartnershipSummary.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringtradingPartnerId()Returns the unique, system-generated identifier for a trading partner.-
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
-
profileId
public final String profileId()
Returns the unique, system-generated identifier for the profile connected to this partnership.
- Returns:
- Returns the unique, system-generated identifier for the profile connected to this partnership.
-
partnershipId
public final String partnershipId()
Returns the unique, system-generated identifier for a partnership.
- Returns:
- Returns the unique, system-generated identifier for a partnership.
-
name
public final String name()
Returns the name of the partnership.
- Returns:
- Returns the name of the partnership.
-
hasCapabilities
public final boolean hasCapabilities()
For responses, this returns true if the service returned a value for the Capabilities property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
capabilities
public final List<String> capabilities()
Returns one or more capabilities associated with this partnership.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasCapabilities()method.- Returns:
- Returns one or more capabilities associated with this partnership.
-
tradingPartnerId
public final String tradingPartnerId()
Returns the unique, system-generated identifier for a trading partner.
- Returns:
- Returns the unique, system-generated identifier for a trading partner.
-
createdAt
public final Instant createdAt()
Returns a timestamp for creation date and time of the partnership.
- Returns:
- Returns a timestamp for creation date and time of the partnership.
-
modifiedAt
public final Instant modifiedAt()
Returns a timestamp that identifies the most recent date and time that the partnership was modified.
- Returns:
- Returns a timestamp that identifies the most recent date and time that the partnership was modified.
-
toBuilder
public PartnershipSummary.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PartnershipSummary.Builder,PartnershipSummary>
-
builder
public static PartnershipSummary.Builder builder()
-
serializableBuilderClass
public static Class<? extends PartnershipSummary.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.
-
-