public static final class SubscriptionsTypes.CreateSpecSubscribedLibrary.Builder
extends java.lang.Object
SubscriptionsTypes.CreateSpecSubscribedLibrary
.Constructor and Description |
---|
Builder(SubscriptionsTypes.CreateSpecSubscribedLibrary.Target target,
SubscriptionsTypes.Location location)
Constructor with parameters for the required properties of
SubscriptionsTypes.CreateSpecSubscribedLibrary . |
Modifier and Type | Method and Description |
---|---|
SubscriptionsTypes.CreateSpecSubscribedLibrary |
build() |
SubscriptionsTypes.CreateSpecSubscribedLibrary.Builder |
setNewSubscribedLibrary(SubscriptionsTypes.CreateSpecNewSubscribedLibrary newSubscribedLibrary)
Specification for creating a new subscribed library associated with the
subscription.
|
SubscriptionsTypes.CreateSpecSubscribedLibrary.Builder |
setPlacement(SubscriptionsTypes.CreateSpecPlacement placement)
Placement specification for the virtual machine template library items on the
subscribed library.
|
SubscriptionsTypes.CreateSpecSubscribedLibrary.Builder |
setSubscribedLibrary(java.lang.String subscribedLibrary)
Identifier of the existing subscribed library to associate with the
subscription.
|
SubscriptionsTypes.CreateSpecSubscribedLibrary.Builder |
setVcenter(SubscriptionsTypes.CreateSpecVcenter vcenter)
Specification for the subscribed library's vCenter Server instance.
|
public Builder(SubscriptionsTypes.CreateSpecSubscribedLibrary.Target target, SubscriptionsTypes.Location location)
SubscriptionsTypes.CreateSpecSubscribedLibrary
.public SubscriptionsTypes.CreateSpecSubscribedLibrary.Builder setNewSubscribedLibrary(SubscriptionsTypes.CreateSpecNewSubscribedLibrary newSubscribedLibrary)
getTarget()
is SubscriptionsTypes.CreateSpecSubscribedLibrary.Target.CREATE_NEW
.newSubscribedLibrary
- New value for the property.public SubscriptionsTypes.CreateSpecSubscribedLibrary.Builder setSubscribedLibrary(java.lang.String subscribedLibrary)
SubscriptionInfo.getSubscriptionUrl()
property is set
to the PublishInfo.getPublishUrl()
of the
published library can be associated with the subscription. This property was
added in vSphere API 6.7.2.
This property is optional and it is only relevant when the value of getTarget()
is SubscriptionsTypes.CreateSpecSubscribedLibrary.Target.USE_EXISTING
.subscribedLibrary
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: com.vmware.content.Library
. When
methods return a value of this class as a return value, the property will be an
identifier for the resource type: com.vmware.content.Library
.public SubscriptionsTypes.CreateSpecSubscribedLibrary.Builder setVcenter(SubscriptionsTypes.CreateSpecVcenter vcenter)
getLocation()
is SubscriptionsTypes.Location.REMOTE
.vcenter
- New value for the property.public SubscriptionsTypes.CreateSpecSubscribedLibrary.Builder setPlacement(SubscriptionsTypes.CreateSpecPlacement placement)
null
, the
system will attempt to choose a suitable placement specification for the virtual
machine template items; if a placement specification cannot be chosen, publish
of virtual machine template items will fail.placement
- New value for the property.public SubscriptionsTypes.CreateSpecSubscribedLibrary build()