/* * 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.sagemaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Use this to specify the Amazon Web Services Key Management Service (KMS) Key ID, or KMSKeyId
, for at
* rest data encryption. You can turn OnlineStore
on or off by specifying the
* EnableOnlineStore
flag at General Assembly.
*
* The default value is False
.
*
* Use to specify KMS Key ID (KMSKeyId
) for at-rest encryption of your OnlineStore
.
*
* Turn OnlineStore
off by specifying False
for the EnableOnlineStore
flag.
* Turn OnlineStore
on by specifying True
for the EnableOnlineStore
flag.
*
* The default value is False
.
*
* Time to live duration, where the record is hard deleted after the expiration time is reached;
* ExpiresAt
= EventTime
+ TtlDuration
. For information on HardDelete, see
* the
* DeleteRecord API in the Amazon SageMaker API Reference guide.
*
* Use to specify KMS Key ID (KMSKeyId
) for at-rest encryption of your OnlineStore
.
*
KMSKeyId
) for at-rest encryption of your OnlineStore
.
*/
public void setSecurityConfig(OnlineStoreSecurityConfig securityConfig) {
this.securityConfig = securityConfig;
}
/**
*
* Use to specify KMS Key ID (KMSKeyId
) for at-rest encryption of your OnlineStore
.
*
KMSKeyId
) for at-rest encryption of your OnlineStore
* .
*/
public OnlineStoreSecurityConfig getSecurityConfig() {
return this.securityConfig;
}
/**
*
* Use to specify KMS Key ID (KMSKeyId
) for at-rest encryption of your OnlineStore
.
*
KMSKeyId
) for at-rest encryption of your OnlineStore
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public OnlineStoreConfig withSecurityConfig(OnlineStoreSecurityConfig securityConfig) {
setSecurityConfig(securityConfig);
return this;
}
/**
*
* Turn OnlineStore
off by specifying False
for the EnableOnlineStore
flag.
* Turn OnlineStore
on by specifying True
for the EnableOnlineStore
flag.
*
* The default value is False
.
*
OnlineStore
off by specifying False
for the EnableOnlineStore
* flag. Turn OnlineStore
on by specifying True
for the
* EnableOnlineStore
flag.
*
* The default value is False
.
*/
public void setEnableOnlineStore(Boolean enableOnlineStore) {
this.enableOnlineStore = enableOnlineStore;
}
/**
*
* Turn OnlineStore
off by specifying False
for the EnableOnlineStore
flag.
* Turn OnlineStore
on by specifying True
for the EnableOnlineStore
flag.
*
* The default value is False
.
*
OnlineStore
off by specifying False
for the EnableOnlineStore
* flag. Turn OnlineStore
on by specifying True
for the
* EnableOnlineStore
flag.
*
* The default value is False
.
*/
public Boolean getEnableOnlineStore() {
return this.enableOnlineStore;
}
/**
*
* Turn OnlineStore
off by specifying False
for the EnableOnlineStore
flag.
* Turn OnlineStore
on by specifying True
for the EnableOnlineStore
flag.
*
* The default value is False
.
*
OnlineStore
off by specifying False
for the EnableOnlineStore
* flag. Turn OnlineStore
on by specifying True
for the
* EnableOnlineStore
flag.
*
* The default value is False
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public OnlineStoreConfig withEnableOnlineStore(Boolean enableOnlineStore) {
setEnableOnlineStore(enableOnlineStore);
return this;
}
/**
*
* Turn OnlineStore
off by specifying False
for the EnableOnlineStore
flag.
* Turn OnlineStore
on by specifying True
for the EnableOnlineStore
flag.
*
* The default value is False
.
*
OnlineStore
off by specifying False
for the EnableOnlineStore
* flag. Turn OnlineStore
on by specifying True
for the
* EnableOnlineStore
flag.
*
* The default value is False
.
*/
public Boolean isEnableOnlineStore() {
return this.enableOnlineStore;
}
/**
*
* Time to live duration, where the record is hard deleted after the expiration time is reached;
* ExpiresAt
= EventTime
+ TtlDuration
. For information on HardDelete, see
* the
* DeleteRecord API in the Amazon SageMaker API Reference guide.
*
ExpiresAt
= EventTime
+ TtlDuration
. For information on HardDelete,
* see the DeleteRecord API in the Amazon SageMaker API Reference guide.
*/
public void setTtlDuration(TtlDuration ttlDuration) {
this.ttlDuration = ttlDuration;
}
/**
*
* Time to live duration, where the record is hard deleted after the expiration time is reached;
* ExpiresAt
= EventTime
+ TtlDuration
. For information on HardDelete, see
* the
* DeleteRecord API in the Amazon SageMaker API Reference guide.
*
ExpiresAt
= EventTime
+ TtlDuration
. For information on
* HardDelete, see the DeleteRecord API in the Amazon SageMaker API Reference guide.
*/
public TtlDuration getTtlDuration() {
return this.ttlDuration;
}
/**
*
* Time to live duration, where the record is hard deleted after the expiration time is reached;
* ExpiresAt
= EventTime
+ TtlDuration
. For information on HardDelete, see
* the
* DeleteRecord API in the Amazon SageMaker API Reference guide.
*
ExpiresAt
= EventTime
+ TtlDuration
. For information on HardDelete,
* see the DeleteRecord API in the Amazon SageMaker API Reference guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public OnlineStoreConfig withTtlDuration(TtlDuration ttlDuration) {
setTtlDuration(ttlDuration);
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 (getSecurityConfig() != null)
sb.append("SecurityConfig: ").append(getSecurityConfig()).append(",");
if (getEnableOnlineStore() != null)
sb.append("EnableOnlineStore: ").append(getEnableOnlineStore()).append(",");
if (getTtlDuration() != null)
sb.append("TtlDuration: ").append(getTtlDuration());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof OnlineStoreConfig == false)
return false;
OnlineStoreConfig other = (OnlineStoreConfig) obj;
if (other.getSecurityConfig() == null ^ this.getSecurityConfig() == null)
return false;
if (other.getSecurityConfig() != null && other.getSecurityConfig().equals(this.getSecurityConfig()) == false)
return false;
if (other.getEnableOnlineStore() == null ^ this.getEnableOnlineStore() == null)
return false;
if (other.getEnableOnlineStore() != null && other.getEnableOnlineStore().equals(this.getEnableOnlineStore()) == false)
return false;
if (other.getTtlDuration() == null ^ this.getTtlDuration() == null)
return false;
if (other.getTtlDuration() != null && other.getTtlDuration().equals(this.getTtlDuration()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getSecurityConfig() == null) ? 0 : getSecurityConfig().hashCode());
hashCode = prime * hashCode + ((getEnableOnlineStore() == null) ? 0 : getEnableOnlineStore().hashCode());
hashCode = prime * hashCode + ((getTtlDuration() == null) ? 0 : getTtlDuration().hashCode());
return hashCode;
}
@Override
public OnlineStoreConfig clone() {
try {
return (OnlineStoreConfig) 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.sagemaker.model.transform.OnlineStoreConfigMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}