@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HttpAction extends Object implements Serializable, Cloneable, StructuredPojo
Send data to an HTTPS endpoint.
Constructor and Description |
---|
HttpAction() |
Modifier and Type | Method and Description |
---|---|
HttpAction |
clone() |
boolean |
equals(Object obj) |
HttpAuthorization |
getAuth()
The authentication method to use when sending data to an HTTPS endpoint.
|
String |
getConfirmationUrl()
The URL to which IoT sends a confirmation message.
|
List<HttpActionHeader> |
getHeaders()
The HTTP headers to send with the message data.
|
String |
getUrl()
The endpoint URL.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAuth(HttpAuthorization auth)
The authentication method to use when sending data to an HTTPS endpoint.
|
void |
setConfirmationUrl(String confirmationUrl)
The URL to which IoT sends a confirmation message.
|
void |
setHeaders(Collection<HttpActionHeader> headers)
The HTTP headers to send with the message data.
|
void |
setUrl(String url)
The endpoint URL.
|
String |
toString()
Returns a string representation of this object.
|
HttpAction |
withAuth(HttpAuthorization auth)
The authentication method to use when sending data to an HTTPS endpoint.
|
HttpAction |
withConfirmationUrl(String confirmationUrl)
The URL to which IoT sends a confirmation message.
|
HttpAction |
withHeaders(Collection<HttpActionHeader> headers)
The HTTP headers to send with the message data.
|
HttpAction |
withHeaders(HttpActionHeader... headers)
The HTTP headers to send with the message data.
|
HttpAction |
withUrl(String url)
The endpoint URL.
|
public void setUrl(String url)
The endpoint URL. If substitution templates are used in the URL, you must also specify a
confirmationUrl
. If this is a new destination, a new TopicRuleDestination
is created if
possible.
url
- The endpoint URL. If substitution templates are used in the URL, you must also specify a
confirmationUrl
. If this is a new destination, a new TopicRuleDestination
is
created if possible.public String getUrl()
The endpoint URL. If substitution templates are used in the URL, you must also specify a
confirmationUrl
. If this is a new destination, a new TopicRuleDestination
is created if
possible.
confirmationUrl
. If this is a new destination, a new TopicRuleDestination
is
created if possible.public HttpAction withUrl(String url)
The endpoint URL. If substitution templates are used in the URL, you must also specify a
confirmationUrl
. If this is a new destination, a new TopicRuleDestination
is created if
possible.
url
- The endpoint URL. If substitution templates are used in the URL, you must also specify a
confirmationUrl
. If this is a new destination, a new TopicRuleDestination
is
created if possible.public void setConfirmationUrl(String confirmationUrl)
The URL to which IoT sends a confirmation message. The value of the confirmation URL must be a prefix of the endpoint URL. If you do not specify a confirmation URL IoT uses the endpoint URL as the confirmation URL. If you use substitution templates in the confirmationUrl, you must create and enable topic rule destinations that match each possible value of the substitution template before traffic is allowed to your endpoint URL.
confirmationUrl
- The URL to which IoT sends a confirmation message. The value of the confirmation URL must be a prefix of
the endpoint URL. If you do not specify a confirmation URL IoT uses the endpoint URL as the confirmation
URL. If you use substitution templates in the confirmationUrl, you must create and enable topic rule
destinations that match each possible value of the substitution template before traffic is allowed to your
endpoint URL.public String getConfirmationUrl()
The URL to which IoT sends a confirmation message. The value of the confirmation URL must be a prefix of the endpoint URL. If you do not specify a confirmation URL IoT uses the endpoint URL as the confirmation URL. If you use substitution templates in the confirmationUrl, you must create and enable topic rule destinations that match each possible value of the substitution template before traffic is allowed to your endpoint URL.
public HttpAction withConfirmationUrl(String confirmationUrl)
The URL to which IoT sends a confirmation message. The value of the confirmation URL must be a prefix of the endpoint URL. If you do not specify a confirmation URL IoT uses the endpoint URL as the confirmation URL. If you use substitution templates in the confirmationUrl, you must create and enable topic rule destinations that match each possible value of the substitution template before traffic is allowed to your endpoint URL.
confirmationUrl
- The URL to which IoT sends a confirmation message. The value of the confirmation URL must be a prefix of
the endpoint URL. If you do not specify a confirmation URL IoT uses the endpoint URL as the confirmation
URL. If you use substitution templates in the confirmationUrl, you must create and enable topic rule
destinations that match each possible value of the substitution template before traffic is allowed to your
endpoint URL.public List<HttpActionHeader> getHeaders()
The HTTP headers to send with the message data.
public void setHeaders(Collection<HttpActionHeader> headers)
The HTTP headers to send with the message data.
headers
- The HTTP headers to send with the message data.public HttpAction withHeaders(HttpActionHeader... headers)
The HTTP headers to send with the message data.
NOTE: This method appends the values to the existing list (if any). Use
setHeaders(java.util.Collection)
or withHeaders(java.util.Collection)
if you want to override
the existing values.
headers
- The HTTP headers to send with the message data.public HttpAction withHeaders(Collection<HttpActionHeader> headers)
The HTTP headers to send with the message data.
headers
- The HTTP headers to send with the message data.public void setAuth(HttpAuthorization auth)
The authentication method to use when sending data to an HTTPS endpoint.
auth
- The authentication method to use when sending data to an HTTPS endpoint.public HttpAuthorization getAuth()
The authentication method to use when sending data to an HTTPS endpoint.
public HttpAction withAuth(HttpAuthorization auth)
The authentication method to use when sending data to an HTTPS endpoint.
auth
- The authentication method to use when sending data to an HTTPS endpoint.public String toString()
toString
in class Object
Object.toString()
public HttpAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.