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

com.amazonaws.services.iotwireless.model.ConnectionStatusEventConfiguration Maven / Gradle / Ivy

/*
 * 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.iotwireless.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Connection status event configuration object for enabling or disabling topic. *

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

* Connection status event configuration object for enabling or disabling LoRaWAN related event topics. *

*/ private LoRaWANConnectionStatusEventNotificationConfigurations loRaWAN; /** *

* Denotes whether the wireless gateway ID connection status event topic is enabled or disabled. *

*/ private String wirelessGatewayIdEventTopic; /** *

* Connection status event configuration object for enabling or disabling LoRaWAN related event topics. *

* * @param loRaWAN * Connection status event configuration object for enabling or disabling LoRaWAN related event topics. */ public void setLoRaWAN(LoRaWANConnectionStatusEventNotificationConfigurations loRaWAN) { this.loRaWAN = loRaWAN; } /** *

* Connection status event configuration object for enabling or disabling LoRaWAN related event topics. *

* * @return Connection status event configuration object for enabling or disabling LoRaWAN related event topics. */ public LoRaWANConnectionStatusEventNotificationConfigurations getLoRaWAN() { return this.loRaWAN; } /** *

* Connection status event configuration object for enabling or disabling LoRaWAN related event topics. *

* * @param loRaWAN * Connection status event configuration object for enabling or disabling LoRaWAN related event topics. * @return Returns a reference to this object so that method calls can be chained together. */ public ConnectionStatusEventConfiguration withLoRaWAN(LoRaWANConnectionStatusEventNotificationConfigurations loRaWAN) { setLoRaWAN(loRaWAN); return this; } /** *

* Denotes whether the wireless gateway ID connection status event topic is enabled or disabled. *

* * @param wirelessGatewayIdEventTopic * Denotes whether the wireless gateway ID connection status event topic is enabled or disabled. * @see EventNotificationTopicStatus */ public void setWirelessGatewayIdEventTopic(String wirelessGatewayIdEventTopic) { this.wirelessGatewayIdEventTopic = wirelessGatewayIdEventTopic; } /** *

* Denotes whether the wireless gateway ID connection status event topic is enabled or disabled. *

* * @return Denotes whether the wireless gateway ID connection status event topic is enabled or disabled. * @see EventNotificationTopicStatus */ public String getWirelessGatewayIdEventTopic() { return this.wirelessGatewayIdEventTopic; } /** *

* Denotes whether the wireless gateway ID connection status event topic is enabled or disabled. *

* * @param wirelessGatewayIdEventTopic * Denotes whether the wireless gateway ID connection status event topic is enabled or disabled. * @return Returns a reference to this object so that method calls can be chained together. * @see EventNotificationTopicStatus */ public ConnectionStatusEventConfiguration withWirelessGatewayIdEventTopic(String wirelessGatewayIdEventTopic) { setWirelessGatewayIdEventTopic(wirelessGatewayIdEventTopic); return this; } /** *

* Denotes whether the wireless gateway ID connection status event topic is enabled or disabled. *

* * @param wirelessGatewayIdEventTopic * Denotes whether the wireless gateway ID connection status event topic is enabled or disabled. * @return Returns a reference to this object so that method calls can be chained together. * @see EventNotificationTopicStatus */ public ConnectionStatusEventConfiguration withWirelessGatewayIdEventTopic(EventNotificationTopicStatus wirelessGatewayIdEventTopic) { this.wirelessGatewayIdEventTopic = wirelessGatewayIdEventTopic.toString(); 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 (getLoRaWAN() != null) sb.append("LoRaWAN: ").append(getLoRaWAN()).append(","); if (getWirelessGatewayIdEventTopic() != null) sb.append("WirelessGatewayIdEventTopic: ").append(getWirelessGatewayIdEventTopic()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ConnectionStatusEventConfiguration == false) return false; ConnectionStatusEventConfiguration other = (ConnectionStatusEventConfiguration) obj; if (other.getLoRaWAN() == null ^ this.getLoRaWAN() == null) return false; if (other.getLoRaWAN() != null && other.getLoRaWAN().equals(this.getLoRaWAN()) == false) return false; if (other.getWirelessGatewayIdEventTopic() == null ^ this.getWirelessGatewayIdEventTopic() == null) return false; if (other.getWirelessGatewayIdEventTopic() != null && other.getWirelessGatewayIdEventTopic().equals(this.getWirelessGatewayIdEventTopic()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoRaWAN() == null) ? 0 : getLoRaWAN().hashCode()); hashCode = prime * hashCode + ((getWirelessGatewayIdEventTopic() == null) ? 0 : getWirelessGatewayIdEventTopic().hashCode()); return hashCode; } @Override public ConnectionStatusEventConfiguration clone() { try { return (ConnectionStatusEventConfiguration) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.iotwireless.model.transform.ConnectionStatusEventConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy