Interface Subscription.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Subscription.Builder,,Subscription> SdkBuilder<Subscription.Builder,,Subscription> SdkPojo
- Enclosing class:
Subscription
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the app that the subscription belongs to.billingAnchorDate(Instant billingAnchorDate) The fixed reference instant the recurring billing cycle is measured from.billingCycle(String billingCycle) The billing cycle of the subscription, such as monthly or annual.billingCycle(BillingCycle billingCycle) The billing cycle of the subscription, such as monthly or annual.effectiveAt(Instant effectiveAt) The time when the subscription took effect.The ID of the plan that the user is subscribed to.The opaque end-user identifier that the subscription belongs to.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
appId
The ID of the app that the subscription belongs to.
- Parameters:
appId- The ID of the app that the subscription belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userId
The opaque end-user identifier that the subscription belongs to.
- Parameters:
userId- The opaque end-user identifier that the subscription belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
planId
The ID of the plan that the user is subscribed to.
- Parameters:
planId- The ID of the plan that the user is subscribed to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
effectiveAt
The time when the subscription took effect.
- Parameters:
effectiveAt- The time when the subscription took effect.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
billingAnchorDate
The fixed reference instant the recurring billing cycle is measured from. It is set when the subscription first takes effect and stays fixed as periods roll forward, so it is normally an older date than the current period — not the start of the current period. For the end of the current cycle, use
currentPeriodEndsAton GetSubscriptionResponse (derived from this anchor and the billing cycle) rather than this value.- Parameters:
billingAnchorDate- The fixed reference instant the recurring billing cycle is measured from. It is set when the subscription first takes effect and stays fixed as periods roll forward, so it is normally an older date than the current period — not the start of the current period. For the end of the current cycle, usecurrentPeriodEndsAton GetSubscriptionResponse (derived from this anchor and the billing cycle) rather than this value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
billingCycle
The billing cycle of the subscription, such as monthly or annual.
- Parameters:
billingCycle- The billing cycle of the subscription, such as monthly or annual.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
billingCycle
The billing cycle of the subscription, such as monthly or annual.
- Parameters:
billingCycle- The billing cycle of the subscription, such as monthly or annual.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-