Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.containerregistry; import java.util.Map; import com.fasterxml.jackson.annotation.JsonProperty;
The event request message sent to the service URI.
/** * The event request message sent to the service URI. */
public class EventRequestMessage {
The content of the event request message.
/** * The content of the event request message. */
@JsonProperty(value = "content") private EventContent content;
The headers of the event request message.
/** * The headers of the event request message. */
@JsonProperty(value = "headers") private Map<String, String> headers;
The HTTP method used to send the event request message.
/** * The HTTP method used to send the event request message. */
@JsonProperty(value = "method") private String method;
The URI used to send the event request message.
/** * The URI used to send the event request message. */
@JsonProperty(value = "requestUri") private String requestUri;
The HTTP message version.
/** * The HTTP message version. */
@JsonProperty(value = "version") private String version;
Get the content of the event request message.
Returns:the content value
/** * Get the content of the event request message. * * @return the content value */
public EventContent content() { return this.content; }
Set the content of the event request message.
Params:
  • content – the content value to set
Returns:the EventRequestMessage object itself.
/** * Set the content of the event request message. * * @param content the content value to set * @return the EventRequestMessage object itself. */
public EventRequestMessage withContent(EventContent content) { this.content = content; return this; }
Get the headers of the event request message.
Returns:the headers value
/** * Get the headers of the event request message. * * @return the headers value */
public Map<String, String> headers() { return this.headers; }
Set the headers of the event request message.
Params:
  • headers – the headers value to set
Returns:the EventRequestMessage object itself.
/** * Set the headers of the event request message. * * @param headers the headers value to set * @return the EventRequestMessage object itself. */
public EventRequestMessage withHeaders(Map<String, String> headers) { this.headers = headers; return this; }
Get the HTTP method used to send the event request message.
Returns:the method value
/** * Get the HTTP method used to send the event request message. * * @return the method value */
public String method() { return this.method; }
Set the HTTP method used to send the event request message.
Params:
  • method – the method value to set
Returns:the EventRequestMessage object itself.
/** * Set the HTTP method used to send the event request message. * * @param method the method value to set * @return the EventRequestMessage object itself. */
public EventRequestMessage withMethod(String method) { this.method = method; return this; }
Get the URI used to send the event request message.
Returns:the requestUri value
/** * Get the URI used to send the event request message. * * @return the requestUri value */
public String requestUri() { return this.requestUri; }
Set the URI used to send the event request message.
Params:
  • requestUri – the requestUri value to set
Returns:the EventRequestMessage object itself.
/** * Set the URI used to send the event request message. * * @param requestUri the requestUri value to set * @return the EventRequestMessage object itself. */
public EventRequestMessage withRequestUri(String requestUri) { this.requestUri = requestUri; return this; }
Get the HTTP message version.
Returns:the version value
/** * Get the HTTP message version. * * @return the version value */
public String version() { return this.version; }
Set the HTTP message version.
Params:
  • version – the version value to set
Returns:the EventRequestMessage object itself.
/** * Set the HTTP message version. * * @param version the version value to set * @return the EventRequestMessage object itself. */
public EventRequestMessage withVersion(String version) { this.version = version; return this; } }