@Generated(value="software.amazon.awssdk:codegen") public final class IpCountry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<IpCountry.Builder,IpCountry>
Provides information about the country that an IP address originated from.
| Modifier and Type | Class and Description |
|---|---|
static interface |
IpCountry.Builder |
| Modifier and Type | Method and Description |
|---|---|
static IpCountry.Builder |
builder() |
String |
code()
The two-character code, in ISO 3166-1 alpha-2 format, for the country that the IP address originated from.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the country that the IP address originated from.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends IpCountry.Builder> |
serializableBuilderClass() |
IpCountry.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String code()
The two-character code, in ISO 3166-1 alpha-2 format, for the country that the IP address originated from. For example, US for the United States.
public final String name()
The name of the country that the IP address originated from.
public IpCountry.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<IpCountry.Builder,IpCountry>public static IpCountry.Builder builder()
public static Class<? extends IpCountry.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.