/* * 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.ssooidc.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 StartDeviceAuthorizationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The unique identifier string for the client that is registered with IAM Identity Center. This value should come * from the persisted result of the RegisterClient API operation. *
*/ private String clientId; /** ** A secret string that is generated for the client. This value should come from the persisted result of the * RegisterClient API operation. *
*/ private String clientSecret; /** ** The URL for the AWS access portal. For more information, see Using the AWS access * portal in the IAM Identity Center User Guide. *
*/ private String startUrl; /** ** The unique identifier string for the client that is registered with IAM Identity Center. This value should come * from the persisted result of the RegisterClient API operation. *
* * @param clientId * The unique identifier string for the client that is registered with IAM Identity Center. This value should * come from the persisted result of the RegisterClient API operation. */ public void setClientId(String clientId) { this.clientId = clientId; } /** ** The unique identifier string for the client that is registered with IAM Identity Center. This value should come * from the persisted result of the RegisterClient API operation. *
* * @return The unique identifier string for the client that is registered with IAM Identity Center. This value * should come from the persisted result of the RegisterClient API operation. */ public String getClientId() { return this.clientId; } /** ** The unique identifier string for the client that is registered with IAM Identity Center. This value should come * from the persisted result of the RegisterClient API operation. *
* * @param clientId * The unique identifier string for the client that is registered with IAM Identity Center. This value should * come from the persisted result of the RegisterClient API operation. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDeviceAuthorizationRequest withClientId(String clientId) { setClientId(clientId); return this; } /** ** A secret string that is generated for the client. This value should come from the persisted result of the * RegisterClient API operation. *
* * @param clientSecret * A secret string that is generated for the client. This value should come from the persisted result of the * RegisterClient API operation. */ public void setClientSecret(String clientSecret) { this.clientSecret = clientSecret; } /** ** A secret string that is generated for the client. This value should come from the persisted result of the * RegisterClient API operation. *
* * @return A secret string that is generated for the client. This value should come from the persisted result of the * RegisterClient API operation. */ public String getClientSecret() { return this.clientSecret; } /** ** A secret string that is generated for the client. This value should come from the persisted result of the * RegisterClient API operation. *
* * @param clientSecret * A secret string that is generated for the client. This value should come from the persisted result of the * RegisterClient API operation. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDeviceAuthorizationRequest withClientSecret(String clientSecret) { setClientSecret(clientSecret); return this; } /** ** The URL for the AWS access portal. For more information, see Using the AWS access * portal in the IAM Identity Center User Guide. *
* * @param startUrl * The URL for the AWS access portal. For more information, see Using the AWS * access portal in the IAM Identity Center User Guide. */ public void setStartUrl(String startUrl) { this.startUrl = startUrl; } /** ** The URL for the AWS access portal. For more information, see Using the AWS access * portal in the IAM Identity Center User Guide. *
* * @return The URL for the AWS access portal. For more information, see Using the AWS * access portal in the IAM Identity Center User Guide. */ public String getStartUrl() { return this.startUrl; } /** ** The URL for the AWS access portal. For more information, see Using the AWS access * portal in the IAM Identity Center User Guide. *
* * @param startUrl * The URL for the AWS access portal. For more information, see Using the AWS * access portal in the IAM Identity Center User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDeviceAuthorizationRequest withStartUrl(String startUrl) { setStartUrl(startUrl); 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 (getClientId() != null) sb.append("ClientId: ").append(getClientId()).append(","); if (getClientSecret() != null) sb.append("ClientSecret: ").append(getClientSecret()).append(","); if (getStartUrl() != null) sb.append("StartUrl: ").append(getStartUrl()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartDeviceAuthorizationRequest == false) return false; StartDeviceAuthorizationRequest other = (StartDeviceAuthorizationRequest) obj; if (other.getClientId() == null ^ this.getClientId() == null) return false; if (other.getClientId() != null && other.getClientId().equals(this.getClientId()) == false) return false; if (other.getClientSecret() == null ^ this.getClientSecret() == null) return false; if (other.getClientSecret() != null && other.getClientSecret().equals(this.getClientSecret()) == false) return false; if (other.getStartUrl() == null ^ this.getStartUrl() == null) return false; if (other.getStartUrl() != null && other.getStartUrl().equals(this.getStartUrl()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClientId() == null) ? 0 : getClientId().hashCode()); hashCode = prime * hashCode + ((getClientSecret() == null) ? 0 : getClientSecret().hashCode()); hashCode = prime * hashCode + ((getStartUrl() == null) ? 0 : getStartUrl().hashCode()); return hashCode; } @Override public StartDeviceAuthorizationRequest clone() { return (StartDeviceAuthorizationRequest) super.clone(); } }