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

com.amazonaws.services.fms.model.ProtocolsListData Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Firewall Management module holds the client classes that are used for communicating with Firewall Management 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.fms.model;

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

/**
 * 

* An Firewall Manager protocols list. *

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

* The ID of the Firewall Manager protocols list. *

*/ private String listId; /** *

* The name of the Firewall Manager protocols list. *

*/ private String listName; /** *

* A unique identifier for each update to the list. When you update the list, the update token must match the token * of the current version of the application list. You can retrieve the update token by getting the list. *

*/ private String listUpdateToken; /** *

* The time that the Firewall Manager protocols list was created. *

*/ private java.util.Date createTime; /** *

* The time that the Firewall Manager protocols list was last updated. *

*/ private java.util.Date lastUpdateTime; /** *

* An array of protocols in the Firewall Manager protocols list. *

*/ private java.util.List protocolsList; /** *

* A map of previous version numbers to their corresponding protocol arrays. *

*/ private java.util.Map> previousProtocolsList; /** *

* The ID of the Firewall Manager protocols list. *

* * @param listId * The ID of the Firewall Manager protocols list. */ public void setListId(String listId) { this.listId = listId; } /** *

* The ID of the Firewall Manager protocols list. *

* * @return The ID of the Firewall Manager protocols list. */ public String getListId() { return this.listId; } /** *

* The ID of the Firewall Manager protocols list. *

* * @param listId * The ID of the Firewall Manager protocols list. * @return Returns a reference to this object so that method calls can be chained together. */ public ProtocolsListData withListId(String listId) { setListId(listId); return this; } /** *

* The name of the Firewall Manager protocols list. *

* * @param listName * The name of the Firewall Manager protocols list. */ public void setListName(String listName) { this.listName = listName; } /** *

* The name of the Firewall Manager protocols list. *

* * @return The name of the Firewall Manager protocols list. */ public String getListName() { return this.listName; } /** *

* The name of the Firewall Manager protocols list. *

* * @param listName * The name of the Firewall Manager protocols list. * @return Returns a reference to this object so that method calls can be chained together. */ public ProtocolsListData withListName(String listName) { setListName(listName); return this; } /** *

* A unique identifier for each update to the list. When you update the list, the update token must match the token * of the current version of the application list. You can retrieve the update token by getting the list. *

* * @param listUpdateToken * A unique identifier for each update to the list. When you update the list, the update token must match the * token of the current version of the application list. You can retrieve the update token by getting the * list. */ public void setListUpdateToken(String listUpdateToken) { this.listUpdateToken = listUpdateToken; } /** *

* A unique identifier for each update to the list. When you update the list, the update token must match the token * of the current version of the application list. You can retrieve the update token by getting the list. *

* * @return A unique identifier for each update to the list. When you update the list, the update token must match * the token of the current version of the application list. You can retrieve the update token by getting * the list. */ public String getListUpdateToken() { return this.listUpdateToken; } /** *

* A unique identifier for each update to the list. When you update the list, the update token must match the token * of the current version of the application list. You can retrieve the update token by getting the list. *

* * @param listUpdateToken * A unique identifier for each update to the list. When you update the list, the update token must match the * token of the current version of the application list. You can retrieve the update token by getting the * list. * @return Returns a reference to this object so that method calls can be chained together. */ public ProtocolsListData withListUpdateToken(String listUpdateToken) { setListUpdateToken(listUpdateToken); return this; } /** *

* The time that the Firewall Manager protocols list was created. *

* * @param createTime * The time that the Firewall Manager protocols list was created. */ public void setCreateTime(java.util.Date createTime) { this.createTime = createTime; } /** *

* The time that the Firewall Manager protocols list was created. *

* * @return The time that the Firewall Manager protocols list was created. */ public java.util.Date getCreateTime() { return this.createTime; } /** *

* The time that the Firewall Manager protocols list was created. *

* * @param createTime * The time that the Firewall Manager protocols list was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ProtocolsListData withCreateTime(java.util.Date createTime) { setCreateTime(createTime); return this; } /** *

* The time that the Firewall Manager protocols list was last updated. *

* * @param lastUpdateTime * The time that the Firewall Manager protocols list was last updated. */ public void setLastUpdateTime(java.util.Date lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } /** *

* The time that the Firewall Manager protocols list was last updated. *

* * @return The time that the Firewall Manager protocols list was last updated. */ public java.util.Date getLastUpdateTime() { return this.lastUpdateTime; } /** *

* The time that the Firewall Manager protocols list was last updated. *

* * @param lastUpdateTime * The time that the Firewall Manager protocols list was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public ProtocolsListData withLastUpdateTime(java.util.Date lastUpdateTime) { setLastUpdateTime(lastUpdateTime); return this; } /** *

* An array of protocols in the Firewall Manager protocols list. *

* * @return An array of protocols in the Firewall Manager protocols list. */ public java.util.List getProtocolsList() { return protocolsList; } /** *

* An array of protocols in the Firewall Manager protocols list. *

* * @param protocolsList * An array of protocols in the Firewall Manager protocols list. */ public void setProtocolsList(java.util.Collection protocolsList) { if (protocolsList == null) { this.protocolsList = null; return; } this.protocolsList = new java.util.ArrayList(protocolsList); } /** *

* An array of protocols in the Firewall Manager protocols list. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setProtocolsList(java.util.Collection)} or {@link #withProtocolsList(java.util.Collection)} if you want * to override the existing values. *

* * @param protocolsList * An array of protocols in the Firewall Manager protocols list. * @return Returns a reference to this object so that method calls can be chained together. */ public ProtocolsListData withProtocolsList(String... protocolsList) { if (this.protocolsList == null) { setProtocolsList(new java.util.ArrayList(protocolsList.length)); } for (String ele : protocolsList) { this.protocolsList.add(ele); } return this; } /** *

* An array of protocols in the Firewall Manager protocols list. *

* * @param protocolsList * An array of protocols in the Firewall Manager protocols list. * @return Returns a reference to this object so that method calls can be chained together. */ public ProtocolsListData withProtocolsList(java.util.Collection protocolsList) { setProtocolsList(protocolsList); return this; } /** *

* A map of previous version numbers to their corresponding protocol arrays. *

* * @return A map of previous version numbers to their corresponding protocol arrays. */ public java.util.Map> getPreviousProtocolsList() { return previousProtocolsList; } /** *

* A map of previous version numbers to their corresponding protocol arrays. *

* * @param previousProtocolsList * A map of previous version numbers to their corresponding protocol arrays. */ public void setPreviousProtocolsList(java.util.Map> previousProtocolsList) { this.previousProtocolsList = previousProtocolsList; } /** *

* A map of previous version numbers to their corresponding protocol arrays. *

* * @param previousProtocolsList * A map of previous version numbers to their corresponding protocol arrays. * @return Returns a reference to this object so that method calls can be chained together. */ public ProtocolsListData withPreviousProtocolsList(java.util.Map> previousProtocolsList) { setPreviousProtocolsList(previousProtocolsList); return this; } /** * Add a single PreviousProtocolsList entry * * @see ProtocolsListData#withPreviousProtocolsList * @returns a reference to this object so that method calls can be chained together. */ public ProtocolsListData addPreviousProtocolsListEntry(String key, java.util.List value) { if (null == this.previousProtocolsList) { this.previousProtocolsList = new java.util.HashMap>(); } if (this.previousProtocolsList.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.previousProtocolsList.put(key, value); return this; } /** * Removes all the entries added into PreviousProtocolsList. * * @return Returns a reference to this object so that method calls can be chained together. */ public ProtocolsListData clearPreviousProtocolsListEntries() { this.previousProtocolsList = null; 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 (getListId() != null) sb.append("ListId: ").append(getListId()).append(","); if (getListName() != null) sb.append("ListName: ").append(getListName()).append(","); if (getListUpdateToken() != null) sb.append("ListUpdateToken: ").append(getListUpdateToken()).append(","); if (getCreateTime() != null) sb.append("CreateTime: ").append(getCreateTime()).append(","); if (getLastUpdateTime() != null) sb.append("LastUpdateTime: ").append(getLastUpdateTime()).append(","); if (getProtocolsList() != null) sb.append("ProtocolsList: ").append(getProtocolsList()).append(","); if (getPreviousProtocolsList() != null) sb.append("PreviousProtocolsList: ").append(getPreviousProtocolsList()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ProtocolsListData == false) return false; ProtocolsListData other = (ProtocolsListData) obj; if (other.getListId() == null ^ this.getListId() == null) return false; if (other.getListId() != null && other.getListId().equals(this.getListId()) == false) return false; if (other.getListName() == null ^ this.getListName() == null) return false; if (other.getListName() != null && other.getListName().equals(this.getListName()) == false) return false; if (other.getListUpdateToken() == null ^ this.getListUpdateToken() == null) return false; if (other.getListUpdateToken() != null && other.getListUpdateToken().equals(this.getListUpdateToken()) == false) return false; if (other.getCreateTime() == null ^ this.getCreateTime() == null) return false; if (other.getCreateTime() != null && other.getCreateTime().equals(this.getCreateTime()) == false) return false; if (other.getLastUpdateTime() == null ^ this.getLastUpdateTime() == null) return false; if (other.getLastUpdateTime() != null && other.getLastUpdateTime().equals(this.getLastUpdateTime()) == false) return false; if (other.getProtocolsList() == null ^ this.getProtocolsList() == null) return false; if (other.getProtocolsList() != null && other.getProtocolsList().equals(this.getProtocolsList()) == false) return false; if (other.getPreviousProtocolsList() == null ^ this.getPreviousProtocolsList() == null) return false; if (other.getPreviousProtocolsList() != null && other.getPreviousProtocolsList().equals(this.getPreviousProtocolsList()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getListId() == null) ? 0 : getListId().hashCode()); hashCode = prime * hashCode + ((getListName() == null) ? 0 : getListName().hashCode()); hashCode = prime * hashCode + ((getListUpdateToken() == null) ? 0 : getListUpdateToken().hashCode()); hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdateTime() == null) ? 0 : getLastUpdateTime().hashCode()); hashCode = prime * hashCode + ((getProtocolsList() == null) ? 0 : getProtocolsList().hashCode()); hashCode = prime * hashCode + ((getPreviousProtocolsList() == null) ? 0 : getPreviousProtocolsList().hashCode()); return hashCode; } @Override public ProtocolsListData clone() { try { return (ProtocolsListData) 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.fms.model.transform.ProtocolsListDataMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy