Package co.cloudcraft.model
Class AwsAccountRequest
java.lang.Object
co.cloudcraft.model.CloudcraftObject
co.cloudcraft.model.AwsAccountRequest
Request object representing the inputs required to register an AWS Account with Cloudcraft.
-
Field Summary
Fields inherited from class co.cloudcraft.model.CloudcraftObject
eTag, GSON, PRETTY_PRINT_GSON, serialVersionUID -
Constructor Summary
ConstructorsConstructorDescriptionAwsAccountRequest(@NonNull String name, @NonNull String roleArn) AwsAccountRequest(@NonNull String name, @NonNull String roleArn, String accountValidationRegion, String[] readAccess, String[] writeAccess) AwsAccountRequest(AwsAccount account) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanRepresents the AWS region to be used for account validation.@NonNull StringgetName()Human readable name for the AWS accountString[]List of teams or customers with read access.@NonNull StringThe ARN of the read-only IAM Role created in your AWS account for Cloudcraft.String[]List of teams or customers with write access.inthashCode()voidsetAccountValidationRegion(String accountValidationRegion) Represents the AWS region to be used for account validation.voidHuman readable name for the AWS accountvoidsetReadAccess(String[] readAccess) List of teams or customers with read access.voidsetRoleArn(@NonNull String roleArn) The ARN of the read-only IAM Role created in your AWS account for Cloudcraft.voidsetWriteAccess(String[] writeAccess) List of teams or customers with write access.toString()voidvalidate()This method does a sanity check of the requests object and ensure the inputs are present and valid.Methods inherited from class co.cloudcraft.model.CloudcraftObject
convertDateStringToInstant, getETag, prettyPrint, setETag, toJson
-
Constructor Details
-
AwsAccountRequest
-
AwsAccountRequest
-
AwsAccountRequest
-
-
Method Details
-
validate
This method does a sanity check of the requests object and ensure the inputs are present and valid.- Throws:
InvalidRequestException
-
getName
Human readable name for the AWS account -
getRoleArn
The ARN of the read-only IAM Role created in your AWS account for Cloudcraft. For instructions on creating the role, please see the "AWS Accounts" dialog in the web application. -
getAccountValidationRegion
Represents the AWS region to be used for account validation. By default, the account will be validated in the "us-east-1" region. -
getReadAccess
List of teams or customers with read access. -
getWriteAccess
List of teams or customers with write access. -
setName
Human readable name for the AWS account -
setRoleArn
The ARN of the read-only IAM Role created in your AWS account for Cloudcraft. For instructions on creating the role, please see the "AWS Accounts" dialog in the web application. -
setAccountValidationRegion
Represents the AWS region to be used for account validation. By default, the account will be validated in the "us-east-1" region. -
setReadAccess
List of teams or customers with read access. -
setWriteAccess
List of teams or customers with write access. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-