@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DocumentationPartLocation extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the target API entity to which the documentation applies.
Constructor and Description |
---|
DocumentationPartLocation() |
Modifier and Type | Method and Description |
---|---|
DocumentationPartLocation |
clone() |
boolean |
equals(Object obj) |
String |
getMethod()
The HTTP verb of a method.
|
String |
getName()
The name of the targeted API entity.
|
String |
getPath()
The URL path of the target.
|
String |
getStatusCode()
The HTTP status code of a response.
|
String |
getType()
The type of API entity to which the documentation content applies.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMethod(String method)
The HTTP verb of a method.
|
void |
setName(String name)
The name of the targeted API entity.
|
void |
setPath(String path)
The URL path of the target.
|
void |
setStatusCode(String statusCode)
The HTTP status code of a response.
|
void |
setType(DocumentationPartType type)
The type of API entity to which the documentation content applies.
|
void |
setType(String type)
The type of API entity to which the documentation content applies.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
DocumentationPartLocation |
withMethod(String method)
The HTTP verb of a method.
|
DocumentationPartLocation |
withName(String name)
The name of the targeted API entity.
|
DocumentationPartLocation |
withPath(String path)
The URL path of the target.
|
DocumentationPartLocation |
withStatusCode(String statusCode)
The HTTP status code of a response.
|
DocumentationPartLocation |
withType(DocumentationPartType type)
The type of API entity to which the documentation content applies.
|
DocumentationPartLocation |
withType(String type)
The type of API entity to which the documentation content applies.
|
public void setType(String type)
The type of API entity to which the documentation content applies. It is a valid and required field for API
entity types of API
, AUTHORIZER
, MODEL
, RESOURCE
,
METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
, REQUEST_HEADER
,
REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and RESPONSE_BODY
.
Content inheritance does not apply to any entity of the API
, AUTHORIZER
,
METHOD
, MODEL
, REQUEST_BODY
, or RESOURCE
type.
type
- The type of API entity to which the documentation content applies. It is a valid and required field for
API entity types of API
, AUTHORIZER
, MODEL
, RESOURCE
,
METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
,
REQUEST_HEADER
, REQUEST_BODY
, RESPONSE
,
RESPONSE_HEADER
, and RESPONSE_BODY
. Content inheritance does not apply to any
entity of the API
, AUTHORIZER
, METHOD
, MODEL
,
REQUEST_BODY
, or RESOURCE
type.DocumentationPartType
public String getType()
The type of API entity to which the documentation content applies. It is a valid and required field for API
entity types of API
, AUTHORIZER
, MODEL
, RESOURCE
,
METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
, REQUEST_HEADER
,
REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and RESPONSE_BODY
.
Content inheritance does not apply to any entity of the API
, AUTHORIZER
,
METHOD
, MODEL
, REQUEST_BODY
, or RESOURCE
type.
API
, AUTHORIZER
, MODEL
, RESOURCE
,
METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
,
REQUEST_HEADER
, REQUEST_BODY
, RESPONSE
,
RESPONSE_HEADER
, and RESPONSE_BODY
. Content inheritance does not apply to any
entity of the API
, AUTHORIZER
, METHOD
, MODEL
,
REQUEST_BODY
, or RESOURCE
type.DocumentationPartType
public DocumentationPartLocation withType(String type)
The type of API entity to which the documentation content applies. It is a valid and required field for API
entity types of API
, AUTHORIZER
, MODEL
, RESOURCE
,
METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
, REQUEST_HEADER
,
REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and RESPONSE_BODY
.
Content inheritance does not apply to any entity of the API
, AUTHORIZER
,
METHOD
, MODEL
, REQUEST_BODY
, or RESOURCE
type.
type
- The type of API entity to which the documentation content applies. It is a valid and required field for
API entity types of API
, AUTHORIZER
, MODEL
, RESOURCE
,
METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
,
REQUEST_HEADER
, REQUEST_BODY
, RESPONSE
,
RESPONSE_HEADER
, and RESPONSE_BODY
. Content inheritance does not apply to any
entity of the API
, AUTHORIZER
, METHOD
, MODEL
,
REQUEST_BODY
, or RESOURCE
type.DocumentationPartType
public void setType(DocumentationPartType type)
The type of API entity to which the documentation content applies. It is a valid and required field for API
entity types of API
, AUTHORIZER
, MODEL
, RESOURCE
,
METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
, REQUEST_HEADER
,
REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and RESPONSE_BODY
.
Content inheritance does not apply to any entity of the API
, AUTHORIZER
,
METHOD
, MODEL
, REQUEST_BODY
, or RESOURCE
type.
type
- The type of API entity to which the documentation content applies. It is a valid and required field for
API entity types of API
, AUTHORIZER
, MODEL
, RESOURCE
,
METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
,
REQUEST_HEADER
, REQUEST_BODY
, RESPONSE
,
RESPONSE_HEADER
, and RESPONSE_BODY
. Content inheritance does not apply to any
entity of the API
, AUTHORIZER
, METHOD
, MODEL
,
REQUEST_BODY
, or RESOURCE
type.DocumentationPartType
public DocumentationPartLocation withType(DocumentationPartType type)
The type of API entity to which the documentation content applies. It is a valid and required field for API
entity types of API
, AUTHORIZER
, MODEL
, RESOURCE
,
METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
, REQUEST_HEADER
,
REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and RESPONSE_BODY
.
Content inheritance does not apply to any entity of the API
, AUTHORIZER
,
METHOD
, MODEL
, REQUEST_BODY
, or RESOURCE
type.
type
- The type of API entity to which the documentation content applies. It is a valid and required field for
API entity types of API
, AUTHORIZER
, MODEL
, RESOURCE
,
METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
,
REQUEST_HEADER
, REQUEST_BODY
, RESPONSE
,
RESPONSE_HEADER
, and RESPONSE_BODY
. Content inheritance does not apply to any
entity of the API
, AUTHORIZER
, METHOD
, MODEL
,
REQUEST_BODY
, or RESOURCE
type.DocumentationPartType
public void setPath(String path)
The URL path of the target. It is a valid field for the API entity types of RESOURCE
,
METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
, REQUEST_HEADER
,
REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and RESPONSE_BODY
.
The default value is /
for the root resource. When an applicable child entity inherits the content
of another entity of the same type with more general specifications of the other location
attributes, the child entity's path
attribute must match that of the parent entity as a prefix.
path
- The URL path of the target. It is a valid field for the API entity types of RESOURCE
,
METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
,
REQUEST_HEADER
, REQUEST_BODY
, RESPONSE
,
RESPONSE_HEADER
, and RESPONSE_BODY
. The default value is /
for the
root resource. When an applicable child entity inherits the content of another entity of the same type
with more general specifications of the other location
attributes, the child entity's
path
attribute must match that of the parent entity as a prefix.public String getPath()
The URL path of the target. It is a valid field for the API entity types of RESOURCE
,
METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
, REQUEST_HEADER
,
REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and RESPONSE_BODY
.
The default value is /
for the root resource. When an applicable child entity inherits the content
of another entity of the same type with more general specifications of the other location
attributes, the child entity's path
attribute must match that of the parent entity as a prefix.
RESOURCE
,
METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
,
REQUEST_HEADER
, REQUEST_BODY
, RESPONSE
,
RESPONSE_HEADER
, and RESPONSE_BODY
. The default value is /
for the
root resource. When an applicable child entity inherits the content of another entity of the same type
with more general specifications of the other location
attributes, the child entity's
path
attribute must match that of the parent entity as a prefix.public DocumentationPartLocation withPath(String path)
The URL path of the target. It is a valid field for the API entity types of RESOURCE
,
METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
, REQUEST_HEADER
,
REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and RESPONSE_BODY
.
The default value is /
for the root resource. When an applicable child entity inherits the content
of another entity of the same type with more general specifications of the other location
attributes, the child entity's path
attribute must match that of the parent entity as a prefix.
path
- The URL path of the target. It is a valid field for the API entity types of RESOURCE
,
METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
,
REQUEST_HEADER
, REQUEST_BODY
, RESPONSE
,
RESPONSE_HEADER
, and RESPONSE_BODY
. The default value is /
for the
root resource. When an applicable child entity inherits the content of another entity of the same type
with more general specifications of the other location
attributes, the child entity's
path
attribute must match that of the parent entity as a prefix.public void setMethod(String method)
The HTTP verb of a method. It is a valid field for the API entity types of METHOD
,
PATH_PARAMETER
, QUERY_PARAMETER
, REQUEST_HEADER
, REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and RESPONSE_BODY
. The default value is
*
for any method. When an applicable child entity inherits the content of an entity of the same type
with more general specifications of the other location
attributes, the child entity's
method
attribute must match that of the parent entity exactly.
method
- The HTTP verb of a method. It is a valid field for the API entity types of METHOD
,
PATH_PARAMETER
, QUERY_PARAMETER
, REQUEST_HEADER
,
REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and
RESPONSE_BODY
. The default value is *
for any method. When an applicable child
entity inherits the content of an entity of the same type with more general specifications of the other
location
attributes, the child entity's method
attribute must match that of the
parent entity exactly.public String getMethod()
The HTTP verb of a method. It is a valid field for the API entity types of METHOD
,
PATH_PARAMETER
, QUERY_PARAMETER
, REQUEST_HEADER
, REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and RESPONSE_BODY
. The default value is
*
for any method. When an applicable child entity inherits the content of an entity of the same type
with more general specifications of the other location
attributes, the child entity's
method
attribute must match that of the parent entity exactly.
METHOD
,
PATH_PARAMETER
, QUERY_PARAMETER
, REQUEST_HEADER
,
REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and
RESPONSE_BODY
. The default value is *
for any method. When an applicable child
entity inherits the content of an entity of the same type with more general specifications of the other
location
attributes, the child entity's method
attribute must match that of the
parent entity exactly.public DocumentationPartLocation withMethod(String method)
The HTTP verb of a method. It is a valid field for the API entity types of METHOD
,
PATH_PARAMETER
, QUERY_PARAMETER
, REQUEST_HEADER
, REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and RESPONSE_BODY
. The default value is
*
for any method. When an applicable child entity inherits the content of an entity of the same type
with more general specifications of the other location
attributes, the child entity's
method
attribute must match that of the parent entity exactly.
method
- The HTTP verb of a method. It is a valid field for the API entity types of METHOD
,
PATH_PARAMETER
, QUERY_PARAMETER
, REQUEST_HEADER
,
REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and
RESPONSE_BODY
. The default value is *
for any method. When an applicable child
entity inherits the content of an entity of the same type with more general specifications of the other
location
attributes, the child entity's method
attribute must match that of the
parent entity exactly.public void setStatusCode(String statusCode)
The HTTP status code of a response. It is a valid field for the API entity types of RESPONSE
,
RESPONSE_HEADER
, and RESPONSE_BODY
. The default value is *
for any status
code. When an applicable child entity inherits the content of an entity of the same type with more general
specifications of the other location
attributes, the child entity's statusCode
attribute must match that of the parent entity exactly.
statusCode
- The HTTP status code of a response. It is a valid field for the API entity types of RESPONSE
,
RESPONSE_HEADER
, and RESPONSE_BODY
. The default value is *
for any
status code. When an applicable child entity inherits the content of an entity of the same type with more
general specifications of the other location
attributes, the child entity's
statusCode
attribute must match that of the parent entity exactly.public String getStatusCode()
The HTTP status code of a response. It is a valid field for the API entity types of RESPONSE
,
RESPONSE_HEADER
, and RESPONSE_BODY
. The default value is *
for any status
code. When an applicable child entity inherits the content of an entity of the same type with more general
specifications of the other location
attributes, the child entity's statusCode
attribute must match that of the parent entity exactly.
RESPONSE
, RESPONSE_HEADER
, and RESPONSE_BODY
. The default value is *
for
any status code. When an applicable child entity inherits the content of an entity of the same type with
more general specifications of the other location
attributes, the child entity's
statusCode
attribute must match that of the parent entity exactly.public DocumentationPartLocation withStatusCode(String statusCode)
The HTTP status code of a response. It is a valid field for the API entity types of RESPONSE
,
RESPONSE_HEADER
, and RESPONSE_BODY
. The default value is *
for any status
code. When an applicable child entity inherits the content of an entity of the same type with more general
specifications of the other location
attributes, the child entity's statusCode
attribute must match that of the parent entity exactly.
statusCode
- The HTTP status code of a response. It is a valid field for the API entity types of RESPONSE
,
RESPONSE_HEADER
, and RESPONSE_BODY
. The default value is *
for any
status code. When an applicable child entity inherits the content of an entity of the same type with more
general specifications of the other location
attributes, the child entity's
statusCode
attribute must match that of the parent entity exactly.public void setName(String name)
The name of the targeted API entity. It is a valid and required field for the API entity types of
AUTHORIZER
, MODEL
, PATH_PARAMETER
, QUERY_PARAMETER
,
REQUEST_HEADER
, REQUEST_BODY
and RESPONSE_HEADER
. It is an invalid field
for any other entity type.
name
- The name of the targeted API entity. It is a valid and required field for the API entity types of
AUTHORIZER
, MODEL
, PATH_PARAMETER
, QUERY_PARAMETER
,
REQUEST_HEADER
, REQUEST_BODY
and RESPONSE_HEADER
. It is an invalid
field for any other entity type.public String getName()
The name of the targeted API entity. It is a valid and required field for the API entity types of
AUTHORIZER
, MODEL
, PATH_PARAMETER
, QUERY_PARAMETER
,
REQUEST_HEADER
, REQUEST_BODY
and RESPONSE_HEADER
. It is an invalid field
for any other entity type.
AUTHORIZER
, MODEL
, PATH_PARAMETER
, QUERY_PARAMETER
,
REQUEST_HEADER
, REQUEST_BODY
and RESPONSE_HEADER
. It is an invalid
field for any other entity type.public DocumentationPartLocation withName(String name)
The name of the targeted API entity. It is a valid and required field for the API entity types of
AUTHORIZER
, MODEL
, PATH_PARAMETER
, QUERY_PARAMETER
,
REQUEST_HEADER
, REQUEST_BODY
and RESPONSE_HEADER
. It is an invalid field
for any other entity type.
name
- The name of the targeted API entity. It is a valid and required field for the API entity types of
AUTHORIZER
, MODEL
, PATH_PARAMETER
, QUERY_PARAMETER
,
REQUEST_HEADER
, REQUEST_BODY
and RESPONSE_HEADER
. It is an invalid
field for any other entity type.public String toString()
toString
in class Object
Object.toString()
public DocumentationPartLocation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.