Package org.jclouds.sts.options
Class AssumeRoleOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.sts.options.AssumeRoleOptions
-
- All Implemented Interfaces:
Cloneable
,HttpRequestOptions
public class AssumeRoleOptions extends BaseHttpRequestOptions implements Cloneable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AssumeRoleOptions.Builder
-
Field Summary
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description AssumeRoleOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.Multimap<String,String>
buildFormParameters()
Builds form parameters representing options.AssumeRoleOptions
clone()
AssumeRoleOptions
durationSeconds(long durationSeconds)
The duration, in seconds, that the credentials should remain valid.boolean
equals(Object obj)
AssumeRoleOptions
externalId(String externalId)
A unique identifier that is generated by a third party for each of their customers.int
hashCode()
AssumeRoleOptions
policy(String policy)
A supplemental policy that can be associated with the temporary security credentials.String
toString()
-
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, replaceHeader
-
-
-
-
Method Detail
-
externalId
public AssumeRoleOptions externalId(String externalId)
A unique identifier that is generated by a third party for each of their customers.
-
durationSeconds
public AssumeRoleOptions durationSeconds(long durationSeconds)
The duration, in seconds, that the credentials should remain valid. 12 hours is default. 15 minutes is current minimum.
-
policy
public AssumeRoleOptions policy(String policy)
A supplemental policy that can be associated with the temporary security credentials.
-
buildFormParameters
public com.google.common.collect.Multimap<String,String> buildFormParameters()
Description copied from interface:HttpRequestOptions
Builds form parameters representing options.- Specified by:
buildFormParameters
in interfaceHttpRequestOptions
- Overrides:
buildFormParameters
in classBaseHttpRequestOptions
- Returns:
- map that may contain query parameters.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBaseHttpRequestOptions
-
clone
public AssumeRoleOptions clone()
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classBaseHttpRequestOptions
-
toString
public String toString()
- Overrides:
toString
in classBaseHttpRequestOptions
-
-