ToCopyableBuilder<GetAccountResponse.Builder,GetAccountResponse>
@Generated("software.amazon.awssdk:codegen") public class GetAccountResponse extends AmazonWebServiceResult<ResponseMetadata> implements ToCopyableBuilder<GetAccountResponse.Builder,GetAccountResponse>
Represents an AWS account that is associated with Amazon API Gateway.
To view the account info, call GET
on this resource.
The following exception may be thrown when the request fails.
For detailed error code information, including the corresponding HTTP Status Codes, see API Gateway Error Codes
GET /account HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20160531T184618Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
The successful response returns a 200 OK
status code and a payload similar to the following:
{ "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/account-apigateway-{rel}.html", "name": "account", "templated": true }, "self": { "href": "/account" }, "account:update": { "href": "/account" } }, "cloudwatchRoleArn": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "throttleSettings": { "rateLimit": 500, "burstLimit": 1000 } }
In addition to making the REST API call directly, you can use the AWS CLI and an AWS SDK to access this resource.
Modifier and Type | Class | Description |
---|---|---|
static interface |
GetAccountResponse.Builder |
Modifier and Type | Method | Description |
---|---|---|
String |
apiKeyVersion() |
The version of the API keys used for the account.
|
static GetAccountResponse.Builder |
builder() |
|
String |
cloudwatchRoleArn() |
The ARN of an Amazon CloudWatch role for the current Account.
|
boolean |
equals(Object obj) |
|
List<String> |
features() |
A list of features supported for the account.
|
int |
hashCode() |
|
static Class<? extends GetAccountResponse.Builder> |
serializableBuilderClass() |
|
ThrottleSettings |
throttleSettings() |
Specifies the API request limits configured for the current Account.
|
GetAccountResponse.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
setSdkHttpMetadata, setSdkResponseMetadata
public String cloudwatchRoleArn()
The ARN of an Amazon CloudWatch role for the current Account.
public ThrottleSettings throttleSettings()
Specifies the API request limits configured for the current Account.
public List<String> features()
A list of features supported for the account. When usage plans are enabled, the features list will include an
entry of "UsagePlans"
.
"UsagePlans"
.public String apiKeyVersion()
The version of the API keys used for the account.
public GetAccountResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetAccountResponse.Builder,GetAccountResponse>
public static GetAccountResponse.Builder builder()
public static Class<? extends GetAccountResponse.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.