com.amazonaws.services.storagegateway.model.DescribeSMBSettingsResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-storagegateway Show documentation
/*
* Copyright 2013-2018 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.storagegateway.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeSMBSettingsResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
private String gatewayARN;
/**
*
* The name of the domain that the gateway is joined to.
*
*/
private String domainName;
/**
*
* This value is true if a password for the guest user “smbguest” is set, and otherwise false.
*
*/
private Boolean sMBGuestPasswordSet;
/**
* @param gatewayARN
*/
public void setGatewayARN(String gatewayARN) {
this.gatewayARN = gatewayARN;
}
/**
* @return
*/
public String getGatewayARN() {
return this.gatewayARN;
}
/**
* @param gatewayARN
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeSMBSettingsResult withGatewayARN(String gatewayARN) {
setGatewayARN(gatewayARN);
return this;
}
/**
*
* The name of the domain that the gateway is joined to.
*
*
* @param domainName
* The name of the domain that the gateway is joined to.
*/
public void setDomainName(String domainName) {
this.domainName = domainName;
}
/**
*
* The name of the domain that the gateway is joined to.
*
*
* @return The name of the domain that the gateway is joined to.
*/
public String getDomainName() {
return this.domainName;
}
/**
*
* The name of the domain that the gateway is joined to.
*
*
* @param domainName
* The name of the domain that the gateway is joined to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeSMBSettingsResult withDomainName(String domainName) {
setDomainName(domainName);
return this;
}
/**
*
* This value is true if a password for the guest user “smbguest” is set, and otherwise false.
*
*
* @param sMBGuestPasswordSet
* This value is true if a password for the guest user “smbguest” is set, and otherwise false.
*/
public void setSMBGuestPasswordSet(Boolean sMBGuestPasswordSet) {
this.sMBGuestPasswordSet = sMBGuestPasswordSet;
}
/**
*
* This value is true if a password for the guest user “smbguest” is set, and otherwise false.
*
*
* @return This value is true if a password for the guest user “smbguest” is set, and otherwise false.
*/
public Boolean getSMBGuestPasswordSet() {
return this.sMBGuestPasswordSet;
}
/**
*
* This value is true if a password for the guest user “smbguest” is set, and otherwise false.
*
*
* @param sMBGuestPasswordSet
* This value is true if a password for the guest user “smbguest” is set, and otherwise false.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeSMBSettingsResult withSMBGuestPasswordSet(Boolean sMBGuestPasswordSet) {
setSMBGuestPasswordSet(sMBGuestPasswordSet);
return this;
}
/**
*
* This value is true if a password for the guest user “smbguest” is set, and otherwise false.
*
*
* @return This value is true if a password for the guest user “smbguest” is set, and otherwise false.
*/
public Boolean isSMBGuestPasswordSet() {
return this.sMBGuestPasswordSet;
}
/**
* Returns a string representation of this object; useful for testing and debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getGatewayARN() != null)
sb.append("GatewayARN: ").append(getGatewayARN()).append(",");
if (getDomainName() != null)
sb.append("DomainName: ").append(getDomainName()).append(",");
if (getSMBGuestPasswordSet() != null)
sb.append("SMBGuestPasswordSet: ").append(getSMBGuestPasswordSet());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeSMBSettingsResult == false)
return false;
DescribeSMBSettingsResult other = (DescribeSMBSettingsResult) obj;
if (other.getGatewayARN() == null ^ this.getGatewayARN() == null)
return false;
if (other.getGatewayARN() != null && other.getGatewayARN().equals(this.getGatewayARN()) == false)
return false;
if (other.getDomainName() == null ^ this.getDomainName() == null)
return false;
if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false)
return false;
if (other.getSMBGuestPasswordSet() == null ^ this.getSMBGuestPasswordSet() == null)
return false;
if (other.getSMBGuestPasswordSet() != null && other.getSMBGuestPasswordSet().equals(this.getSMBGuestPasswordSet()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getGatewayARN() == null) ? 0 : getGatewayARN().hashCode());
hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode());
hashCode = prime * hashCode + ((getSMBGuestPasswordSet() == null) ? 0 : getSMBGuestPasswordSet().hashCode());
return hashCode;
}
@Override
public DescribeSMBSettingsResult clone() {
try {
return (DescribeSMBSettingsResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}