Class IAMRoleCredentialSupplierBuilder
- java.lang.Object
-
- com.logicaldoc.enterprise.storer.s3.IAMRoleCredentialSupplierBuilder
-
public class IAMRoleCredentialSupplierBuilder extends Object
Build SessionCredentials for JClouds Compute Service API with IAM Role
-
-
Constructor Summary
Constructors Constructor Description IAMRoleCredentialSupplierBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jclouds.aws.domain.SessionCredentialsbuild()org.jclouds.aws.domain.SessionCredentialsgetCredentials()StringgetRoleName()<E> EisNotNull(E argument, String argName)Tests if a string is not nullIAMRoleCredentialSupplierBuilderwithRoleName(String roleName)
-
-
-
Method Detail
-
withRoleName
public IAMRoleCredentialSupplierBuilder withRoleName(String roleName)
-
isNotNull
public <E> E isNotNull(E argument, String argName)Tests if a string is not null- Type Parameters:
E- type of the argument- Parameters:
argument- the string tested to see if it is not nullargName- the string name (used in message if an error is thrown)- Returns:
- the string argument that was tested
- Throws:
IllegalArgumentException- if the string is null
-
getRoleName
public String getRoleName()
-
getCredentials
public org.jclouds.aws.domain.SessionCredentials getCredentials()
-
build
public org.jclouds.aws.domain.SessionCredentials build() throws IOException- Throws:
IOException
-
-