Class AwsAccountRequest

java.lang.Object
co.cloudcraft.model.CloudcraftObject
co.cloudcraft.model.AwsAccountRequest

public class AwsAccountRequest extends CloudcraftObject
Request object representing the inputs required to register an AWS Account with Cloudcraft.
  • Constructor Details

    • AwsAccountRequest

      public AwsAccountRequest(AwsAccount account)
    • AwsAccountRequest

      public AwsAccountRequest(@NonNull @NonNull String name, @NonNull @NonNull String roleArn, String accountValidationRegion, String[] readAccess, String[] writeAccess)
    • AwsAccountRequest

      public AwsAccountRequest(@NonNull @NonNull String name, @NonNull @NonNull String roleArn)
  • Method Details

    • validate

      public void validate() throws InvalidRequestException
      This method does a sanity check of the requests object and ensure the inputs are present and valid.
      Throws:
      InvalidRequestException
    • getName

      @NonNull public @NonNull String getName()
      Human readable name for the AWS account
    • getRoleArn

      @NonNull public @NonNull String 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

      public String 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

      public String[] getReadAccess()
      List of teams or customers with read access.
    • getWriteAccess

      public String[] getWriteAccess()
      List of teams or customers with write access.
    • setName

      public void setName(@NonNull @NonNull String name)
      Human readable name for the AWS account
    • setRoleArn

      public void setRoleArn(@NonNull @NonNull String roleArn)
      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

      public void setAccountValidationRegion(String accountValidationRegion)
      Represents the AWS region to be used for account validation. By default, the account will be validated in the "us-east-1" region.
    • setReadAccess

      public void setReadAccess(String[] readAccess)
      List of teams or customers with read access.
    • setWriteAccess

      public void setWriteAccess(String[] writeAccess)
      List of teams or customers with write access.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object