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

com.amazonaws.services.deadline.model.AssociateMemberToFarmRequest Maven / Gradle / Ivy

Go to download

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

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The ID of the farm to associate with the member. *

*/ private String farmId; /** *

* The identity store ID of the member to associate with the farm. *

*/ private String identityStoreId; /** *

* The principal's membership level for the associated farm. *

*/ private String membershipLevel; /** *

* The member's principal ID to associate with the farm. *

*/ private String principalId; /** *

* The principal type of the member to associate with the farm. *

*/ private String principalType; /** *

* The ID of the farm to associate with the member. *

* * @param farmId * The ID of the farm to associate with the member. */ public void setFarmId(String farmId) { this.farmId = farmId; } /** *

* The ID of the farm to associate with the member. *

* * @return The ID of the farm to associate with the member. */ public String getFarmId() { return this.farmId; } /** *

* The ID of the farm to associate with the member. *

* * @param farmId * The ID of the farm to associate with the member. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateMemberToFarmRequest withFarmId(String farmId) { setFarmId(farmId); return this; } /** *

* The identity store ID of the member to associate with the farm. *

* * @param identityStoreId * The identity store ID of the member to associate with the farm. */ public void setIdentityStoreId(String identityStoreId) { this.identityStoreId = identityStoreId; } /** *

* The identity store ID of the member to associate with the farm. *

* * @return The identity store ID of the member to associate with the farm. */ public String getIdentityStoreId() { return this.identityStoreId; } /** *

* The identity store ID of the member to associate with the farm. *

* * @param identityStoreId * The identity store ID of the member to associate with the farm. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateMemberToFarmRequest withIdentityStoreId(String identityStoreId) { setIdentityStoreId(identityStoreId); return this; } /** *

* The principal's membership level for the associated farm. *

* * @param membershipLevel * The principal's membership level for the associated farm. * @see MembershipLevel */ public void setMembershipLevel(String membershipLevel) { this.membershipLevel = membershipLevel; } /** *

* The principal's membership level for the associated farm. *

* * @return The principal's membership level for the associated farm. * @see MembershipLevel */ public String getMembershipLevel() { return this.membershipLevel; } /** *

* The principal's membership level for the associated farm. *

* * @param membershipLevel * The principal's membership level for the associated farm. * @return Returns a reference to this object so that method calls can be chained together. * @see MembershipLevel */ public AssociateMemberToFarmRequest withMembershipLevel(String membershipLevel) { setMembershipLevel(membershipLevel); return this; } /** *

* The principal's membership level for the associated farm. *

* * @param membershipLevel * The principal's membership level for the associated farm. * @return Returns a reference to this object so that method calls can be chained together. * @see MembershipLevel */ public AssociateMemberToFarmRequest withMembershipLevel(MembershipLevel membershipLevel) { this.membershipLevel = membershipLevel.toString(); return this; } /** *

* The member's principal ID to associate with the farm. *

* * @param principalId * The member's principal ID to associate with the farm. */ public void setPrincipalId(String principalId) { this.principalId = principalId; } /** *

* The member's principal ID to associate with the farm. *

* * @return The member's principal ID to associate with the farm. */ public String getPrincipalId() { return this.principalId; } /** *

* The member's principal ID to associate with the farm. *

* * @param principalId * The member's principal ID to associate with the farm. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateMemberToFarmRequest withPrincipalId(String principalId) { setPrincipalId(principalId); return this; } /** *

* The principal type of the member to associate with the farm. *

* * @param principalType * The principal type of the member to associate with the farm. * @see PrincipalType */ public void setPrincipalType(String principalType) { this.principalType = principalType; } /** *

* The principal type of the member to associate with the farm. *

* * @return The principal type of the member to associate with the farm. * @see PrincipalType */ public String getPrincipalType() { return this.principalType; } /** *

* The principal type of the member to associate with the farm. *

* * @param principalType * The principal type of the member to associate with the farm. * @return Returns a reference to this object so that method calls can be chained together. * @see PrincipalType */ public AssociateMemberToFarmRequest withPrincipalType(String principalType) { setPrincipalType(principalType); return this; } /** *

* The principal type of the member to associate with the farm. *

* * @param principalType * The principal type of the member to associate with the farm. * @return Returns a reference to this object so that method calls can be chained together. * @see PrincipalType */ public AssociateMemberToFarmRequest withPrincipalType(PrincipalType principalType) { this.principalType = principalType.toString(); 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 (getFarmId() != null) sb.append("FarmId: ").append(getFarmId()).append(","); if (getIdentityStoreId() != null) sb.append("IdentityStoreId: ").append(getIdentityStoreId()).append(","); if (getMembershipLevel() != null) sb.append("MembershipLevel: ").append(getMembershipLevel()).append(","); if (getPrincipalId() != null) sb.append("PrincipalId: ").append(getPrincipalId()).append(","); if (getPrincipalType() != null) sb.append("PrincipalType: ").append(getPrincipalType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AssociateMemberToFarmRequest == false) return false; AssociateMemberToFarmRequest other = (AssociateMemberToFarmRequest) obj; if (other.getFarmId() == null ^ this.getFarmId() == null) return false; if (other.getFarmId() != null && other.getFarmId().equals(this.getFarmId()) == false) return false; if (other.getIdentityStoreId() == null ^ this.getIdentityStoreId() == null) return false; if (other.getIdentityStoreId() != null && other.getIdentityStoreId().equals(this.getIdentityStoreId()) == false) return false; if (other.getMembershipLevel() == null ^ this.getMembershipLevel() == null) return false; if (other.getMembershipLevel() != null && other.getMembershipLevel().equals(this.getMembershipLevel()) == false) return false; if (other.getPrincipalId() == null ^ this.getPrincipalId() == null) return false; if (other.getPrincipalId() != null && other.getPrincipalId().equals(this.getPrincipalId()) == false) return false; if (other.getPrincipalType() == null ^ this.getPrincipalType() == null) return false; if (other.getPrincipalType() != null && other.getPrincipalType().equals(this.getPrincipalType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFarmId() == null) ? 0 : getFarmId().hashCode()); hashCode = prime * hashCode + ((getIdentityStoreId() == null) ? 0 : getIdentityStoreId().hashCode()); hashCode = prime * hashCode + ((getMembershipLevel() == null) ? 0 : getMembershipLevel().hashCode()); hashCode = prime * hashCode + ((getPrincipalId() == null) ? 0 : getPrincipalId().hashCode()); hashCode = prime * hashCode + ((getPrincipalType() == null) ? 0 : getPrincipalType().hashCode()); return hashCode; } @Override public AssociateMemberToFarmRequest clone() { return (AssociateMemberToFarmRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy