@Generated(value="software.amazon.awssdk:codegen") public final class GeneralName extends Object implements SdkPojo, Serializable, ToCopyableBuilder<GeneralName.Builder,GeneralName>
Describes an ASN.1 X.400 GeneralName
as defined in RFC
5280. Only one of the following naming options should be provided. Providing more than one option results in an
InvalidArgsException
error.
Modifier and Type | Class and Description |
---|---|
static interface |
GeneralName.Builder |
Modifier and Type | Method and Description |
---|---|
static GeneralName.Builder |
builder() |
ASN1Subject |
directoryName()
Returns the value of the DirectoryName property for this object.
|
String |
dnsName()
Represents
GeneralName as a DNS name. |
EdiPartyName |
ediPartyName()
Represents
GeneralName as an EdiPartyName object. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
ipAddress()
Represents
GeneralName as an IPv4 or IPv6 address. |
OtherName |
otherName()
Represents
GeneralName using an OtherName object. |
String |
registeredId()
Represents
GeneralName as an object identifier (OID). |
String |
rfc822Name()
Represents
GeneralName as an RFC 822 email address. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends GeneralName.Builder> |
serializableBuilderClass() |
GeneralName.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
String |
uniformResourceIdentifier()
Represents
GeneralName as a URI. |
copy
public final OtherName otherName()
Represents GeneralName
using an OtherName
object.
GeneralName
using an OtherName
object.public final String rfc822Name()
Represents GeneralName
as an RFC 822 email address.
GeneralName
as an RFC 822 email
address.public final String dnsName()
Represents GeneralName
as a DNS name.
GeneralName
as a DNS name.public final ASN1Subject directoryName()
public final EdiPartyName ediPartyName()
Represents GeneralName
as an EdiPartyName
object.
GeneralName
as an EdiPartyName
object.public final String uniformResourceIdentifier()
Represents GeneralName
as a URI.
GeneralName
as a URI.public final String ipAddress()
Represents GeneralName
as an IPv4 or IPv6 address.
GeneralName
as an IPv4 or IPv6 address.public final String registeredId()
Represents GeneralName
as an object identifier (OID).
GeneralName
as an object identifier (OID).public GeneralName.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GeneralName.Builder,GeneralName>
public static GeneralName.Builder builder()
public static Class<? extends GeneralName.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()