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

com.amazonaws.services.networkfirewall.model.PerObjectStatus Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Network Firewall module holds the client classes that are used for communicating with AWS Network Firewall Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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.networkfirewall.model;

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

/**
 * 

* Provides configuration status for a single policy or rule group that is used for a firewall endpoint. Network * Firewall provides each endpoint with the rules that are configured in the firewall policy. Each time you add a subnet * or modify the associated firewall policy, Network Firewall synchronizes the rules in the endpoint, so it can properly * filter network traffic. This is part of a SyncState for a firewall. *

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

* Indicates whether this object is in sync with the version indicated in the update token. *

*/ private String syncStatus; /** *

* The current version of the object that is either in sync or pending synchronization. *

*/ private String updateToken; /** *

* Indicates whether this object is in sync with the version indicated in the update token. *

* * @param syncStatus * Indicates whether this object is in sync with the version indicated in the update token. * @see PerObjectSyncStatus */ public void setSyncStatus(String syncStatus) { this.syncStatus = syncStatus; } /** *

* Indicates whether this object is in sync with the version indicated in the update token. *

* * @return Indicates whether this object is in sync with the version indicated in the update token. * @see PerObjectSyncStatus */ public String getSyncStatus() { return this.syncStatus; } /** *

* Indicates whether this object is in sync with the version indicated in the update token. *

* * @param syncStatus * Indicates whether this object is in sync with the version indicated in the update token. * @return Returns a reference to this object so that method calls can be chained together. * @see PerObjectSyncStatus */ public PerObjectStatus withSyncStatus(String syncStatus) { setSyncStatus(syncStatus); return this; } /** *

* Indicates whether this object is in sync with the version indicated in the update token. *

* * @param syncStatus * Indicates whether this object is in sync with the version indicated in the update token. * @return Returns a reference to this object so that method calls can be chained together. * @see PerObjectSyncStatus */ public PerObjectStatus withSyncStatus(PerObjectSyncStatus syncStatus) { this.syncStatus = syncStatus.toString(); return this; } /** *

* The current version of the object that is either in sync or pending synchronization. *

* * @param updateToken * The current version of the object that is either in sync or pending synchronization. */ public void setUpdateToken(String updateToken) { this.updateToken = updateToken; } /** *

* The current version of the object that is either in sync or pending synchronization. *

* * @return The current version of the object that is either in sync or pending synchronization. */ public String getUpdateToken() { return this.updateToken; } /** *

* The current version of the object that is either in sync or pending synchronization. *

* * @param updateToken * The current version of the object that is either in sync or pending synchronization. * @return Returns a reference to this object so that method calls can be chained together. */ public PerObjectStatus withUpdateToken(String updateToken) { setUpdateToken(updateToken); 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 (getSyncStatus() != null) sb.append("SyncStatus: ").append(getSyncStatus()).append(","); if (getUpdateToken() != null) sb.append("UpdateToken: ").append(getUpdateToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PerObjectStatus == false) return false; PerObjectStatus other = (PerObjectStatus) obj; if (other.getSyncStatus() == null ^ this.getSyncStatus() == null) return false; if (other.getSyncStatus() != null && other.getSyncStatus().equals(this.getSyncStatus()) == false) return false; if (other.getUpdateToken() == null ^ this.getUpdateToken() == null) return false; if (other.getUpdateToken() != null && other.getUpdateToken().equals(this.getUpdateToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSyncStatus() == null) ? 0 : getSyncStatus().hashCode()); hashCode = prime * hashCode + ((getUpdateToken() == null) ? 0 : getUpdateToken().hashCode()); return hashCode; } @Override public PerObjectStatus clone() { try { return (PerObjectStatus) 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.networkfirewall.model.transform.PerObjectStatusMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy