com.amazonaws.services.securitylake.model.UpdateSubscriptionNotificationConfigurationRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-securitylake Show documentation
/*
* Copyright 2018-2023 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.securitylake.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 UpdateSubscriptionNotificationConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* Create a new subscription notification for the specified subscription ID in Amazon Security Lake.
*
*/
private Boolean createSqs;
/**
*
* The key name for the subscription notification.
*
*/
private String httpsApiKeyName;
/**
*
* The key value for the subscription notification.
*
*/
private String httpsApiKeyValue;
/**
*
* The HTTPS method used for the subscription notification.
*
*/
private String httpsMethod;
/**
*
* The Amazon Resource Name (ARN) specifying the role of the subscriber.
*
*/
private String roleArn;
/**
*
* The subscription endpoint in Security Lake.
*
*/
private String subscriptionEndpoint;
/**
*
* The subscription ID for which the subscription notification is specified.
*
*/
private String subscriptionId;
/**
*
* Create a new subscription notification for the specified subscription ID in Amazon Security Lake.
*
*
* @param createSqs
* Create a new subscription notification for the specified subscription ID in Amazon Security Lake.
*/
public void setCreateSqs(Boolean createSqs) {
this.createSqs = createSqs;
}
/**
*
* Create a new subscription notification for the specified subscription ID in Amazon Security Lake.
*
*
* @return Create a new subscription notification for the specified subscription ID in Amazon Security Lake.
*/
public Boolean getCreateSqs() {
return this.createSqs;
}
/**
*
* Create a new subscription notification for the specified subscription ID in Amazon Security Lake.
*
*
* @param createSqs
* Create a new subscription notification for the specified subscription ID in Amazon Security Lake.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSubscriptionNotificationConfigurationRequest withCreateSqs(Boolean createSqs) {
setCreateSqs(createSqs);
return this;
}
/**
*
* Create a new subscription notification for the specified subscription ID in Amazon Security Lake.
*
*
* @return Create a new subscription notification for the specified subscription ID in Amazon Security Lake.
*/
public Boolean isCreateSqs() {
return this.createSqs;
}
/**
*
* The key name for the subscription notification.
*
*
* @param httpsApiKeyName
* The key name for the subscription notification.
*/
public void setHttpsApiKeyName(String httpsApiKeyName) {
this.httpsApiKeyName = httpsApiKeyName;
}
/**
*
* The key name for the subscription notification.
*
*
* @return The key name for the subscription notification.
*/
public String getHttpsApiKeyName() {
return this.httpsApiKeyName;
}
/**
*
* The key name for the subscription notification.
*
*
* @param httpsApiKeyName
* The key name for the subscription notification.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSubscriptionNotificationConfigurationRequest withHttpsApiKeyName(String httpsApiKeyName) {
setHttpsApiKeyName(httpsApiKeyName);
return this;
}
/**
*
* The key value for the subscription notification.
*
*
* @param httpsApiKeyValue
* The key value for the subscription notification.
*/
public void setHttpsApiKeyValue(String httpsApiKeyValue) {
this.httpsApiKeyValue = httpsApiKeyValue;
}
/**
*
* The key value for the subscription notification.
*
*
* @return The key value for the subscription notification.
*/
public String getHttpsApiKeyValue() {
return this.httpsApiKeyValue;
}
/**
*
* The key value for the subscription notification.
*
*
* @param httpsApiKeyValue
* The key value for the subscription notification.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSubscriptionNotificationConfigurationRequest withHttpsApiKeyValue(String httpsApiKeyValue) {
setHttpsApiKeyValue(httpsApiKeyValue);
return this;
}
/**
*
* The HTTPS method used for the subscription notification.
*
*
* @param httpsMethod
* The HTTPS method used for the subscription notification.
* @see HttpsMethod
*/
public void setHttpsMethod(String httpsMethod) {
this.httpsMethod = httpsMethod;
}
/**
*
* The HTTPS method used for the subscription notification.
*
*
* @return The HTTPS method used for the subscription notification.
* @see HttpsMethod
*/
public String getHttpsMethod() {
return this.httpsMethod;
}
/**
*
* The HTTPS method used for the subscription notification.
*
*
* @param httpsMethod
* The HTTPS method used for the subscription notification.
* @return Returns a reference to this object so that method calls can be chained together.
* @see HttpsMethod
*/
public UpdateSubscriptionNotificationConfigurationRequest withHttpsMethod(String httpsMethod) {
setHttpsMethod(httpsMethod);
return this;
}
/**
*
* The HTTPS method used for the subscription notification.
*
*
* @param httpsMethod
* The HTTPS method used for the subscription notification.
* @return Returns a reference to this object so that method calls can be chained together.
* @see HttpsMethod
*/
public UpdateSubscriptionNotificationConfigurationRequest withHttpsMethod(HttpsMethod httpsMethod) {
this.httpsMethod = httpsMethod.toString();
return this;
}
/**
*
* The Amazon Resource Name (ARN) specifying the role of the subscriber.
*
*
* @param roleArn
* The Amazon Resource Name (ARN) specifying the role of the subscriber.
*/
public void setRoleArn(String roleArn) {
this.roleArn = roleArn;
}
/**
*
* The Amazon Resource Name (ARN) specifying the role of the subscriber.
*
*
* @return The Amazon Resource Name (ARN) specifying the role of the subscriber.
*/
public String getRoleArn() {
return this.roleArn;
}
/**
*
* The Amazon Resource Name (ARN) specifying the role of the subscriber.
*
*
* @param roleArn
* The Amazon Resource Name (ARN) specifying the role of the subscriber.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSubscriptionNotificationConfigurationRequest withRoleArn(String roleArn) {
setRoleArn(roleArn);
return this;
}
/**
*
* The subscription endpoint in Security Lake.
*
*
* @param subscriptionEndpoint
* The subscription endpoint in Security Lake.
*/
public void setSubscriptionEndpoint(String subscriptionEndpoint) {
this.subscriptionEndpoint = subscriptionEndpoint;
}
/**
*
* The subscription endpoint in Security Lake.
*
*
* @return The subscription endpoint in Security Lake.
*/
public String getSubscriptionEndpoint() {
return this.subscriptionEndpoint;
}
/**
*
* The subscription endpoint in Security Lake.
*
*
* @param subscriptionEndpoint
* The subscription endpoint in Security Lake.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSubscriptionNotificationConfigurationRequest withSubscriptionEndpoint(String subscriptionEndpoint) {
setSubscriptionEndpoint(subscriptionEndpoint);
return this;
}
/**
*
* The subscription ID for which the subscription notification is specified.
*
*
* @param subscriptionId
* The subscription ID for which the subscription notification is specified.
*/
public void setSubscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
}
/**
*
* The subscription ID for which the subscription notification is specified.
*
*
* @return The subscription ID for which the subscription notification is specified.
*/
public String getSubscriptionId() {
return this.subscriptionId;
}
/**
*
* The subscription ID for which the subscription notification is specified.
*
*
* @param subscriptionId
* The subscription ID for which the subscription notification is specified.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSubscriptionNotificationConfigurationRequest withSubscriptionId(String subscriptionId) {
setSubscriptionId(subscriptionId);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getCreateSqs() != null)
sb.append("CreateSqs: ").append(getCreateSqs()).append(",");
if (getHttpsApiKeyName() != null)
sb.append("HttpsApiKeyName: ").append(getHttpsApiKeyName()).append(",");
if (getHttpsApiKeyValue() != null)
sb.append("HttpsApiKeyValue: ").append(getHttpsApiKeyValue()).append(",");
if (getHttpsMethod() != null)
sb.append("HttpsMethod: ").append(getHttpsMethod()).append(",");
if (getRoleArn() != null)
sb.append("RoleArn: ").append(getRoleArn()).append(",");
if (getSubscriptionEndpoint() != null)
sb.append("SubscriptionEndpoint: ").append(getSubscriptionEndpoint()).append(",");
if (getSubscriptionId() != null)
sb.append("SubscriptionId: ").append(getSubscriptionId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateSubscriptionNotificationConfigurationRequest == false)
return false;
UpdateSubscriptionNotificationConfigurationRequest other = (UpdateSubscriptionNotificationConfigurationRequest) obj;
if (other.getCreateSqs() == null ^ this.getCreateSqs() == null)
return false;
if (other.getCreateSqs() != null && other.getCreateSqs().equals(this.getCreateSqs()) == false)
return false;
if (other.getHttpsApiKeyName() == null ^ this.getHttpsApiKeyName() == null)
return false;
if (other.getHttpsApiKeyName() != null && other.getHttpsApiKeyName().equals(this.getHttpsApiKeyName()) == false)
return false;
if (other.getHttpsApiKeyValue() == null ^ this.getHttpsApiKeyValue() == null)
return false;
if (other.getHttpsApiKeyValue() != null && other.getHttpsApiKeyValue().equals(this.getHttpsApiKeyValue()) == false)
return false;
if (other.getHttpsMethod() == null ^ this.getHttpsMethod() == null)
return false;
if (other.getHttpsMethod() != null && other.getHttpsMethod().equals(this.getHttpsMethod()) == false)
return false;
if (other.getRoleArn() == null ^ this.getRoleArn() == null)
return false;
if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false)
return false;
if (other.getSubscriptionEndpoint() == null ^ this.getSubscriptionEndpoint() == null)
return false;
if (other.getSubscriptionEndpoint() != null && other.getSubscriptionEndpoint().equals(this.getSubscriptionEndpoint()) == false)
return false;
if (other.getSubscriptionId() == null ^ this.getSubscriptionId() == null)
return false;
if (other.getSubscriptionId() != null && other.getSubscriptionId().equals(this.getSubscriptionId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCreateSqs() == null) ? 0 : getCreateSqs().hashCode());
hashCode = prime * hashCode + ((getHttpsApiKeyName() == null) ? 0 : getHttpsApiKeyName().hashCode());
hashCode = prime * hashCode + ((getHttpsApiKeyValue() == null) ? 0 : getHttpsApiKeyValue().hashCode());
hashCode = prime * hashCode + ((getHttpsMethod() == null) ? 0 : getHttpsMethod().hashCode());
hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode());
hashCode = prime * hashCode + ((getSubscriptionEndpoint() == null) ? 0 : getSubscriptionEndpoint().hashCode());
hashCode = prime * hashCode + ((getSubscriptionId() == null) ? 0 : getSubscriptionId().hashCode());
return hashCode;
}
@Override
public UpdateSubscriptionNotificationConfigurationRequest clone() {
return (UpdateSubscriptionNotificationConfigurationRequest) super.clone();
}
}