com.amazonaws.services.iotanalytics.model.DatastoreStorageSummary Maven / Gradle / Ivy
Show all versions of aws-java-sdk-iotanalytics Show documentation
/*
* Copyright 2018-2023 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.iotanalytics.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Contains information about your data store.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DatastoreStorageSummary implements Serializable, Cloneable, StructuredPojo {
/**
*
* Used to store data in an Amazon S3 bucket managed by IoT Analytics.
*
*/
private ServiceManagedDatastoreS3StorageSummary serviceManagedS3;
/**
*
* Used to store data in an Amazon S3 bucket managed by IoT Analytics.
*
*/
private CustomerManagedDatastoreS3StorageSummary customerManagedS3;
/**
*
* Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage.
*
*/
private DatastoreIotSiteWiseMultiLayerStorageSummary iotSiteWiseMultiLayerStorage;
/**
*
* Used to store data in an Amazon S3 bucket managed by IoT Analytics.
*
*
* @param serviceManagedS3
* Used to store data in an Amazon S3 bucket managed by IoT Analytics.
*/
public void setServiceManagedS3(ServiceManagedDatastoreS3StorageSummary serviceManagedS3) {
this.serviceManagedS3 = serviceManagedS3;
}
/**
*
* Used to store data in an Amazon S3 bucket managed by IoT Analytics.
*
*
* @return Used to store data in an Amazon S3 bucket managed by IoT Analytics.
*/
public ServiceManagedDatastoreS3StorageSummary getServiceManagedS3() {
return this.serviceManagedS3;
}
/**
*
* Used to store data in an Amazon S3 bucket managed by IoT Analytics.
*
*
* @param serviceManagedS3
* Used to store data in an Amazon S3 bucket managed by IoT Analytics.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DatastoreStorageSummary withServiceManagedS3(ServiceManagedDatastoreS3StorageSummary serviceManagedS3) {
setServiceManagedS3(serviceManagedS3);
return this;
}
/**
*
* Used to store data in an Amazon S3 bucket managed by IoT Analytics.
*
*
* @param customerManagedS3
* Used to store data in an Amazon S3 bucket managed by IoT Analytics.
*/
public void setCustomerManagedS3(CustomerManagedDatastoreS3StorageSummary customerManagedS3) {
this.customerManagedS3 = customerManagedS3;
}
/**
*
* Used to store data in an Amazon S3 bucket managed by IoT Analytics.
*
*
* @return Used to store data in an Amazon S3 bucket managed by IoT Analytics.
*/
public CustomerManagedDatastoreS3StorageSummary getCustomerManagedS3() {
return this.customerManagedS3;
}
/**
*
* Used to store data in an Amazon S3 bucket managed by IoT Analytics.
*
*
* @param customerManagedS3
* Used to store data in an Amazon S3 bucket managed by IoT Analytics.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DatastoreStorageSummary withCustomerManagedS3(CustomerManagedDatastoreS3StorageSummary customerManagedS3) {
setCustomerManagedS3(customerManagedS3);
return this;
}
/**
*
* Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage.
*
*
* @param iotSiteWiseMultiLayerStorage
* Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage.
*/
public void setIotSiteWiseMultiLayerStorage(DatastoreIotSiteWiseMultiLayerStorageSummary iotSiteWiseMultiLayerStorage) {
this.iotSiteWiseMultiLayerStorage = iotSiteWiseMultiLayerStorage;
}
/**
*
* Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage.
*
*
* @return Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage.
*/
public DatastoreIotSiteWiseMultiLayerStorageSummary getIotSiteWiseMultiLayerStorage() {
return this.iotSiteWiseMultiLayerStorage;
}
/**
*
* Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage.
*
*
* @param iotSiteWiseMultiLayerStorage
* Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DatastoreStorageSummary withIotSiteWiseMultiLayerStorage(DatastoreIotSiteWiseMultiLayerStorageSummary iotSiteWiseMultiLayerStorage) {
setIotSiteWiseMultiLayerStorage(iotSiteWiseMultiLayerStorage);
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 (getServiceManagedS3() != null)
sb.append("ServiceManagedS3: ").append(getServiceManagedS3()).append(",");
if (getCustomerManagedS3() != null)
sb.append("CustomerManagedS3: ").append(getCustomerManagedS3()).append(",");
if (getIotSiteWiseMultiLayerStorage() != null)
sb.append("IotSiteWiseMultiLayerStorage: ").append(getIotSiteWiseMultiLayerStorage());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DatastoreStorageSummary == false)
return false;
DatastoreStorageSummary other = (DatastoreStorageSummary) obj;
if (other.getServiceManagedS3() == null ^ this.getServiceManagedS3() == null)
return false;
if (other.getServiceManagedS3() != null && other.getServiceManagedS3().equals(this.getServiceManagedS3()) == false)
return false;
if (other.getCustomerManagedS3() == null ^ this.getCustomerManagedS3() == null)
return false;
if (other.getCustomerManagedS3() != null && other.getCustomerManagedS3().equals(this.getCustomerManagedS3()) == false)
return false;
if (other.getIotSiteWiseMultiLayerStorage() == null ^ this.getIotSiteWiseMultiLayerStorage() == null)
return false;
if (other.getIotSiteWiseMultiLayerStorage() != null && other.getIotSiteWiseMultiLayerStorage().equals(this.getIotSiteWiseMultiLayerStorage()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getServiceManagedS3() == null) ? 0 : getServiceManagedS3().hashCode());
hashCode = prime * hashCode + ((getCustomerManagedS3() == null) ? 0 : getCustomerManagedS3().hashCode());
hashCode = prime * hashCode + ((getIotSiteWiseMultiLayerStorage() == null) ? 0 : getIotSiteWiseMultiLayerStorage().hashCode());
return hashCode;
}
@Override
public DatastoreStorageSummary clone() {
try {
return (DatastoreStorageSummary) 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.iotanalytics.model.transform.DatastoreStorageSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}