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

com.amazonaws.services.detective.model.MembershipDatasources Maven / Gradle / Ivy

Go to download

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

The 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.detective.model;

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

/**
 * 

* Details on data source packages for members of the behavior graph. *

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

* The account identifier of the Amazon Web Services account. *

*/ private String accountId; /** *

* The ARN of the organization behavior graph. *

*/ private String graphArn; /** *

* Details on when a data source package was added to a behavior graph. *

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

* The account identifier of the Amazon Web Services account. *

* * @param accountId * The account identifier of the Amazon Web Services account. */ public void setAccountId(String accountId) { this.accountId = accountId; } /** *

* The account identifier of the Amazon Web Services account. *

* * @return The account identifier of the Amazon Web Services account. */ public String getAccountId() { return this.accountId; } /** *

* The account identifier of the Amazon Web Services account. *

* * @param accountId * The account identifier of the Amazon Web Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public MembershipDatasources withAccountId(String accountId) { setAccountId(accountId); return this; } /** *

* The ARN of the organization behavior graph. *

* * @param graphArn * The ARN of the organization behavior graph. */ public void setGraphArn(String graphArn) { this.graphArn = graphArn; } /** *

* The ARN of the organization behavior graph. *

* * @return The ARN of the organization behavior graph. */ public String getGraphArn() { return this.graphArn; } /** *

* The ARN of the organization behavior graph. *

* * @param graphArn * The ARN of the organization behavior graph. * @return Returns a reference to this object so that method calls can be chained together. */ public MembershipDatasources withGraphArn(String graphArn) { setGraphArn(graphArn); return this; } /** *

* Details on when a data source package was added to a behavior graph. *

* * @return Details on when a data source package was added to a behavior graph. */ public java.util.Map> getDatasourcePackageIngestHistory() { return datasourcePackageIngestHistory; } /** *

* Details on when a data source package was added to a behavior graph. *

* * @param datasourcePackageIngestHistory * Details on when a data source package was added to a behavior graph. */ public void setDatasourcePackageIngestHistory(java.util.Map> datasourcePackageIngestHistory) { this.datasourcePackageIngestHistory = datasourcePackageIngestHistory; } /** *

* Details on when a data source package was added to a behavior graph. *

* * @param datasourcePackageIngestHistory * Details on when a data source package was added to a behavior graph. * @return Returns a reference to this object so that method calls can be chained together. */ public MembershipDatasources withDatasourcePackageIngestHistory( java.util.Map> datasourcePackageIngestHistory) { setDatasourcePackageIngestHistory(datasourcePackageIngestHistory); return this; } /** * Add a single DatasourcePackageIngestHistory entry * * @see MembershipDatasources#withDatasourcePackageIngestHistory * @returns a reference to this object so that method calls can be chained together. */ public MembershipDatasources addDatasourcePackageIngestHistoryEntry(String key, java.util.Map value) { if (null == this.datasourcePackageIngestHistory) { this.datasourcePackageIngestHistory = new java.util.HashMap>(); } if (this.datasourcePackageIngestHistory.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.datasourcePackageIngestHistory.put(key, value); return this; } /** * Removes all the entries added into DatasourcePackageIngestHistory. * * @return Returns a reference to this object so that method calls can be chained together. */ public MembershipDatasources clearDatasourcePackageIngestHistoryEntries() { this.datasourcePackageIngestHistory = 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 (getAccountId() != null) sb.append("AccountId: ").append(getAccountId()).append(","); if (getGraphArn() != null) sb.append("GraphArn: ").append(getGraphArn()).append(","); if (getDatasourcePackageIngestHistory() != null) sb.append("DatasourcePackageIngestHistory: ").append(getDatasourcePackageIngestHistory()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof MembershipDatasources == false) return false; MembershipDatasources other = (MembershipDatasources) obj; if (other.getAccountId() == null ^ this.getAccountId() == null) return false; if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false) return false; if (other.getGraphArn() == null ^ this.getGraphArn() == null) return false; if (other.getGraphArn() != null && other.getGraphArn().equals(this.getGraphArn()) == false) return false; if (other.getDatasourcePackageIngestHistory() == null ^ this.getDatasourcePackageIngestHistory() == null) return false; if (other.getDatasourcePackageIngestHistory() != null && other.getDatasourcePackageIngestHistory().equals(this.getDatasourcePackageIngestHistory()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode()); hashCode = prime * hashCode + ((getGraphArn() == null) ? 0 : getGraphArn().hashCode()); hashCode = prime * hashCode + ((getDatasourcePackageIngestHistory() == null) ? 0 : getDatasourcePackageIngestHistory().hashCode()); return hashCode; } @Override public MembershipDatasources clone() { try { return (MembershipDatasources) 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.detective.model.transform.MembershipDatasourcesMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy