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

com.amazonaws.services.resourceexplorer2.model.View Maven / Gradle / Ivy

Go to download

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

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

/**
 * 

* A view is a structure that defines a set of filters that provide a view into the information in the Amazon Web * Services Resource Explorer index. The filters specify which information from the index is visible to the users of the * view. For example, you can specify filters that include only resources that are tagged with the key "ENV" and the * value "DEVELOPMENT" in the results returned by this view. You could also create a second view that includes only * resources that are tagged with "ENV" and "PRODUCTION". *

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

* An array of SearchFilter objects that specify which resources can be included in the results of queries * made using this view. *

*/ private SearchFilter filters; /** *

* A structure that contains additional information about the view. *

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

* The date and time when this view was last modified. *

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

* The Amazon Web Services account that owns this view. *

*/ private String owner; /** *

* An Amazon resource name * (ARN) of an Amazon Web Services account, an organization, or an organizational unit (OU) that specifies * whether this view includes resources from only the specified Amazon Web Services account, all accounts in the * specified organization, or all accounts in the specified OU. *

*

* If not specified, the value defaults to the Amazon Web Services account used to call this operation. *

*/ private String scope; /** *

* The Amazon resource name * (ARN) of the view. *

*/ private String viewArn; /** *

* An array of SearchFilter objects that specify which resources can be included in the results of queries * made using this view. *

* * @param filters * An array of SearchFilter objects that specify which resources can be included in the results of * queries made using this view. */ public void setFilters(SearchFilter filters) { this.filters = filters; } /** *

* An array of SearchFilter objects that specify which resources can be included in the results of queries * made using this view. *

* * @return An array of SearchFilter objects that specify which resources can be included in the results of * queries made using this view. */ public SearchFilter getFilters() { return this.filters; } /** *

* An array of SearchFilter objects that specify which resources can be included in the results of queries * made using this view. *

* * @param filters * An array of SearchFilter objects that specify which resources can be included in the results of * queries made using this view. * @return Returns a reference to this object so that method calls can be chained together. */ public View withFilters(SearchFilter filters) { setFilters(filters); return this; } /** *

* A structure that contains additional information about the view. *

* * @return A structure that contains additional information about the view. */ public java.util.List getIncludedProperties() { return includedProperties; } /** *

* A structure that contains additional information about the view. *

* * @param includedProperties * A structure that contains additional information about the view. */ public void setIncludedProperties(java.util.Collection includedProperties) { if (includedProperties == null) { this.includedProperties = null; return; } this.includedProperties = new java.util.ArrayList(includedProperties); } /** *

* A structure that contains additional information about the view. *

*

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

* * @param includedProperties * A structure that contains additional information about the view. * @return Returns a reference to this object so that method calls can be chained together. */ public View withIncludedProperties(IncludedProperty... includedProperties) { if (this.includedProperties == null) { setIncludedProperties(new java.util.ArrayList(includedProperties.length)); } for (IncludedProperty ele : includedProperties) { this.includedProperties.add(ele); } return this; } /** *

* A structure that contains additional information about the view. *

* * @param includedProperties * A structure that contains additional information about the view. * @return Returns a reference to this object so that method calls can be chained together. */ public View withIncludedProperties(java.util.Collection includedProperties) { setIncludedProperties(includedProperties); return this; } /** *

* The date and time when this view was last modified. *

* * @param lastUpdatedAt * The date and time when this view was last modified. */ public void setLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } /** *

* The date and time when this view was last modified. *

* * @return The date and time when this view was last modified. */ public java.util.Date getLastUpdatedAt() { return this.lastUpdatedAt; } /** *

* The date and time when this view was last modified. *

* * @param lastUpdatedAt * The date and time when this view was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public View withLastUpdatedAt(java.util.Date lastUpdatedAt) { setLastUpdatedAt(lastUpdatedAt); return this; } /** *

* The Amazon Web Services account that owns this view. *

* * @param owner * The Amazon Web Services account that owns this view. */ public void setOwner(String owner) { this.owner = owner; } /** *

* The Amazon Web Services account that owns this view. *

* * @return The Amazon Web Services account that owns this view. */ public String getOwner() { return this.owner; } /** *

* The Amazon Web Services account that owns this view. *

* * @param owner * The Amazon Web Services account that owns this view. * @return Returns a reference to this object so that method calls can be chained together. */ public View withOwner(String owner) { setOwner(owner); return this; } /** *

* An Amazon resource name * (ARN) of an Amazon Web Services account, an organization, or an organizational unit (OU) that specifies * whether this view includes resources from only the specified Amazon Web Services account, all accounts in the * specified organization, or all accounts in the specified OU. *

*

* If not specified, the value defaults to the Amazon Web Services account used to call this operation. *

* * @param scope * An Amazon resource * name (ARN) of an Amazon Web Services account, an organization, or an organizational unit (OU) that * specifies whether this view includes resources from only the specified Amazon Web Services account, all * accounts in the specified organization, or all accounts in the specified OU.

*

* If not specified, the value defaults to the Amazon Web Services account used to call this operation. */ public void setScope(String scope) { this.scope = scope; } /** *

* An Amazon resource name * (ARN) of an Amazon Web Services account, an organization, or an organizational unit (OU) that specifies * whether this view includes resources from only the specified Amazon Web Services account, all accounts in the * specified organization, or all accounts in the specified OU. *

*

* If not specified, the value defaults to the Amazon Web Services account used to call this operation. *

* * @return An Amazon resource * name (ARN) of an Amazon Web Services account, an organization, or an organizational unit (OU) that * specifies whether this view includes resources from only the specified Amazon Web Services account, all * accounts in the specified organization, or all accounts in the specified OU.

*

* If not specified, the value defaults to the Amazon Web Services account used to call this operation. */ public String getScope() { return this.scope; } /** *

* An Amazon resource name * (ARN) of an Amazon Web Services account, an organization, or an organizational unit (OU) that specifies * whether this view includes resources from only the specified Amazon Web Services account, all accounts in the * specified organization, or all accounts in the specified OU. *

*

* If not specified, the value defaults to the Amazon Web Services account used to call this operation. *

* * @param scope * An Amazon resource * name (ARN) of an Amazon Web Services account, an organization, or an organizational unit (OU) that * specifies whether this view includes resources from only the specified Amazon Web Services account, all * accounts in the specified organization, or all accounts in the specified OU.

*

* If not specified, the value defaults to the Amazon Web Services account used to call this operation. * @return Returns a reference to this object so that method calls can be chained together. */ public View withScope(String scope) { setScope(scope); return this; } /** *

* The Amazon resource name * (ARN) of the view. *

* * @param viewArn * The Amazon resource * name (ARN) of the view. */ public void setViewArn(String viewArn) { this.viewArn = viewArn; } /** *

* The Amazon resource name * (ARN) of the view. *

* * @return The Amazon resource * name (ARN) of the view. */ public String getViewArn() { return this.viewArn; } /** *

* The Amazon resource name * (ARN) of the view. *

* * @param viewArn * The Amazon resource * name (ARN) of the view. * @return Returns a reference to this object so that method calls can be chained together. */ public View withViewArn(String viewArn) { setViewArn(viewArn); 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 (getFilters() != null) sb.append("Filters: ").append("***Sensitive Data Redacted***").append(","); if (getIncludedProperties() != null) sb.append("IncludedProperties: ").append(getIncludedProperties()).append(","); if (getLastUpdatedAt() != null) sb.append("LastUpdatedAt: ").append(getLastUpdatedAt()).append(","); if (getOwner() != null) sb.append("Owner: ").append(getOwner()).append(","); if (getScope() != null) sb.append("Scope: ").append(getScope()).append(","); if (getViewArn() != null) sb.append("ViewArn: ").append(getViewArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof View == false) return false; View other = (View) obj; if (other.getFilters() == null ^ this.getFilters() == null) return false; if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false) return false; if (other.getIncludedProperties() == null ^ this.getIncludedProperties() == null) return false; if (other.getIncludedProperties() != null && other.getIncludedProperties().equals(this.getIncludedProperties()) == false) return false; if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == null) return false; if (other.getLastUpdatedAt() != null && other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == false) return false; if (other.getOwner() == null ^ this.getOwner() == null) return false; if (other.getOwner() != null && other.getOwner().equals(this.getOwner()) == false) return false; if (other.getScope() == null ^ this.getScope() == null) return false; if (other.getScope() != null && other.getScope().equals(this.getScope()) == false) return false; if (other.getViewArn() == null ^ this.getViewArn() == null) return false; if (other.getViewArn() != null && other.getViewArn().equals(this.getViewArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode()); hashCode = prime * hashCode + ((getIncludedProperties() == null) ? 0 : getIncludedProperties().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getOwner() == null) ? 0 : getOwner().hashCode()); hashCode = prime * hashCode + ((getScope() == null) ? 0 : getScope().hashCode()); hashCode = prime * hashCode + ((getViewArn() == null) ? 0 : getViewArn().hashCode()); return hashCode; } @Override public View clone() { try { return (View) 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.resourceexplorer2.model.transform.ViewMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy