All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.workdocs.model.CreateNotificationSubscriptionRequest Maven / Gradle / Ivy

/*
 * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.workdocs.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateNotificationSubscriptionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The ID of the organization. *

*/ private String organizationId; /** *

* The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with * "https://". *

*/ private String endpoint; /** *

* The protocol to use. The supported value is https, which delivers JSON-encoded messasges using HTTPS POST. *

*/ private String protocol; /** *

* The notification type. *

*/ private String subscriptionType; /** *

* The ID of the organization. *

* * @param organizationId * The ID of the organization. */ public void setOrganizationId(String organizationId) { this.organizationId = organizationId; } /** *

* The ID of the organization. *

* * @return The ID of the organization. */ public String getOrganizationId() { return this.organizationId; } /** *

* The ID of the organization. *

* * @param organizationId * The ID of the organization. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNotificationSubscriptionRequest withOrganizationId(String organizationId) { setOrganizationId(organizationId); return this; } /** *

* The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with * "https://". *

* * @param endpoint * The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins * with "https://". */ public void setEndpoint(String endpoint) { this.endpoint = endpoint; } /** *

* The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with * "https://". *

* * @return The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins * with "https://". */ public String getEndpoint() { return this.endpoint; } /** *

* The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with * "https://". *

* * @param endpoint * The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins * with "https://". * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNotificationSubscriptionRequest withEndpoint(String endpoint) { setEndpoint(endpoint); return this; } /** *

* The protocol to use. The supported value is https, which delivers JSON-encoded messasges using HTTPS POST. *

* * @param protocol * The protocol to use. The supported value is https, which delivers JSON-encoded messasges using HTTPS POST. * @see SubscriptionProtocolType */ public void setProtocol(String protocol) { this.protocol = protocol; } /** *

* The protocol to use. The supported value is https, which delivers JSON-encoded messasges using HTTPS POST. *

* * @return The protocol to use. The supported value is https, which delivers JSON-encoded messasges using HTTPS * POST. * @see SubscriptionProtocolType */ public String getProtocol() { return this.protocol; } /** *

* The protocol to use. The supported value is https, which delivers JSON-encoded messasges using HTTPS POST. *

* * @param protocol * The protocol to use. The supported value is https, which delivers JSON-encoded messasges using HTTPS POST. * @return Returns a reference to this object so that method calls can be chained together. * @see SubscriptionProtocolType */ public CreateNotificationSubscriptionRequest withProtocol(String protocol) { setProtocol(protocol); return this; } /** *

* The protocol to use. The supported value is https, which delivers JSON-encoded messasges using HTTPS POST. *

* * @param protocol * The protocol to use. The supported value is https, which delivers JSON-encoded messasges using HTTPS POST. * @see SubscriptionProtocolType */ public void setProtocol(SubscriptionProtocolType protocol) { this.protocol = protocol.toString(); } /** *

* The protocol to use. The supported value is https, which delivers JSON-encoded messasges using HTTPS POST. *

* * @param protocol * The protocol to use. The supported value is https, which delivers JSON-encoded messasges using HTTPS POST. * @return Returns a reference to this object so that method calls can be chained together. * @see SubscriptionProtocolType */ public CreateNotificationSubscriptionRequest withProtocol(SubscriptionProtocolType protocol) { setProtocol(protocol); return this; } /** *

* The notification type. *

* * @param subscriptionType * The notification type. * @see SubscriptionType */ public void setSubscriptionType(String subscriptionType) { this.subscriptionType = subscriptionType; } /** *

* The notification type. *

* * @return The notification type. * @see SubscriptionType */ public String getSubscriptionType() { return this.subscriptionType; } /** *

* The notification type. *

* * @param subscriptionType * The notification type. * @return Returns a reference to this object so that method calls can be chained together. * @see SubscriptionType */ public CreateNotificationSubscriptionRequest withSubscriptionType(String subscriptionType) { setSubscriptionType(subscriptionType); return this; } /** *

* The notification type. *

* * @param subscriptionType * The notification type. * @see SubscriptionType */ public void setSubscriptionType(SubscriptionType subscriptionType) { this.subscriptionType = subscriptionType.toString(); } /** *

* The notification type. *

* * @param subscriptionType * The notification type. * @return Returns a reference to this object so that method calls can be chained together. * @see SubscriptionType */ public CreateNotificationSubscriptionRequest withSubscriptionType(SubscriptionType subscriptionType) { setSubscriptionType(subscriptionType); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getOrganizationId() != null) sb.append("OrganizationId: ").append(getOrganizationId()).append(","); if (getEndpoint() != null) sb.append("Endpoint: ").append(getEndpoint()).append(","); if (getProtocol() != null) sb.append("Protocol: ").append(getProtocol()).append(","); if (getSubscriptionType() != null) sb.append("SubscriptionType: ").append(getSubscriptionType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateNotificationSubscriptionRequest == false) return false; CreateNotificationSubscriptionRequest other = (CreateNotificationSubscriptionRequest) obj; if (other.getOrganizationId() == null ^ this.getOrganizationId() == null) return false; if (other.getOrganizationId() != null && other.getOrganizationId().equals(this.getOrganizationId()) == false) return false; if (other.getEndpoint() == null ^ this.getEndpoint() == null) return false; if (other.getEndpoint() != null && other.getEndpoint().equals(this.getEndpoint()) == false) return false; if (other.getProtocol() == null ^ this.getProtocol() == null) return false; if (other.getProtocol() != null && other.getProtocol().equals(this.getProtocol()) == false) return false; if (other.getSubscriptionType() == null ^ this.getSubscriptionType() == null) return false; if (other.getSubscriptionType() != null && other.getSubscriptionType().equals(this.getSubscriptionType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOrganizationId() == null) ? 0 : getOrganizationId().hashCode()); hashCode = prime * hashCode + ((getEndpoint() == null) ? 0 : getEndpoint().hashCode()); hashCode = prime * hashCode + ((getProtocol() == null) ? 0 : getProtocol().hashCode()); hashCode = prime * hashCode + ((getSubscriptionType() == null) ? 0 : getSubscriptionType().hashCode()); return hashCode; } @Override public CreateNotificationSubscriptionRequest clone() { return (CreateNotificationSubscriptionRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy