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

com.amazonaws.services.networkfirewall.model.SourceMetadata 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;

/**
 * 

* High-level information about the managed rule group that your own rule group is copied from. You can use the the * metadata to track version updates made to the originating rule group. You can retrieve all objects for a rule group * by calling * DescribeRuleGroup. *

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

* The Amazon Resource Name (ARN) of the rule group that your own rule group is copied from. *

*/ private String sourceArn; /** *

* The update token of the Amazon Web Services managed rule group that your own rule group is copied from. To * determine the update token for the managed rule group, call DescribeRuleGroup. *

*/ private String sourceUpdateToken; /** *

* The Amazon Resource Name (ARN) of the rule group that your own rule group is copied from. *

* * @param sourceArn * The Amazon Resource Name (ARN) of the rule group that your own rule group is copied from. */ public void setSourceArn(String sourceArn) { this.sourceArn = sourceArn; } /** *

* The Amazon Resource Name (ARN) of the rule group that your own rule group is copied from. *

* * @return The Amazon Resource Name (ARN) of the rule group that your own rule group is copied from. */ public String getSourceArn() { return this.sourceArn; } /** *

* The Amazon Resource Name (ARN) of the rule group that your own rule group is copied from. *

* * @param sourceArn * The Amazon Resource Name (ARN) of the rule group that your own rule group is copied from. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceMetadata withSourceArn(String sourceArn) { setSourceArn(sourceArn); return this; } /** *

* The update token of the Amazon Web Services managed rule group that your own rule group is copied from. To * determine the update token for the managed rule group, call DescribeRuleGroup. *

* * @param sourceUpdateToken * The update token of the Amazon Web Services managed rule group that your own rule group is copied from. To * determine the update token for the managed rule group, call DescribeRuleGroup. */ public void setSourceUpdateToken(String sourceUpdateToken) { this.sourceUpdateToken = sourceUpdateToken; } /** *

* The update token of the Amazon Web Services managed rule group that your own rule group is copied from. To * determine the update token for the managed rule group, call DescribeRuleGroup. *

* * @return The update token of the Amazon Web Services managed rule group that your own rule group is copied from. * To determine the update token for the managed rule group, call DescribeRuleGroup. */ public String getSourceUpdateToken() { return this.sourceUpdateToken; } /** *

* The update token of the Amazon Web Services managed rule group that your own rule group is copied from. To * determine the update token for the managed rule group, call DescribeRuleGroup. *

* * @param sourceUpdateToken * The update token of the Amazon Web Services managed rule group that your own rule group is copied from. To * determine the update token for the managed rule group, call DescribeRuleGroup. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceMetadata withSourceUpdateToken(String sourceUpdateToken) { setSourceUpdateToken(sourceUpdateToken); 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 (getSourceArn() != null) sb.append("SourceArn: ").append(getSourceArn()).append(","); if (getSourceUpdateToken() != null) sb.append("SourceUpdateToken: ").append(getSourceUpdateToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SourceMetadata == false) return false; SourceMetadata other = (SourceMetadata) obj; if (other.getSourceArn() == null ^ this.getSourceArn() == null) return false; if (other.getSourceArn() != null && other.getSourceArn().equals(this.getSourceArn()) == false) return false; if (other.getSourceUpdateToken() == null ^ this.getSourceUpdateToken() == null) return false; if (other.getSourceUpdateToken() != null && other.getSourceUpdateToken().equals(this.getSourceUpdateToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSourceArn() == null) ? 0 : getSourceArn().hashCode()); hashCode = prime * hashCode + ((getSourceUpdateToken() == null) ? 0 : getSourceUpdateToken().hashCode()); return hashCode; } @Override public SourceMetadata clone() { try { return (SourceMetadata) 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.SourceMetadataMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy