public class ModifyObjectRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ModifyObjectRequest() |
ModifyObjectRequest(ModifyObjectRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getInstanceId()
Get New instance ID: considered a successful modification if identical to an already bound instance
|
String[] |
getIpHeaders()
Get This parameter indicates a custom header and is required when IsCdn is set to 3.
|
String |
getObjectId()
Get Modifies the object identifier
|
String |
getOpType()
Get Action type.
|
Long |
getProxy()
Get Whether to enable proxy.
|
Long |
getStatus()
Get New WAF switch status, considered successful if identical to existing status
|
void |
setInstanceId(String InstanceId)
Set New instance ID: considered a successful modification if identical to an already bound instance
|
void |
setIpHeaders(String[] IpHeaders)
Set This parameter indicates a custom header and is required when IsCdn is set to 3.
|
void |
setObjectId(String ObjectId)
Set Modifies the object identifier
|
void |
setOpType(String OpType)
Set Action type.
|
void |
setProxy(Long Proxy)
Set Whether to enable proxy.
|
void |
setStatus(Long Status)
Set New WAF switch status, considered successful if identical to existing status
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ModifyObjectRequest()
public ModifyObjectRequest(ModifyObjectRequest source)
public String getObjectId()
public void setObjectId(String ObjectId)
ObjectId
- Modifies the object identifierpublic String getOpType()
public void setOpType(String OpType)
OpType
- Action type. Status: change enabling status; InstanceId: bind to an instance; Proxy: set the proxy status.public Long getStatus()
public void setStatus(Long Status)
Status
- New WAF switch status, considered successful if identical to existing statuspublic String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- New instance ID: considered a successful modification if identical to an already bound instancepublic Long getProxy()
public void setProxy(Long Proxy)
Proxy
- Whether to enable proxy. 0: do not enable; 1: use the first IP address in XFF as the client IP address; 2: use remote_addr as the client IP address; 3: obtain the client IP address from the specified header field that is given in IpHeaders. (This value is effective when OpType is set to Status or Proxy.)public String[] getIpHeaders()
public void setIpHeaders(String[] IpHeaders)
IpHeaders
- This parameter indicates a custom header and is required when IsCdn is set to 3. (The value is effective when OpType is set to Status or Proxy.)Copyright © 2025. All rights reserved.