Class GetFederationTokenRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.sts.v20180813.models.GetFederationTokenRequest
-
public class GetFederationTokenRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description GetFederationTokenRequest()GetFederationTokenRequest(GetFederationTokenRequest 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetDurationSeconds()Get 指定临时证书的有效期,单位:秒,默认1800秒,主账号最长可设定有效期为7200秒,子账号最长可设定有效期为129600秒。StringgetName()Get 您可以自定义调用方英文名称,由字母组成。StringgetPolicy()Get 授予该临时访问凭证权限的CAM策略 注意: 1、策略语法参照[ CAM 策略语法](https://cloud.tencent.com/document/product/598/10603)。 2、策略中不能包含 principal 元素。 3、该参数需要做urlencode。voidsetDurationSeconds(Long DurationSeconds)Set 指定临时证书的有效期,单位:秒,默认1800秒,主账号最长可设定有效期为7200秒,子账号最长可设定有效期为129600秒。voidsetName(String Name)Set 您可以自定义调用方英文名称,由字母组成。voidsetPolicy(String Policy)Set 授予该临时访问凭证权限的CAM策略 注意: 1、策略语法参照[ CAM 策略语法](https://cloud.tencent.com/document/product/598/10603)。 2、策略中不能包含 principal 元素。 3、该参数需要做urlencode。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
GetFederationTokenRequest
public GetFederationTokenRequest()
-
GetFederationTokenRequest
public GetFederationTokenRequest(GetFederationTokenRequest 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.
-
-
Method Detail
-
getName
public String getName()
Get 您可以自定义调用方英文名称,由字母组成。- Returns:
- Name 您可以自定义调用方英文名称,由字母组成。
-
setName
public void setName(String Name)
Set 您可以自定义调用方英文名称,由字母组成。- Parameters:
Name- 您可以自定义调用方英文名称,由字母组成。
-
getPolicy
public String getPolicy()
Get 授予该临时访问凭证权限的CAM策略 注意: 1、策略语法参照[ CAM 策略语法](https://cloud.tencent.com/document/product/598/10603)。 2、策略中不能包含 principal 元素。 3、该参数需要做urlencode。- Returns:
- Policy 授予该临时访问凭证权限的CAM策略 注意: 1、策略语法参照[ CAM 策略语法](https://cloud.tencent.com/document/product/598/10603)。 2、策略中不能包含 principal 元素。 3、该参数需要做urlencode。
-
setPolicy
public void setPolicy(String Policy)
Set 授予该临时访问凭证权限的CAM策略 注意: 1、策略语法参照[ CAM 策略语法](https://cloud.tencent.com/document/product/598/10603)。 2、策略中不能包含 principal 元素。 3、该参数需要做urlencode。- Parameters:
Policy- 授予该临时访问凭证权限的CAM策略 注意: 1、策略语法参照[ CAM 策略语法](https://cloud.tencent.com/document/product/598/10603)。 2、策略中不能包含 principal 元素。 3、该参数需要做urlencode。
-
getDurationSeconds
public Long getDurationSeconds()
Get 指定临时证书的有效期,单位:秒,默认1800秒,主账号最长可设定有效期为7200秒,子账号最长可设定有效期为129600秒。- Returns:
- DurationSeconds 指定临时证书的有效期,单位:秒,默认1800秒,主账号最长可设定有效期为7200秒,子账号最长可设定有效期为129600秒。
-
setDurationSeconds
public void setDurationSeconds(Long DurationSeconds)
Set 指定临时证书的有效期,单位:秒,默认1800秒,主账号最长可设定有效期为7200秒,子账号最长可设定有效期为129600秒。- Parameters:
DurationSeconds- 指定临时证书的有效期,单位:秒,默认1800秒,主账号最长可设定有效期为7200秒,子账号最长可设定有效期为129600秒。
-
-