public class GetAccountResult extends Object implements Serializable, Cloneable
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.
| Constructor and Description |
|---|
GetAccountResult() |
| Modifier and Type | Method and Description |
|---|---|
GetAccountResult |
clone() |
boolean |
equals(Object obj) |
String |
getApiKeyVersion()
The version of the API keys used for the account.
|
String |
getCloudwatchRoleArn()
The ARN of an Amazon CloudWatch role for the current Account.
|
List<String> |
getFeatures()
A list of features supported for the account.
|
ThrottleSettings |
getThrottleSettings()
Specifies the API request limits configured for the current
Account.
|
int |
hashCode() |
void |
setApiKeyVersion(String apiKeyVersion)
The version of the API keys used for the account.
|
void |
setCloudwatchRoleArn(String cloudwatchRoleArn)
The ARN of an Amazon CloudWatch role for the current Account.
|
void |
setFeatures(Collection<String> features)
A list of features supported for the account.
|
void |
setThrottleSettings(ThrottleSettings throttleSettings)
Specifies the API request limits configured for the current
Account.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetAccountResult |
withApiKeyVersion(String apiKeyVersion)
The version of the API keys used for the account.
|
GetAccountResult |
withCloudwatchRoleArn(String cloudwatchRoleArn)
The ARN of an Amazon CloudWatch role for the current Account.
|
GetAccountResult |
withFeatures(Collection<String> features)
A list of features supported for the account.
|
GetAccountResult |
withFeatures(String... features)
A list of features supported for the account.
|
GetAccountResult |
withThrottleSettings(ThrottleSettings throttleSettings)
Specifies the API request limits configured for the current
Account.
|
public void setCloudwatchRoleArn(String cloudwatchRoleArn)
The ARN of an Amazon CloudWatch role for the current Account.
cloudwatchRoleArn - The ARN of an Amazon CloudWatch role for the current
Account.public String getCloudwatchRoleArn()
The ARN of an Amazon CloudWatch role for the current Account.
public GetAccountResult withCloudwatchRoleArn(String cloudwatchRoleArn)
The ARN of an Amazon CloudWatch role for the current Account.
cloudwatchRoleArn - The ARN of an Amazon CloudWatch role for the current
Account.public void setThrottleSettings(ThrottleSettings throttleSettings)
Specifies the API request limits configured for the current Account.
throttleSettings - Specifies the API request limits configured for the current
Account.public ThrottleSettings getThrottleSettings()
Specifies the API request limits configured for the current Account.
public GetAccountResult withThrottleSettings(ThrottleSettings throttleSettings)
Specifies the API request limits configured for the current Account.
throttleSettings - Specifies the API request limits configured for the current
Account.public List<String> getFeatures()
A list of features supported for the account. When usage plans are
enabled, the features list will include an entry of
"UsagePlans".
"UsagePlans".public void setFeatures(Collection<String> features)
A list of features supported for the account. When usage plans are
enabled, the features list will include an entry of
"UsagePlans".
features - A list of features supported for the account. When usage plans are
enabled, the features list will include an entry of
"UsagePlans".public GetAccountResult withFeatures(String... features)
A list of features supported for the account. When usage plans are
enabled, the features list will include an entry of
"UsagePlans".
NOTE: This method appends the values to the existing list (if
any). Use setFeatures(java.util.Collection) or
withFeatures(java.util.Collection) if you want to override the
existing values.
features - A list of features supported for the account. When usage plans are
enabled, the features list will include an entry of
"UsagePlans".public GetAccountResult withFeatures(Collection<String> features)
A list of features supported for the account. When usage plans are
enabled, the features list will include an entry of
"UsagePlans".
features - A list of features supported for the account. When usage plans are
enabled, the features list will include an entry of
"UsagePlans".public void setApiKeyVersion(String apiKeyVersion)
The version of the API keys used for the account.
apiKeyVersion - The version of the API keys used for the account.public String getApiKeyVersion()
The version of the API keys used for the account.
public GetAccountResult withApiKeyVersion(String apiKeyVersion)
The version of the API keys used for the account.
apiKeyVersion - The version of the API keys used for the account.public String toString()
toString in class ObjectObject.toString()public GetAccountResult clone()
Copyright © 2016. All rights reserved.