|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.AbstractBceClient
com.baidubce.services.eip.EipClient
public class EipClient
Provides the client for accessing the Elastic Ip Service (EIP).
Field Summary |
---|
Fields inherited from class com.baidubce.AbstractBceClient |
---|
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX |
Constructor Summary | |
---|---|
EipClient()
|
|
EipClient(BceClientConfiguration clientConfiguration)
Constructs a new InstanceClient to invoke service methods on eip instance. |
Method Summary | |
---|---|
void |
bindEip(BindEipRequest request)
bind the eip to a specified instanceId and instanceType(BCC|BLB). |
void |
bindEip(String eip,
String instanceId,
String instanceType)
bind the eip to a specified instanceId and instanceType(BCC|BLB). |
CreateEipResponse |
createEip(CreateEipRequest request)
Create an eip with the specified options. |
CreateEipResponse |
createEip(int bandwidthInMbps)
Create an eip with the specified options. |
protected void |
fillPayload(InternalRequest internalRequest,
AbstractBceRequest bceRequest)
the method to fill the internalRequest's content field with bceRequest only support HttpMethodName.POST or HttpMethodName.PUT |
ListEipsResponse |
listEips()
get a list of eips owned by the authenticated user and default conditions |
ListEipsResponse |
listEips(ListEipsRequest request)
get a list of eips owned by the authenticated user and specified conditions we can Also get a single eip function through this interface by eip condition if query by the instanceId or instanceType condition, must provides both of them at the same time |
void |
purchaseReservedEip(PurchaseReservedEipRequest request)
PurchaseReserved eip with fixed duration only Prepaid eip can do this This is an asynchronous interface |
void |
purchaseReservedEip(String eip,
int reservationLength,
String reservationTimeUnit)
PurchaseReserved eip with fixed duration only Prepaid eip can do this |
void |
purchaseReservedEipInMonth(String eip,
int reservationLength)
PurchaseReserved eip with specified duration in month |
void |
releaseEip(ReleaseEipRequest request)
release the eip(delete operation) Only the Postpaid instance or Prepaid which is expired can be released. |
void |
releaseEip(String eip)
release the eip(delete operation) |
void |
resizeEip(ResizeEipRequest request)
Resizing eip The Prepaid eip can not be downgrade. |
void |
resizeEip(String eip,
int newBandwidthInMbps)
Resizing eip |
void |
unbindEip(String eip)
unbind the eip from a specified instance |
void |
unbindEip(UnbindEipRequest request)
unbind the eip from a specified instance |
Methods inherited from class com.baidubce.AbstractBceClient |
---|
getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EipClient()
public EipClient(BceClientConfiguration clientConfiguration)
clientConfiguration
- The BCE client configuration options.Method Detail |
---|
public CreateEipResponse createEip(int bandwidthInMbps)
bandwidthInMbps
- specify the bandwidth in Mbps
public CreateEipResponse createEip(CreateEipRequest request)
request
- The request containing all options for creating an eip.
public void resizeEip(String eip, int newBandwidthInMbps)
eip
- eip address to be resizednewBandwidthInMbps
- specify new bandwidth in Mbps for eippublic void resizeEip(ResizeEipRequest request)
request
- eip & newBandwidthInMbps must be providedpublic void purchaseReservedEipInMonth(String eip, int reservationLength)
eip
- reservationLength
- public void purchaseReservedEip(String eip, int reservationLength, String reservationTimeUnit)
eip
- eip address to be renewedreservationLength
- purchase lengthreservationTimeUnit
- time unit of purchasing, optional parameter default value 'Month'public void purchaseReservedEip(PurchaseReservedEipRequest request)
request
- The request containing all options for renewing eip with fixed duration.public void bindEip(String eip, String instanceId, String instanceType)
eip
- eip address to be boundinstanceId
- id of instance to be boundinstanceType
- type of instance to be boundpublic void bindEip(BindEipRequest request)
request
- The request containing all options for binding eippublic void unbindEip(String eip)
eip
- eip address to be unboundpublic void unbindEip(UnbindEipRequest request)
request
- The request containing all options for unbinding eippublic void releaseEip(String eip)
eip
- eip address to be releasedpublic void releaseEip(ReleaseEipRequest request)
request
- The request containing all options for releasing eippublic ListEipsResponse listEips()
public ListEipsResponse listEips(ListEipsRequest request)
request
- The request containing all options for query
protected void fillPayload(InternalRequest internalRequest, AbstractBceRequest bceRequest)
internalRequest
- A request object, populated with endpoint, resource path, ready for callers to populate
any additional headers or parameters, and execute.bceRequest
- The original request, as created by the user.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |