@Generated(value="software.amazon.awssdk:codegen") public final class UpdateAccountResponse extends ApiGatewayResponse implements ToCopyableBuilder<UpdateAccountResponse.Builder,UpdateAccountResponse>
Represents an AWS account that is associated with 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": "https://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 and Description |
|---|---|
static interface |
UpdateAccountResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
apiKeyVersion()
The version of the API keys used for the account.
|
static UpdateAccountResponse.Builder |
builder() |
String |
cloudwatchRoleArn()
The ARN of an Amazon CloudWatch role for the current Account.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<String> |
features()
A list of features supported for the account.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasFeatures()
Returns true if the Features property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends UpdateAccountResponse.Builder> |
serializableBuilderClass() |
ThrottleSettings |
throttleSettings()
Specifies the API request limits configured for the current Account.
|
UpdateAccountResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String cloudwatchRoleArn()
The ARN of an Amazon CloudWatch role for the current Account.
public final ThrottleSettings throttleSettings()
Specifies the API request limits configured for the current Account.
public final boolean hasFeatures()
public final 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".
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasFeatures() to see if a value was sent in this field.
"UsagePlans".public final String apiKeyVersion()
The version of the API keys used for the account.
public UpdateAccountResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UpdateAccountResponse.Builder,UpdateAccountResponse>toBuilder in class AwsResponsepublic static UpdateAccountResponse.Builder builder()
public static Class<? extends UpdateAccountResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2021. All rights reserved.